{"id":264,"date":"2024-08-08T15:07:55","date_gmt":"2024-08-08T07:07:55","guid":{"rendered":"https:\/\/www.onetts.com\/ai\/?p=264"},"modified":"2024-08-08T15:09:12","modified_gmt":"2024-08-08T07:09:12","slug":"kolors","status":"publish","type":"post","link":"https:\/\/www.onetts.com\/ai\/models\/kolors\/","title":{"rendered":"Kolors"},"content":{"rendered":"<p>\u53ef\u56fe\u5927\u6a21\u578bKolors\u662f\u7531\u4e2d\u56fd\u79d1\u6280\u516c\u53f8\u5feb\u624b\u63a8\u51fa\u7684\u4e00\u6b3e\u5148\u8fdb\u7684\u6587\u751f\u56fe\uff08text-to-image\uff09\u4eba\u5de5\u667a\u80fdAI\u5927\u6a21\u578b\u3002\u5b83\u662f\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60\u6280\u672f\uff0c\u7279\u522b\u662f\u6269\u6563\u6a21\u578b\uff08diffusion model\uff09\u6784\u5efa\u7684\uff0c\u80fd\u591f\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u6587\u672c\u63cf\u8ff0\u751f\u6210\u9ad8\u8d28\u91cf\u3001\u9ad8\u5206\u8fa8\u7387\u7684\u56fe\u50cf\u3002Kolors\u6a21\u578b\u7684\u5f00\u53d1\u6807\u5fd7\u7740\u4e2d\u6587\u8bed\u5883\u4e0bAI\u56fe\u50cf\u751f\u6210\u6280\u672f\u7684\u91cd\u5927\u7a81\u7834\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u65b0\u7684\u89c6\u89c9\u5185\u5bb9\u521b\u4f5c\u5de5\u5177\u3002<\/p>\n<h3>1.2 \u6280\u672f\u7279\u70b9<\/h3>\n<p>Kolors\u6a21\u578b\u91c7\u7528\u4e86\u57fa\u4e8eU-Net\u67b6\u6784\u7684\u9690\u7a7a\u95f4\u6269\u6563\u6a21\u578b\uff0c\u5e76\u7ed3\u5408\u4e86\u5927\u8bed\u8a00\u6a21\u578bChatGLM3\u8fdb\u884c\u6587\u672c\u8868\u5f81\u3002\u8fd9\u4e00\u6280\u672f\u7ec4\u5408\u8d4b\u4e88\u4e86Kolors\u5f3a\u5927\u7684\u590d\u6742\u957f\u6587\u672c\u7406\u89e3\u80fd\u529b\uff0c\u652f\u6301\u957f\u8fbe256\u5b57\u7b26\u7684\u6587\u672c\u8f93\u5165\uff0c\u8fdc\u8d85\u8fc7\u4f20\u7edf\u6a21\u578b\u7684\u6587\u672c\u5904\u7406\u9650\u5236\u3002\u6b64\u5916\uff0cKolors\u662f\u9996\u4e2a\u539f\u751f\u652f\u6301\u4e2d\u6587\u6587\u5b57\u751f\u6210\u7684\u6587\u751f\u56fe\u6a21\u578b\uff0c\u65e0\u9700\u989d\u5916\u7684\u63a7\u5236\u903b\u8f91\u5373\u53ef\u751f\u6210\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<h3>1.3 \u521b\u65b0\u70b9<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u521b\u65b0\u4e4b\u5904\u5728\u4e8e\u5176\u5bf9\u4e2d\u82f1\u6587\u53cc\u8bed\u7684\u652f\u6301\uff0c\u4ee5\u53ca\u5bf9\u590d\u6742\u8bed\u4e49\u7684\u6df1\u5165\u7406\u89e3\u3002\u5b83\u80fd\u591f\u51c6\u786e\u5730\u89e3\u6790\u548c\u751f\u6210\u5305\u542b\u591a\u4e2a\u5b9e\u4f53\u548c\u5c5e\u6027\u7684\u6587\u672c\u63cf\u8ff0\uff0c\u751f\u6210\u7684\u56fe\u50cf\u5728\u7f8e\u611f\u548c\u8d28\u91cf\u4e0a\u8fbe\u5230\u4e86\u56fd\u9645\u9886\u5148\u6c34\u5e73\u3002\u6b64\u5916\uff0cKolors\u5728\u8bad\u7ec3\u7b56\u7565\u4e0a\u8fdb\u884c\u4e86\u521b\u65b0\uff0c\u91c7\u7528\u4e86\u4e24\u9636\u6bb5\u6e10\u8fdb\u8bad\u7ec3\u7b56\u7565\uff0c\u5305\u62ec\u6982\u5ff5\u5b66\u4e60\u548c\u7f8e\u611f\u63d0\u5347\uff0c\u6709\u6548\u63d0\u5347\u4e86\u6a21\u578b\u7684\u56fe\u50cf\u751f\u6210\u8d28\u91cf\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<h3>1.4 \u5e94\u7528\u573a\u666f<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u5e94\u7528\u573a\u666f\u5e7f\u6cdb\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\u793e\u4ea4\u5a92\u4f53\u5185\u5bb9\u521b\u4f5c\u3001\u5e7f\u544a\u8bbe\u8ba1\u3001\u6e38\u620f\u548c\u5f71\u89c6\u5236\u4f5c\u3001\u6559\u80b2\u548c\u57f9\u8bad\u6750\u6599\u7684\u751f\u6210\u7b49\u3002\u5b83\u7684\u9ad8\u751f\u6210\u8d28\u91cf\u548c\u5bf9\u591a\u8bed\u8a00\u7684\u652f\u6301\uff0c\u4f7f\u5176\u6210\u4e3a\u8de8\u6587\u5316\u4ea4\u6d41\u548c\u56fd\u9645\u5e02\u573a\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<h3>1.5 \u5f00\u6e90\u4e0e\u793e\u533a\u8d21\u732e<\/h3>\n<p>\u5feb\u624b\u5c06Kolors\u6a21\u578b\u5168\u9762\u5f00\u6e90\uff0c\u5305\u62ec\u6a21\u578b\u6743\u91cd\u548c\u5b8c\u6574\u4ee3\u7801\uff0c\u4f9b\u4e2a\u4eba\u5f00\u53d1\u8005\u514d\u8d39\u4f7f\u7528\u3002\u8fd9\u4e00\u4e3e\u63aa\u4e0d\u4ec5\u4fc3\u8fdb\u4e86\u6280\u672f\u7684\u5171\u4eab\u548c\u521b\u65b0\uff0c\u4e5f\u4e3a\u5168\u7403AI\u793e\u533a\u63d0\u4f9b\u4e86\u5b9d\u8d35\u7684\u8d44\u6e90\u3002Kolors\u6a21\u578b\u5728GitHub\u4e0a\u7684\u5f00\u6e90\u77ed\u77ed\u51e0\u5929\u5185\uff0c\u5c31\u83b7\u5f97\u4e862k star\uff0c\u5e76\u5728Huggingface\u6a21\u578b\u4e0b\u8f7d\u70ed\u699c\u4e0a\u6392\u540d\u7b2c\u4e00\uff0c\u663e\u793a\u4e86\u5176\u5728\u5168\u7403\u8303\u56f4\u5185\u7684\u5f71\u54cd\u529b\u548c\u53d7\u6b22\u8fce\u7a0b\u5ea6\u3002<\/p>\n<h3>1.6 \u793e\u4f1a\u5f71\u54cd\u4e0e\u524d\u666f<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u63a8\u51fa\uff0c\u4e0d\u4ec5\u63d0\u5347\u4e86AI\u56fe\u50cf\u751f\u6210\u6280\u672f\u7684\u6c34\u5e73\uff0c\u4e5f\u4e3a\u827a\u672f\u521b\u4f5c\u3001\u6587\u5316\u4f20\u64ad\u548c\u6559\u80b2\u7b49\u9886\u57df\u5e26\u6765\u4e86\u65b0\u7684\u53ef\u80fd\u6027\u3002\u968f\u7740\u6280\u672f\u7684\u4e0d\u65ad\u8fdb\u6b65\u548c\u5f00\u6e90\u793e\u533a\u7684\u5171\u540c\u52aa\u529b\uff0cKolors\u6709\u671b\u5728\u672a\u6765\u5b9e\u73b0\u66f4\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5e76\u63a8\u52a8\u76f8\u5173\u9886\u57df\u7684\u521b\u65b0\u548c\u53d1\u5c55\u3002<\/p>\n<h3>1.7 \u6280\u672f\u7ec6\u8282<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u6280\u672f\u7ec6\u8282\u662f\u5176\u6210\u529f\u7684\u5173\u952e\u3002\u5b83\u91c7\u7528\u4e86\u4e00\u79cd\u57fa\u4e8e\u6f5c\u5728\u6269\u6563\u6a21\u578b\u7684\u67b6\u6784\uff0c\u8fd9\u79cd\u67b6\u6784\u6700\u521d\u662f\u4e3a\u4e86\u751f\u6210\u9ad8\u5206\u8fa8\u7387\u56fe\u50cf\u800c\u8bbe\u8ba1\u7684\u3002\u6269\u6563\u6a21\u578b\u901a\u8fc7\u9010\u6b65\u5f15\u5165\u566a\u58f0\u5e76\u5728\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u5b66\u4e60\u9006\u5411\u8fc7\u7a0b\u6765\u751f\u6210\u56fe\u50cf\u3002Kolors\u6a21\u578b\u7684\u8fd9\u4e00\u7279\u6027\u4f7f\u5176\u80fd\u591f\u751f\u6210\u7ec6\u8282\u4e30\u5bcc\u3001\u903c\u771f\u7684\u56fe\u50cf\u3002<\/p>\n<p>\u6b64\u5916\uff0cKolors\u6a21\u578b\u4f7f\u7528\u4e86\u5927\u8bed\u8a00\u6a21\u578bChatGLM3\uff0c\u8fd9\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u7406\u89e3\u548c\u751f\u6210\u4e2d\u6587\u6587\u672c\u800c\u4f18\u5316\u7684\u6a21\u578b\u3002ChatGLM3\u7684\u5f15\u5165\uff0c\u8ba9Kolors\u5728\u5904\u7406\u4e2d\u6587\u6587\u672c\u65f6\u8868\u73b0\u51fa\u8272\uff0c\u80fd\u591f\u51c6\u786e\u5730\u6355\u6349\u4e2d\u6587\u6587\u672c\u4e2d\u7684\u7ec6\u5fae\u8bed\u4e49\u5dee\u5f02\uff0c\u5e76\u5c06\u5176\u8f6c\u5316\u4e3a\u56fe\u50cf\u3002<\/p>\n<h3>1.8 \u8bad\u7ec3\u8fc7\u7a0b<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u8bad\u7ec3\u8fc7\u7a0b\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a\u6982\u5ff5\u5b66\u4e60\u548c\u7f8e\u611f\u63d0\u5347\u3002\u5728\u6982\u5ff5\u5b66\u4e60\u9636\u6bb5\uff0c\u6a21\u578b\u901a\u8fc7\u6570\u5341\u4ebf\u56fe\u50cf-\u6587\u672c\u5bf9\u8fdb\u884c\u8bad\u7ec3\uff0c\u4ee5\u83b7\u5f97\u5e7f\u6cdb\u7684\u77e5\u8bc6\u548c\u6982\u5ff5\u3002\u8fd9\u4e2a\u9636\u6bb5\u7684\u6570\u636e\u6765\u6e90\u4e8e\u516c\u5171\u6570\u636e\u96c6\u548c\u4e13\u6709\u6570\u636e\u96c6\uff0c\u786e\u4fdd\u4e86\u6a21\u578b\u80fd\u591f\u7406\u89e3\u548c\u751f\u6210\u5404\u79cd\u7c7b\u578b\u7684\u56fe\u50cf\u3002<\/p>\n<p>\u5728\u7f8e\u611f\u63d0\u5347\u9636\u6bb5\uff0cKolors\u6a21\u578b\u4f7f\u7528\u4e86\u7cbe\u5fc3\u7b56\u5212\u7684\u9ad8\u7f8e\u5b66\u6570\u636e\u8fdb\u884c\u8bad\u7ec3\u3002\u8fd9\u4e2a\u9636\u6bb5\u7684\u6570\u636e\u7b5b\u9009\u66f4\u4e3a\u7cbe\u7ec6\uff0c\u76ee\u7684\u662f\u63d0\u5347\u6a21\u578b\u751f\u6210\u56fe\u50cf\u7684\u7f8e\u611f\u548c\u89c6\u89c9\u5438\u5f15\u529b\u3002\u901a\u8fc7\u8fd9\u79cd\u4e24\u9636\u6bb5\u8bad\u7ec3\u7b56\u7565\uff0cKolors\u6a21\u578b\u5728\u56fe\u50cf\u8d28\u91cf\u4e0a\u8fbe\u5230\u4e86\u4e1a\u754c\u9886\u5148\u6c34\u5e73\u3002<\/p>\n<h3>1.9 \u6a21\u578b\u6027\u80fd<\/h3>\n<p>Kolors\u6a21\u578b\u5728\u591a\u4e2a\u7ef4\u5ea6\u4e0a\u5c55\u73b0\u4e86\u5353\u8d8a\u7684\u6027\u80fd\u3002\u5b83\u4e0d\u4ec5\u80fd\u591f\u751f\u6210\u9ad8\u8d28\u91cf\u7684\u56fe\u50cf\uff0c\u8fd8\u80fd\u591f\u51c6\u786e\u5730\u9075\u5faa\u590d\u6742\u7684\u6587\u672c\u63d0\u793a\uff0c\u5305\u62ec\u4e2d\u82f1\u6587\u6df7\u5408\u63d0\u793a\u3002\u6b64\u5916\uff0cKolors\u6a21\u578b\u5728\u56fe\u50cf\u7684\u7ec6\u8282\u6e32\u67d3\u3001\u98ce\u683c\u591a\u6837\u6027\u4ee5\u53ca\u591a\u8bed\u8a00\u652f\u6301\u65b9\u9762\u90fd\u8868\u73b0\u51fa\u8272\u3002<\/p>\n<h3>1.10 \u672a\u6765\u53d1\u5c55<\/h3>\n<p>\u5c3d\u7ba1Kolors\u6a21\u578b\u5df2\u7ecf\u53d6\u5f97\u4e86\u663e\u8457\u7684\u6210\u5c31\uff0c\u4f46\u5feb\u624b\u7684\u7814\u53d1\u56e2\u961f\u4ecd\u5728\u4e0d\u65ad\u63a2\u7d22\u548c\u6539\u8fdb\u3002\u672a\u6765\u7684Kolors\u6a21\u578b\u53ef\u80fd\u4f1a\u96c6\u6210\u66f4\u591a\u7684\u529f\u80fd\uff0c\u4f8b\u5982\u66f4\u9ad8\u7ea7\u7684\u6587\u672c\u7406\u89e3\u80fd\u529b\u3001\u66f4\u5e7f\u6cdb\u7684\u8bed\u8a00\u652f\u6301\u4ee5\u53ca\u66f4\u7cbe\u7ec6\u7684\u56fe\u50cf\u63a7\u5236\u80fd\u529b\u3002\u6b64\u5916\uff0c\u968f\u7740\u5f00\u6e90\u793e\u533a\u7684\u53c2\u4e0e\uff0cKolors\u6a21\u578b\u6709\u671b\u83b7\u5f97\u66f4\u591a\u7684\u521b\u65b0\u5e94\u7528\u548c\u4f18\u5316\u3002<\/p>\n<h2>\u6a21\u578b\u8bc4\u6d4b<\/h2>\n<h3>2.1 \u8bc4\u6d4b\u6807\u51c6<\/h3>\n<p>\u5728\u5bf9Kolors\u6a21\u578b\u8fdb\u884c\u8bc4\u6d4b\u65f6\uff0c\u6211\u4eec\u91c7\u7528\u4e86\u4e00\u7cfb\u5217\u7684\u6807\u51c6\u6765\u8861\u91cf\u5176\u6027\u80fd\u3002\u8fd9\u4e9b\u6807\u51c6\u5305\u62ec\u56fe\u50cf\u8d28\u91cf\u3001\u6587\u672c\u5230\u56fe\u50cf\u7684\u8f6c\u6362\u51c6\u786e\u6027\u3001\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u3001\u56fe\u50cf\u7684\u591a\u6837\u6027\u548c\u521b\u9020\u6027\u4ee5\u53ca\u6a21\u578b\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n<h3>2.2 \u4eba\u5de5\u8bc4\u6d4b<\/h3>\n<p>\u4eba\u5de5\u8bc4\u6d4b\u662f\u901a\u8fc7\u9080\u8bf7\u5177\u6709\u56fe\u50cf\u9886\u57df\u77e5\u8bc6\u7684\u4e13\u4e1a\u4eba\u5458\u5bf9Kolors\u751f\u6210\u7684\u56fe\u50cf\u8fdb\u884c\u6253\u5206\u3002\u8bc4\u4f30\u7ef4\u5ea6\u5305\u62ec\u7efc\u5408\u6ee1\u610f\u5ea6\u3001\u56fe\u50cf\u8d28\u91cf\u3001\u56fe\u6587\u76f8\u5173\u6027\u4e09\u4e2a\u65b9\u9762\u3002Kolors\u5728\u6574\u4f53\u6ee1\u610f\u5ea6\u548c\u753b\u9762\u8d28\u91cf\u65b9\u9762\u5747\u8868\u73b0\u51fa\u8272\uff0c\u5c24\u5176\u5728\u4e2d\u6587\u56fe\u50cf\u751f\u6210\u65b9\u9762\uff0c\u663e\u793a\u51fa\u4e86\u660e\u663e\u7684\u4f18\u52bf\u3002<\/p>\n<h3>2.3 \u673a\u5668\u8bc4\u6d4b<\/h3>\n<p>\u9664\u4e86\u4eba\u5de5\u8bc4\u6d4b\uff0cKolors\u8fd8\u901a\u8fc7\u4e86\u673a\u5668\u8bc4\u6d4b\uff0c\u4f7f\u7528\u4e86\u5feb\u624bCVPR2024\u63d0\u51fa\u7684\u591a\u7ef4\u5ea6\u4eba\u7c7b\u504f\u597d\u8bc4\u5206\uff08MPS\uff09\u6307\u6807\u3002\u5728\u8fd9\u4e00\u8bc4\u6d4b\u4e2d\uff0cKolors\u540c\u6837\u53d6\u5f97\u4e86\u4f18\u5f02\u7684\u6210\u7ee9\uff0c\u8fdb\u4e00\u6b65\u8bc1\u660e\u4e86\u5176\u56fe\u50cf\u751f\u6210\u7684\u9ad8\u8d28\u91cf\u3002<\/p>\n<h3>2.4 \u5ba2\u89c2\u4e0e\u4e3b\u89c2\u8bc4\u6d4b\u7ed3\u5408<\/h3>\n<p>Kolors\u7684\u8bc4\u6d4b\u7ed3\u5408\u4e86\u5ba2\u89c2\u7684\u6280\u672f\u6307\u6807\u548c\u4e3b\u89c2\u7684\u4eba\u5de5\u8bc4\u4ef7\uff0c\u786e\u4fdd\u4e86\u8bc4\u6d4b\u7ed3\u679c\u7684\u5168\u9762\u6027\u548c\u51c6\u786e\u6027\u3002\u8fd9\u79cd\u7efc\u5408\u7684\u8bc4\u6d4b\u65b9\u6cd5\u80fd\u591f\u66f4\u597d\u5730\u53cd\u6620\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u8868\u73b0\u3002<\/p>\n<h3>2.5 \u8bc4\u6d4b\u7ed3\u679c\u5206\u6790<\/h3>\n<p>\u6839\u636e\u8bc4\u6d4b\u7ed3\u679c\uff0cKolors\u5728\u591a\u4e2a\u65b9\u9762\u90fd\u8fbe\u5230\u4e86\u4e1a\u754c\u9886\u5148\u6c34\u5e73\u3002\u7279\u522b\u662f\u5728\u4e2d\u6587\u6587\u672c\u7684\u7406\u89e3\u4e0e\u751f\u6210\u65b9\u9762\uff0cKolors\u663e\u793a\u51fa\u4e86\u5176\u72ec\u7279\u7684\u4f18\u52bf\u3002\u6b64\u5916\uff0cKolors\u5728\u56fe\u50cf\u7ec6\u8282\u7684\u5448\u73b0\u3001\u98ce\u683c\u591a\u6837\u6027\u4ee5\u53ca\u521b\u9020\u6027\u65b9\u9762\u4e5f\u83b7\u5f97\u4e86\u9ad8\u5ea6\u8bc4\u4ef7\u3002<\/p>\n<h2>\u90e8\u7f72\u4f7f\u7528<\/h2>\n<h3>3.1 \u90e8\u7f72\u73af\u5883\u51c6\u5907<\/h3>\n<p>\u5728\u90e8\u7f72Kolors\u6a21\u578b\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u60a8\u7684\u8ba1\u7b97\u73af\u5883\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li><strong>\u786c\u4ef6\u8981\u6c42<\/strong>\uff1a\u63a8\u8350\u4f7f\u7528\u5177\u6709\u9ad8\u6027\u80fdGPU\u7684\u7cfb\u7edf\uff0c\u5982NVIDIA\u7cfb\u5217\u663e\u5361\uff0c\u4ee5\u52a0\u901f\u6a21\u578b\u7684\u63a8\u7406\u8fc7\u7a0b\u3002<\/li>\n<li><strong>\u8f6f\u4ef6\u4f9d\u8d56<\/strong>\uff1a\u786e\u4fdd\u5df2\u5b89\u88c5Python\u73af\u5883\u4ee5\u53ca\u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\uff0c\u5982PyTorch\u6216TensorFlow\u3002<\/li>\n<li><strong>\u4f9d\u8d56\u5e93<\/strong>\uff1a\u5b89\u88c5Kolors\u6a21\u578b\u8fd0\u884c\u6240\u9700\u7684\u4f9d\u8d56\u5e93\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8enumpy\u3001scipy\u3001PIL\u7b49\u3002<\/li>\n<\/ul>\n<h3>3.2 \u83b7\u53d6\u6a21\u578b\u6743\u91cd<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u6743\u91cd\u548c\u4ee3\u7801\u5df2\u7ecf\u5f00\u6e90\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u5176\u5728GitHub\u4e0a\u7684\u4ed3\u5e93\u6765\u83b7\u53d6\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u514b\u9686Kolors\u7684GitHub\u4ed3\u5e93\u5230\u672c\u5730\u73af\u5883\u3002<\/li>\n<li>\u4f7f\u7528pip\u6216conda\u5b89\u88c5\u6240\u9700\u7684Python\u5305\u3002<\/li>\n<li>\u4e0b\u8f7d\u9884\u8bad\u7ec3\u7684\u6a21\u578b\u6743\u91cd\u3002<\/li>\n<\/ol>\n<h3>3.3 \u914d\u7f6e\u6a21\u578b\u53c2\u6570<\/h3>\n<p>\u5728\u8fd0\u884cKolors\u6a21\u578b\u4e4b\u524d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u9700\u6c42\u914d\u7f6e\u6a21\u578b\u53c2\u6570\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u8f93\u5165\u6587\u672c<\/strong>\uff1a\u63d0\u4f9b\u63cf\u8ff0\u751f\u6210\u56fe\u50cf\u7684\u6587\u672c\u3002<\/li>\n<li><strong>\u751f\u6210\u53c2\u6570<\/strong>\uff1a\u5982\u56fe\u50cf\u5206\u8fa8\u7387\u3001\u751f\u6210\u6b65\u9aa4\u6570\u7b49\u3002<\/li>\n<li><strong>\u6a21\u578b\u8d85\u53c2\u6570<\/strong>\uff1a\u6839\u636e\u786c\u4ef6\u6027\u80fd\u8c03\u6574\u6a21\u578b\u7684\u8fd0\u884c\u53c2\u6570\u3002<\/li>\n<\/ul>\n<h3>3.4 \u6a21\u578b\u63a8\u7406<\/h3>\n<p>\u4f7f\u7528\u914d\u7f6e\u597d\u7684\u53c2\u6570\uff0c\u8fd0\u884c\u6a21\u578b\u8fdb\u884c\u63a8\u7406\u3002Kolors\u6a21\u578b\u5c06\u6839\u636e\u8f93\u5165\u7684\u6587\u672c\u63cf\u8ff0\u751f\u6210\u56fe\u50cf\u3002\u8fd9\u4e00\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6a21\u578b\u7684\u590d\u6742\u5ea6\u548c\u786c\u4ef6\u6027\u80fd\u3002<\/p>\n<h3>3.5 \u7ed3\u679c\u8bc4\u4f30\u4e0e\u8c03\u6574<\/h3>\n<p>\u751f\u6210\u56fe\u50cf\u540e\uff0c\u9700\u8981\u5bf9\u7ed3\u679c\u8fdb\u884c\u8bc4\u4f30\u3002\u5982\u679c\u56fe\u50cf\u4e0e\u9884\u671f\u6709\u504f\u5dee\uff0c\u53ef\u80fd\u9700\u8981\u8c03\u6574\u6a21\u578b\u53c2\u6570\u6216\u6587\u672c\u63cf\u8ff0\uff0c\u5e76\u91cd\u65b0\u8fdb\u884c\u63a8\u7406\u3002<\/p>\n<h3>3.6 \u96c6\u6210\u4e0e\u5e94\u7528<\/h3>\n<p>\u5c06Kolors\u6a21\u578b\u96c6\u6210\u5230\u5b9e\u9645\u7684\u5e94\u7528\u4e2d\uff0c\u5982\u7f51\u7ad9\u3001\u5e94\u7528\u7a0b\u5e8f\u6216\u5176\u4ed6\u670d\u52a1\u3002\u786e\u4fdd\u6a21\u578b\u7684\u63a5\u53e3\u4e0e\u5e94\u7528\u903b\u8f91\u517c\u5bb9\uff0c\u5e76\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u3002<\/p>\n<h3>3.7 \u6027\u80fd\u4f18\u5316<\/h3>\n<p>\u5728\u90e8\u7f72\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u6a21\u578b\u8fdb\u884c\u6027\u80fd\u4f18\u5316\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u6a21\u578b\u91cf\u5316\u3001\u526a\u679d\u3001\u77e5\u8bc6\u84b8\u998f\u7b49\u6280\u672f\u3002<\/p>\n<h3>3.8 \u90e8\u7f72\u6848\u4f8b<\/h3>\n<p>\u5feb\u624b\u5df2\u7ecf\u5c06Kolors\u6a21\u578b\u96c6\u6210\u5230\u4e86\u591a\u4e2a\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u4f8b\u5982AI\u73a9\u8bc4\u3001\u4e3b\u7ad9\u9b54\u8868\u3001\u5feb\u5f71\u7b49\u3002\u8fd9\u4e9b\u6848\u4f8b\u5c55\u793a\u4e86Kolors\u6a21\u578b\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6f5c\u529b\u548c\u6548\u679c\u3002<\/p>\n<h3>3.9 \u793e\u533a\u652f\u6301\u4e0e\u8d21\u732e<\/h3>\n<p>Kolors\u6a21\u578b\u7684\u5f00\u6e90\u7279\u6027\u9f13\u52b1\u793e\u533a\u6210\u5458\u5bf9\u5176\u8fdb\u884c\u6539\u8fdb\u548c\u6269\u5c55\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u63d0\u4ea4pull request\u6216\u5728issue\u4e2d\u8ba8\u8bba\u6765\u8d21\u732e\u4ee3\u7801\u6216\u63d0\u51fa\u5efa\u8bae\u3002<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<h3>4.1 \u5b89\u88c5\u548c\u914d\u7f6e\u95ee\u9898<\/h3>\n<p><strong>\u95ee\u98981<\/strong>: \u5982\u4f55\u5b89\u88c5Kolors\u6a21\u578b\u6240\u9700\u7684\u4f9d\u8d56\u5e93\uff1f <strong>\u89e3\u7b54<\/strong>: \u60a8\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u6216conda\u6765\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u5e93\u3002\u901a\u5e38\uff0c\u9879\u76ee\u7684README\u6587\u4ef6\u4f1a\u5217\u51fa\u6240\u6709\u5fc5\u9700\u7684\u4f9d\u8d56\u5e93\u53ca\u5176\u7248\u672c\u4fe1\u606f\u3002\u4f7f\u7528\u547d\u4ee4<code class=\"inlineCode___uUrJ9\">pip install -r requirements.txt<\/code>\u6216<code class=\"inlineCode___uUrJ9\">conda env create -f environment.yml<\/code>\uff08\u5982\u679c\u63d0\u4f9b\u4e86\u4f9d\u8d56\u6587\u4ef6\uff09\u53ef\u4ee5\u81ea\u52a8\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u3002<\/p>\n<p><strong>\u95ee\u98982<\/strong>: \u5728\u5b89\u88c5\u4f9d\u8d56\u65f6\u9047\u5230\u7248\u672c\u51b2\u7a81\u600e\u4e48\u529e\uff1f <strong>\u89e3\u7b54<\/strong>: \u5982\u679c\u9047\u5230\u7248\u672c\u51b2\u7a81\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u6839\u636eKolors\u6a21\u578b\u7684\u4f9d\u8d56\u8981\u6c42\u8c03\u6574\u67d0\u4e9b\u5e93\u7684\u7248\u672c\u3002\u53ef\u4ee5\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u5e72\u51c0\u7684\u865a\u62df\u73af\u5883\uff0c\u5e76\u4e25\u683c\u6309\u7167\u4f9d\u8d56\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u7248\u672c\u5b89\u88c5\u3002<\/p>\n<h3>4.2 \u6a21\u578b\u8fd0\u884c\u95ee\u9898<\/h3>\n<p><strong>\u95ee\u98983<\/strong>: \u6a21\u578b\u8fd0\u884c\u901f\u5ea6\u6162\uff0c\u5982\u4f55\u4f18\u5316\uff1f <strong>\u89e3\u7b54<\/strong>: \u6a21\u578b\u8fd0\u884c\u901f\u5ea6\u53ef\u80fd\u53d7\u5230\u786c\u4ef6\u6027\u80fd\u548c\u6a21\u578b\u53c2\u6570\u7684\u5f71\u54cd\u3002\u786e\u4fdd\u60a8\u4f7f\u7528\u7684\u662f\u652f\u6301GPU\u52a0\u901f\u7684\u73af\u5883\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u6a21\u578b\u7684\u63a8\u7406\u53c2\u6570\uff0c\u5982\u51cf\u5c11\u751f\u6210\u6b65\u9aa4\u6570\u6216\u964d\u4f4e\u56fe\u50cf\u5206\u8fa8\u7387\u3002<\/p>\n<p><strong>\u95ee\u98984<\/strong>: \u6a21\u578b\u751f\u6210\u7684\u56fe\u50cf\u4e0e\u9884\u671f\u4e0d\u7b26\u600e\u4e48\u529e\uff1f <strong>\u89e3\u7b54<\/strong>: \u5982\u679c\u751f\u6210\u7684\u56fe\u50cf\u4e0d\u7b26\u5408\u9884\u671f\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u5ba1\u67e5\u8f93\u5165\u7684\u6587\u672c\u63cf\u8ff0\u662f\u5426\u51c6\u786e\u3002\u6b64\u5916\uff0c\u8c03\u6574\u6a21\u578b\u7684\u8d85\u53c2\u6570\uff0c\u5982\u8c03\u6574\u566a\u58f0\u6c34\u5e73\u6216\u751f\u6210\u6b65\u9aa4\uff0c\u4e5f\u53ef\u80fd\u6709\u52a9\u4e8e\u6539\u5584\u7ed3\u679c\u3002<\/p>\n<h3>4.3 \u6280\u672f\u7ec6\u8282\u95ee\u9898<\/h3>\n<p><strong>\u95ee\u98985<\/strong>: Kolors\u6a21\u578b\u652f\u6301\u54ea\u4e9b\u7c7b\u578b\u7684\u6587\u672c\u8f93\u5165\uff1f <strong>\u89e3\u7b54<\/strong>: Kolors\u6a21\u578b\u652f\u6301\u5305\u62ec\u590d\u6742\u63cf\u8ff0\u3001\u591a\u5b9e\u4f53\u548c\u5c5e\u6027\u63cf\u8ff0\u5728\u5185\u7684\u4e2d\u82f1\u6587\u53cc\u8bed\u6587\u672c\u8f93\u5165\u3002\u5b83\u53ef\u4ee5\u5904\u7406\u957f\u8fbe256\u5b57\u7b26\u7684\u6587\u672c\u63d0\u793a\u3002<\/p>\n<p><strong>\u95ee\u98986<\/strong>: \u5982\u4f55\u5229\u7528Kolors\u6a21\u578b\u8fdb\u884c\u591a\u98ce\u683c\u56fe\u50cf\u751f\u6210\uff1f <strong>\u89e3\u7b54<\/strong>: Kolors\u6a21\u578b\u80fd\u591f\u6839\u636e\u6587\u672c\u63cf\u8ff0\u751f\u6210\u591a\u79cd\u98ce\u683c\u7684\u56fe\u50cf\u3002\u5728\u8f93\u5165\u6587\u672c\u65f6\uff0c\u53ef\u4ee5\u6307\u5b9a\u6240\u9700\u7684\u98ce\u683c\uff0c\u5982\u201c\u6cb9\u753b\u98ce\u683c\u201d\u3001\u201c\u5361\u901a\u98ce\u683c\u201d\u7b49\uff0c\u6a21\u578b\u5c06\u6839\u636e\u8fd9\u4e9b\u63d0\u793a\u751f\u6210\u76f8\u5e94\u98ce\u683c\u7684\u56fe\u50cf\u3002<\/p>\n<h3>4.4 \u5e94\u7528\u96c6\u6210\u95ee\u9898<\/h3>\n<p><strong>\u95ee\u98987<\/strong>: \u5982\u4f55\u5c06Kolors\u6a21\u578b\u96c6\u6210\u5230\u6211\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff1f <strong>\u89e3\u7b54<\/strong>: \u5c06Kolors\u6a21\u578b\u96c6\u6210\u5230\u5e94\u7528\u7a0b\u5e8f\u4e2d\u901a\u5e38\u6d89\u53ca\u521b\u5efa\u4e00\u4e2aAPI\u63a5\u53e3\uff0c\u901a\u8fc7\u8be5\u63a5\u53e3\u63a5\u6536\u6587\u672c\u8f93\u5165\u5e76\u8fd4\u56de\u751f\u6210\u7684\u56fe\u50cf\u3002\u786e\u4fdd\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u5904\u7406\u56fe\u50cf\u7684\u4e0a\u4f20\u3001\u5b58\u50a8\u548c\u5c55\u793a\u3002<\/p>\n<p><strong>\u95ee\u98988<\/strong>: Kolors\u6a21\u578b\u80fd\u5426\u7528\u4e8e\u5546\u4e1a\u7528\u9014\uff1f <strong>\u89e3\u7b54<\/strong>: Kolors\u6a21\u578b\u7684\u4ee3\u7801\u662f\u5f00\u6e90\u7684\uff0c\u4f46\u4f7f\u7528\u5176\u8fdb\u884c\u5546\u4e1a\u7528\u9014\u65f6\u9700\u8981\u9075\u5b88\u76f8\u5e94\u7684\u8bb8\u53ef\u534f\u8bae\u3002\u5efa\u8bae\u8be6\u7ec6\u9605\u8bfb\u6a21\u578b\u7684\u8bb8\u53ef\u534f\u8bae\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u8054\u7cfb\u5feb\u624b\u516c\u53f8\u83b7\u53d6\u5546\u4e1a\u8bb8\u53ef\u3002<\/p>\n<h3>4.5 \u793e\u533a\u548c\u652f\u6301\u95ee\u9898<\/h3>\n<p><strong>\u95ee\u98989<\/strong>: \u5982\u679c\u5728\u4f7f\u7528Kolors\u6a21\u578b\u65f6\u9047\u5230\u95ee\u9898\uff0c\u6211\u5e94\u8be5\u5728\u54ea\u91cc\u5bfb\u6c42\u5e2e\u52a9\uff1f <strong>\u89e3\u7b54<\/strong>: \u60a8\u53ef\u4ee5\u5728Kolors\u6a21\u578b\u7684GitHub\u4ed3\u5e93\u4e2d\u63d0\u4ea4issue\uff0c\u6216\u52a0\u5165\u76f8\u5173\u7684\u6280\u672f\u793e\u533a\u548c\u8bba\u575b\u5bfb\u6c42\u5e2e\u52a9\u3002\u6b64\u5916\uff0c\u4e5f\u53ef\u4ee5\u53c2\u8003\u5feb\u624b\u5b98\u65b9\u63d0\u4f9b\u7684\u6587\u6863\u548c\u6559\u7a0b\u3002<\/p>\n<p><strong>\u95ee\u989810<\/strong>: \u6211\u80fd\u5426\u4e3aKolors\u6a21\u578b\u7684\u5f00\u53d1\u505a\u51fa\u8d21\u732e\uff1f <strong>\u89e3\u7b54<\/strong>: \u975e\u5e38\u6b22\u8fce\uff01\u60a8\u53ef\u4ee5\u901a\u8fc7\u63d0\u4ea4\u4ee3\u7801\u6539\u8fdb\u3001bug\u4fee\u590d\u6216\u65b0\u529f\u80fd\u5efa\u8bae\u6765\u4e3aKolors\u6a21\u578b\u7684\u5f00\u53d1\u505a\u51fa\u8d21\u732e\u3002\u786e\u4fdd\u9075\u5faa\u9879\u76ee\u7684\u4ee3\u7801\u89c4\u8303\u548c\u8d21\u732e\u6307\u5357\u3002<\/p>\n<h2>\u76f8\u5173\u8d44\u6e90<\/h2>\n<h3>5.1 \u5b98\u65b9\u8d44\u6e90<\/h3>\n<ul>\n<li><strong>Kolors\u6a21\u578b\u5b98\u65b9GitHub\u4ed3\u5e93<\/strong>\uff1a<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/github.com\/Kwai-Kolors\/Kolors\" target=\"_blank\" rel=\"noopener\">Kolors GitHub Repository<\/a>\n<ul>\n<li>\u8fd9\u662f\u83b7\u53d6Kolors\u6a21\u578b\u4ee3\u7801\u3001\u6743\u91cd\u548c\u6587\u6863\u7684\u4e3b\u8981\u6e20\u9053\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>Kolors\u6a21\u578b\u5b98\u65b9\u6280\u672f\u62a5\u544a<\/strong>\uff1a<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/github.com\/Kwai-Kolors\/Kolors\/blob\/master\/imgs\/Kolors_paper.pdf\" target=\"_blank\" rel=\"noopener\">Technical Report<\/a>\n<ul>\n<li>\u63d0\u4f9b\u4e86\u5173\u4e8eKolors\u6a21\u578b\u7684\u8be6\u7ec6\u6280\u672f\u7ec6\u8282\u548c\u7814\u7a76\u6210\u679c\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>Kolors\u6a21\u578b\u4f7f\u7528\u6559\u7a0b<\/strong>\uff1a<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https:\/\/kolors.kuaishou.com\/guide\" target=\"_blank\" rel=\"noopener\">Kolors Tutorial<\/a>\n<ul>\n<li>\u5feb\u624b\u5b98\u65b9\u63d0\u4f9b\u7684\u4f7f\u7528\u6559\u7a0b\uff0c\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u4e0a\u624bKolors\u6a21\u578b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u56fe\u5927\u6a21\u578bKolors\u662f\u7531\u4e2d\u56fd\u79d1\u6280\u516c\u53f8\u5feb\u624b\u63a8\u51fa\u7684\u4e00\u6b3e\u5148\u8fdb\u7684\u6587\u751f\u56fe\uff08text-to-image\uff09\u4eba\u5de5\u667a\u80fdAI\u5927\u6a21\u578b\u3002\u5b83\u662f\u57fa\u4e8e\u6df1\u5ea6\u5b66\u4e60\u6280\u672f\uff0c\u7279\u522b\u662f\u6269\u6563\u6a21\u578b\uff08diffusion model\uff09\u6784\u5efa\u7684\uff0c\u80fd\u591f\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u6587\u672c\u63cf\u8ff0\u751f\u6210\u9ad8\u8d28\u91cf\u3001\u9ad8\u5206\u8fa8\u7387\u7684\u56fe\u50cf\u3002Kolors\u6a21\u578b\u7684\u5f00\u53d1\u6807\u5fd7\u7740\u4e2d\u6587\u8bed\u5883\u4e0bAI\u56fe\u50cf\u751f\u6210\u6280\u672f\u7684\u91cd\u5927\u7a81\u7834\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u65b0\u7684\u89c6\u89c9\u5185\u5bb9\u521b\u4f5c\u5de5\u5177\u3002 1.2 \u6280\u672f\u7279\u70b9 Kolors\u6a21\u578b\u91c7\u7528\u4e86\u57fa\u4e8eU-Net\u67b6\u6784\u7684\u9690\u7a7a\u95f4\u6269\u6563\u6a21\u578b\uff0c\u5e76\u7ed3\u5408\u4e86\u5927\u8bed\u8a00\u6a21\u578bChatGLM3\u8fdb\u884c\u6587\u672c\u8868\u5f81\u3002\u8fd9\u4e00\u6280\u672f\u7ec4\u5408\u8d4b\u4e88\u4e86Kolors\u5f3a\u5927\u7684\u590d\u6742\u957f<\/p>\n","protected":false},"author":1,"featured_media":265,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"collection":[],"company":[32],"rank":[],"class_list":["post-264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-art","company-kuaishou"],"_links":{"self":[{"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":2,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/posts\/264\/revisions\/267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/media\/265"}],"wp:attachment":[{"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/tags?post=264"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/collection?post=264"},{"taxonomy":"company","embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/company?post=264"},{"taxonomy":"rank","embeddable":true,"href":"https:\/\/www.onetts.com\/ai\/wp-json\/wp\/v2\/rank?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}