{"id":2980,"date":"2025-12-09T01:51:06","date_gmt":"2025-12-08T17:51:06","guid":{"rendered":"https:\/\/www.tiptinker.com\/meituans-longcat-image-the-new-ai-model-redefining-image-generation-and-editing\/"},"modified":"2025-12-09T02:21:33","modified_gmt":"2025-12-08T18:21:33","slug":"meituans-longcat-image-the-new-ai-model-redefining-image-generation-and-editing","status":"publish","type":"post","link":"https:\/\/www.tiptinker.com\/zh-hans\/meituans-longcat-image-the-new-ai-model-redefining-image-generation-and-editing\/","title":{"rendered":"\u7f8e\u56e2\u53d1\u5e03LongCat-Image\uff1a\u91cd\u65b0\u5b9a\u4e49AI\u56fe\u50cf\u751f\u6210\u4e0e\u7f16\u8f91\u7684\u65b0\u6a21\u578b"},"content":{"rendered":"<p>\u60a8\u662f\u5426\u8fd8\u5728\u4e3aAI\u6a21\u578b\u4f53\u79ef\u8fc7\u5927\u3001\u8fd0\u884c\u7f13\u6162\uff0c\u6216\u662f\u65e0\u6cd5\u6b63\u786e\u6e32\u67d3\u6587\u5b57\uff08\u5c24\u5176\u662f\u4e2d\u6587\uff09\u800c\u70e6\u607c\uff1f\u73b0\u5728\uff0c\u4e00\u4f4d\u65b0\u7684\u6311\u6218\u8005\u5df2\u7136\u5165\u5c40\u3002\u5b83\u5c31\u662f\u6765\u81ea\u7f8e\u56e2\u7684<strong>LongCat-Image<\/strong>\u2014\u2014\u4e00\u4e2a\u91cd\u65b0\u5b9a\u4e49\u4e86\u6548\u7387\u4e0e\u8d28\u91cf\u7684\u5f00\u6e90AI\u56fe\u50cf\u751f\u6210\u6a21\u578b\u3002\u5728TipTinker\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u6b3e\u6a21\u578b\u4e3a\u4f55\u80fd\u6210\u4e3a\u5f00\u53d1\u8005\u4e0e\u521b\u4f5c\u8005\u7684\u201c\u6e38\u620f\u89c4\u5219\u6539\u53d8\u8005\u201d\u3002<\/p>\n<p>LongCat-Image\u4e0d\u53ea\u662f\u53c8\u4e00\u4e2aAI\u6a21\u578b\uff0c\u5b83\u662f\u4e00\u4e2a\u65e8\u5728\u89e3\u51b3AI\u56fe\u50cf\u751f\u6210\u9886\u57df\u6838\u5fc3\u75db\u70b9\u7684\u7efc\u5408\u751f\u6001\u7cfb\u7edf\u3002\u8ba9\u6211\u4eec\u4e00\u63a2\u7a76\u7adf\uff0c\u770b\u770b\u5b83\u4e3a\u4f55\u5982\u6b64\u5f15\u4eba\u6ce8\u76ee\u3002<\/p>\n<h2>LongCat-Image\u7684\u7279\u522b\u4e4b\u5904\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>LongCat-Image\u51ed\u501f\u51e0\u9879\u76f4\u51fb\u7528\u6237\u75db\u70b9\u7684\u201c\u6740\u624b\u7ea7\u201d\u529f\u80fd\u8131\u9896\u800c\u51fa\u3002<\/p>\n<ul>\n<li><strong>\u5353\u8d8a\u7684\u6548\u7387<\/strong>\uff1a\u4ec5\u7528<strong>60\u4ebf\u53c2\u6570<\/strong>\uff0cLongCat-Image\u7684\u6027\u80fd\u4fbf\u8db3\u4ee5\u5ab2\u7f8e\u751a\u81f3\u8d85\u8d8a\u8bb8\u591a\u4f53\u91cf\u6570\u500d\u4e8e\u5b83\u7684\u5f00\u6e90\u6a21\u578b\u3002\u8fd9\u610f\u5473\u7740\u66f4\u4f4e\u7684\u786c\u4ef6\u95e8\u69db\u548c\u66f4\u5feb\u7684\u63a8\u7406\u901f\u5ea6\uff0c\u540c\u65f6\u4fdd\u8bc1\u4e86\u9876\u7ea7\u7684\u56fe\u50cf\u8d28\u91cf\u3002<\/li>\n<li><strong>\u7cbe\u6e5b\u7684\u53cc\u8bed\u6587\u672c\u6e32\u67d3<\/strong>\uff1a\u8fd9\u662f\u5b83\u7684\u201c\u8d85\u80fd\u529b\u201d\u3002\u8be5\u6a21\u578b\u5728\u6e32\u67d3\u590d\u6742\u7684\u6c49\u5b57\u65f6\u5c55\u73b0\u51fa\u5353\u8d8a\u7684\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027\uff0c\u5b8c\u7f8e\u89e3\u51b3\u4e86\u8bb8\u591a\u5176\u4ed6\u6a21\u578b\u7684\u77ed\u677f\uff0c\u540c\u65f6\u5b83\u7684\u82f1\u6587\u6587\u672c\u6e32\u67d3\u80fd\u529b\u4e5f\u540c\u6837\u51fa\u8272\u3002<\/li>\n<li><strong>\u9876\u7ea7\u7684\u56fe\u50cf\u7f16\u8f91\u80fd\u529b<\/strong>\uff1a\u4e13\u95e8\u7684<code>LongCat-Image-Edit<\/code>\u6a21\u578b\u63d0\u4f9b\u4e86\u4ee4\u4eba\u60ca\u53f9\u7684\u7cbe\u51c6\u5ea6\u3002\u5b83\u80fd\u51fa\u8272\u5730\u9075\u5faa\u590d\u6742\u7684\u6307\u4ee4\uff0c\u8fdb\u884c\u5c40\u90e8\u6216\u5168\u5c40\u7f16\u8f91\uff0c\u5e76\u4fdd\u6301\u672a\u7f16\u8f91\u533a\u57df\u7684\u9ad8\u5ea6\u4e00\u81f4\u6027\u3002<\/li>\n<li><strong>\u975e\u51e1\u7684\u771f\u5b9e\u611f<\/strong>\uff1a\u901a\u8fc7\u521b\u65b0\u7684\u6570\u636e\u7b56\u7565\uff0cLongCat-Image\u751f\u6210\u7684\u56fe\u50cf\u62e5\u6709\u6781\u9ad8\u7684\u771f\u5b9e\u611f\u548c\u4e30\u5bcc\u7684\u7ec6\u8282\u3002<\/li>\n<li><strong>\u771f\u6b63\u5b8c\u6574\u7684\u5f00\u6e90\u751f\u6001<\/strong>\uff1a\u7f8e\u56e2\u4e0d\u4ec5\u53d1\u5e03\u4e86\u6700\u7ec8\u6a21\u578b\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e2d\u95f4\u8bad\u7ec3\u8282\u70b9\u548c\u5b8c\u6574\u7684\u8bad\u7ec3\u4ee3\u7801\uff0c\u6781\u5927\u5730\u8d4b\u80fd\u793e\u533a\uff0c\u9f13\u52b1\u5728\u5176\u57fa\u7840\u4e0a\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u548c\u7814\u7a76\u3002<\/li>\n<\/ul>\n<p>[Image: \u4e00\u7ec4LongCat-Image\u80fd\u529b\u5c55\u793a\u56fe\uff0c\u5305\u542b\u903c\u771f\u7684\u4eba\u50cf\u3001\u590d\u6742\u7684\u573a\u666f\u4ee5\u53ca\u5b8c\u7f8e\u7684\u4e2d\u6587\u6587\u5b57\u6e32\u67d3\u6548\u679c\u3002]<\/p>\n<h2>LongCat-Image\u5feb\u901f\u4e0a\u624b\u6307\u5357<\/h2>\n<p>\u51c6\u5907\u597d\u4eb2\u624b\u8bd5\u8bd5\u4e86\u5417\uff1f\u5165\u95e8\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\u3002LongCat-Image\u5957\u4ef6\u5305\u542b\u4e24\u4e2a\u4e3b\u8981\u7684\u63a8\u7406\u6a21\u578b\uff1a\u4e00\u4e2a\u7528\u4e8e\u6587\u751f\u56fe\uff0c\u53e6\u4e00\u4e2a\u7528\u4e8e\u56fe\u50cf\u7f16\u8f91\u3002<\/p>\n<h3>\u6b65\u9aa4\u4e00\uff1a\u914d\u7f6e\u73af\u5883<\/h3>\n<p>\u9996\u5148\uff0c\u514b\u9686\u5b98\u65b9\u4ee3\u7801\u5e93\u5e76\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\u3002<\/p>\n<pre><code class=\"language-bash\"># \u514b\u9686\u4ed3\u5e93\r\ngit clone https:\/\/github.com\/meituan-longcat\/LongCat-Image\r\ncd LongCat-Image\r\n\r\n# \u521b\u5efaconda\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56\r\nconda create -n longcat-image python=3.10\r\nconda activate longcat-image\r\npip install -r requirements.txt\r\npython setup.py develop\r\n<\/code><\/pre>\n<h3>\u6b65\u9aa4\u4e8c\uff1a\u6587\u672c\u751f\u6210\u56fe\u50cf<\/h3>\n<p>\u4f7f\u7528<code>LongCat-Image<\/code>\u6a21\u578b\uff0c\u901a\u8fc7\u6587\u672c\u63d0\u793a\u8bcd\u521b\u4f5c\u60ca\u8273\u7684\u89c6\u89c9\u4f5c\u54c1\u3002\u8bf7\u6ce8\u610f\u4ee3\u7801\u4e2d\u5173\u4e8e\u63d0\u793a\u8bcd\u91cd\u5199\u7684\u6280\u5de7\uff0c\u5b83\u80fd\u8fdb\u4e00\u6b65\u63d0\u5347\u751f\u6210\u8d28\u91cf\u3002<\/p>\n<pre><code class=\"language-python\">import torch\r\nfrom transformers import AutoProcessor\r\nfrom longcat_image.models import LongCatImageTransformer2DModel\r\nfrom longcat_image.pipelines import LongCatImagePipeline\r\n\r\ndevice = torch.device('cuda')\r\ncheckpoint_dir = '.\/weights\/LongCat-Image' # \u5047\u8bbe\u60a8\u5df2\u5728\u6b64\u5904\u4e0b\u8f7d\u6a21\u578b\r\n\r\ntext_processor = AutoProcessor.from_pretrained(checkpoint_dir, subfolder='tokenizer')\r\ntransformer = LongCatImageTransformer2DModel.from_pretrained(\r\n    checkpoint_dir,\r\n    subfolder='transformer',\r\n    torch_dtype=torch.bfloat16\r\n).to(device)\r\n\r\npipe = LongCatImagePipeline.from_pretrained(\r\n    checkpoint_dir,\r\n    transformer=transformer,\r\n    text_processor=text_processor\r\n)\r\n\r\n# \u5982\u679c\u663e\u5b58\u6709\u9650\uff08\u7ea6\u970017GB\uff09\uff0c\u542f\u7528CPU offload\r\npipe.enable_model_cpu_offload()\r\n\r\nprompt = '\u4e00\u4e2a\u5e74\u8f7b\u7684\u4e9a\u88d4\u5973\u6027\uff0c\u8eab\u7a7f\u9ec4\u8272\u9488\u7ec7\u886b\uff0c\u80cc\u666f\u662f\u4e00\u5835\u7c97\u7cd9\u7684\u7816\u5899\u3002\u9633\u5149\u6e29\u6696\u5730\u6d12\u5728\u5979\u8eab\u4e0a\uff0c\u5979\u6b63\u5728\u606c\u9759\u5730\u5fae\u7b11\u3002'\r\n\r\nimage = pipe(\r\n    prompt,\r\n    height=1344,\r\n    width=768,\r\n    guidance_scale=4.5,\r\n    num_inference_steps=50,\r\n    enable_prompt_rewrite=True # \u5229\u7528\u6587\u672c\u7f16\u7801\u5668\u4f18\u5316\u8f93\u5165\u6307\u4ee4\r\n).images[0]\r\n\r\nimage.save('.\/my_first_longcat_image.png')\r\n<\/code><\/pre>\n<h3>\u6b65\u9aa4\u4e09\uff1a\u9ad8\u7cbe\u5ea6\u56fe\u50cf\u7f16\u8f91<\/h3>\n<p>\u5982\u9700\u4fee\u6539\u73b0\u6709\u56fe\u7247\uff0c\u8bf7\u4f7f\u7528<code>LongCat-Image-Edit<\/code>\u6a21\u578b\u3002\u65e0\u8bba\u662f\u6539\u53d8\u7269\u4f53\u989c\u8272\uff0c\u8fd8\u662f\u201c\u53cd\u8f6c\u732b\u72d7\u201d\uff0c\u5b83\u90fd\u80fd\u8f7b\u677e\u80dc\u4efb\u3002<\/p>\n<pre><code class=\"language-python\">import torch\r\nfrom PIL import Image\r\nfrom longcat_image.pipelines import LongCatImageEditPipeline\r\n\r\n# \u5047\u8bbe\u5df2\u4e3aEdit\u6a21\u578b\u52a0\u8f7d\u4e86\u57fa\u7840\u8bbe\u7f6e\uff08device, transformer\u7b49\uff09\r\n# checkpoint_dir \u5e94\u4e3a '.\/weights\/LongCat-Image-Edit'\r\n\r\nedit_pipe = LongCatImageEditPipeline.from_pretrained(...)\r\nedit_pipe.enable_model_cpu_offload() # \u5982\u679c\u663e\u5b58\u6709\u9650\uff08\u7ea6\u970019GB\uff09\uff0c\u8bf7\u542f\u7528\r\n\r\ninit_image = Image.open('assets\/test.png').convert('RGB')\r\nprompt = '\u628a\u732b\u53d8\u6210\u4e00\u53ea\u6234\u7740\u9879\u5708\u7684\u67f4\u72ac'\r\n\r\nimage = edit_pipe(\r\n    init_image,\r\n    prompt,\r\n    guidance_scale=4.5,\r\n    num_inference_steps=50\r\n).images[0]\r\n\r\nimage.save('.\/edited_image.png')\r\n<\/code><\/pre>\n<h2>\ud83d\ude80 \u4e13\u5bb6\u63d0\u793a\uff1a\u83b7\u53d6\u6700\u4f73\u6548\u679c<\/h2>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u6280\u5de7<\/th>\n<th align=\"left\">\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>\u7ed9\u6587\u672c\u52a0\u5f15\u53f7<\/strong><\/td>\n<td align=\"left\"><strong>\u81f3\u5173\u91cd\u8981<\/strong>\uff1a\u82e5\u60f3\u5728\u56fe\u7247\u4e2d\u6e32\u67d3\u6587\u5b57\uff0c\u52a1\u5fc5\u5728\u63d0\u793a\u8bcd\u4e2d\u7528\u53cc\u5f15\u53f7\uff08<code>\"\"<\/code>\uff09\u5c06\u6587\u5b57\u62ec\u8d77\u6765\u3002\u8fd9\u4f1a\u544a\u77e5\u5206\u8bcd\u5668\u542f\u7528\u5b57\u7b26\u7ea7\u7f16\u7801\u4ee5\u83b7\u5f97\u6700\u4f73\u6548\u679c\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>\u7ba1\u7406\u4f60\u7684\u663e\u5b58<\/strong><\/td>\n<td align=\"left\">\u5982\u679c\u6ca1\u6709\u9876\u7ea7GPU\uff0c\u8bf7\u4f7f\u7528<code>pipe.enable_model_cpu_offload()<\/code>\u3002\u867d\u7136\u901f\u5ea6\u7a0d\u6162\uff0c\u4f46\u80fd\u6709\u6548\u907f\u514d\u663e\u5b58\u6ea2\u51fa\u9519\u8bef\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>\u4f18\u5316\u4f60\u7684\u63d0\u793a\u8bcd<\/strong><\/td>\n<td align=\"left\">\u5728\u6587\u751f\u56fe\u65f6\uff0c\u4fdd\u6301<code>enable_prompt_rewrite=True<\/code>\u3002\u6a21\u578b\u4f1a\u5229\u7528\u5176\u5f3a\u5927\u7684\u6587\u672c\u7f16\u7801\u5668\u5728\u751f\u6210\u524d\u4f18\u5316\u4f60\u7684\u6307\u4ee4\u3002<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>\u5584\u7528\u5f00\u53d1\u8005\u6a21\u578b<\/strong><\/td>\n<td align=\"left\">\u5bf9\u4e8e\u7814\u7a76\u4eba\u5458\uff0c<code>LongCat-Image-Dev<\/code>\u6a21\u578b\u662f\u5728\u81ea\u5b9a\u4e49\u6570\u636e\u96c6\u4e0a\u8fdb\u884c\u5fae\u8c03\uff08Fine-tuning\uff09\u7684\u7406\u60f3\u8d77\u70b9\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u7ed3\u8bed<\/h2>\n<p>LongCat-Image\u4e0d\u4ec5\u662f\u53c8\u4e00\u4e2aAI\u6a21\u578b\uff0c\u66f4\u662f\u4e00\u4efd\u5ba3\u8a00\u3002\u901a\u8fc7\u8fd9\u4e2a\u9ad8\u6548\u3001\u652f\u6301\u53cc\u8bed\u4e14\u771f\u6b63\u5f00\u6e90\u7684\u5f3a\u5927\u5de5\u5177\u5305\uff0c\u7f8e\u56e2\u4e3a\u5168\u7403AI\u793e\u533a\u8d21\u732e\u4e86\u5b9d\u8d35\u7684\u8d22\u5bcc\u3002\u5b83\u7cbe\u51c6\u6e32\u67d3\u4e2d\u6587\u6587\u672c\u7684\u80fd\u529b\uff0c\u66f4\u662f\u8bbe\u7acb\u4e86\u884c\u4e1a\u7684\u65b0\u6807\u6746\u3002<\/p>\n<p>\u73b0\u5728\u5c31\u53bb\u5c06LongCat-Image\u96c6\u6210\u5230\u60a8\u7684\u5de5\u4f5c\u6d41\u4e2d\u5427\u3002\u6211\u4eecTipTinker\u76f8\u4fe1\uff0c\u5b83\u5c06\u4e3a\u60a8\u89e3\u9501\u5168\u65b0\u7684\u521b\u4f5c\u53ef\u80fd\u3002<\/p>\n<h3>\ud83d\udcda \u6269\u5c55\u9605\u8bfb\u4e0e\u8d44\u6e90<\/h3>\n<ul>\n<li><strong>\u5b98\u65b9GitHub\u4ed3\u5e93<\/strong>: <a href=\"https:\/\/github.com\/meituan-longcat\/LongCat-Image\">meituan-longcat\/LongCat-Image<\/a><\/li>\n<li><strong>\u6587\u751f\u56fe\u6a21\u578b<\/strong>: <a href=\"https:\/\/huggingface.co\/meituan-longcat\/LongCat-Image\">Hugging Face &#8211; LongCat-Image<\/a><\/li>\n<li><strong>\u56fe\u50cf\u7f16\u8f91\u6a21\u578b<\/strong>: <a href=\"https:\/\/huggingface.co\/meituan-longcat\/LongCat-Image-Edit\">Hugging Face &#8211; LongCat-Image-Edit<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u60a8\u662f\u5426\u8fd8\u5728\u4e3aAI\u6a21\u578b\u4f53\u79ef\u8fc7\u5927\u3001\u8fd0\u884c\u7f13\u6162\uff0c\u6216\u662f\u65e0\u6cd5\u6b63\u786e\u6e32\u67d3\u6587\u5b57\uff08\u5c24\u5176\u662f\u4e2d\u6587\uff09\u800c\u70e6\u607c\uff1f\u73b0\u5728\uff0c\u4e00\u4f4d\u65b0\u7684\u6311\u6218\u8005\u5df2\u7136\u5165\u5c40\u3002\u5b83\u5c31\u662f\u6765\u81ea\u7f8e\u56e2\u7684LongCat-Image\u2014\u2014\u4e00\u4e2a\u91cd\u65b0\u5b9a\u4e49\u4e86\u6548\u7387\u4e0e\u8d28\u91cf\u7684\u5f00\u6e90AI\u56fe\u50cf\u751f\u6210\u6a21\u578b\u3002\u5728TipTinker\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u8fd9\u6b3e\u6a21\u578b\u4e3a\u4f55\u80fd\u6210\u4e3a\u5f00\u53d1\u8005\u4e0e\u521b\u4f5c\u8005\u7684\u201c\u6e38\u620f\u89c4\u5219\u6539\u53d8\u8005\u201d\u3002 LongCat-Image\u4e0d\u53ea\u662f\u53c8\u4e00\u4e2aAI\u6a21\u578b\uff0c\u5b83\u662f\u4e00\u4e2a\u65e8\u5728\u89e3\u51b3AI\u56fe\u50cf\u751f\u6210\u9886\u57df\u6838\u5fc3\u75db\u70b9\u7684\u7efc\u5408\u751f\u6001\u7cfb\u7edf\u3002\u8ba9\u6211\u4eec\u4e00\u63a2\u7a76\u7adf\uff0c\u770b\u770b\u5b83\u4e3a\u4f55\u5982\u6b64\u5f15\u4eba\u6ce8\u76ee\u3002 LongCat-Image\u7684\u7279\u522b\u4e4b\u5904\u662f\u4ec0\u4e48\uff1f LongCat-Image\u51ed\u501f\u51e0\u9879\u76f4\u51fb\u7528\u6237\u75db\u70b9\u7684\u201c\u6740\u624b\u7ea7\u201d\u529f\u80fd\u8131\u9896\u800c\u51fa\u3002 \u5353\u8d8a\u7684\u6548\u7387\uff1a\u4ec5\u752860\u4ebf\u53c2\u6570\uff0cLongCat-Image\u7684\u6027\u80fd\u4fbf\u8db3\u4ee5\u5ab2\u7f8e\u751a\u81f3\u8d85\u8d8a\u8bb8\u591a\u4f53\u91cf\u6570\u500d\u4e8e\u5b83\u7684\u5f00\u6e90\u6a21\u578b\u3002\u8fd9\u610f\u5473\u7740\u66f4\u4f4e\u7684\u786c\u4ef6\u95e8\u69db\u548c\u66f4\u5feb\u7684\u63a8\u7406\u901f\u5ea6\uff0c\u540c\u65f6\u4fdd\u8bc1\u4e86\u9876\u7ea7\u7684\u56fe\u50cf\u8d28\u91cf\u3002 \u7cbe\u6e5b\u7684\u53cc\u8bed\u6587\u672c\u6e32\u67d3\uff1a\u8fd9\u662f\u5b83\u7684\u201c\u8d85\u80fd\u529b\u201d\u3002\u8be5\u6a21\u578b\u5728\u6e32\u67d3\u590d\u6742\u7684\u6c49\u5b57\u65f6\u5c55\u73b0\u51fa\u5353\u8d8a\u7684\u51c6\u786e\u6027\u548c\u7a33\u5b9a\u6027\uff0c\u5b8c\u7f8e\u89e3\u51b3\u4e86\u8bb8\u591a\u5176\u4ed6\u6a21\u578b\u7684\u77ed\u677f\uff0c\u540c\u65f6\u5b83\u7684\u82f1\u6587\u6587\u672c\u6e32\u67d3\u80fd\u529b\u4e5f\u540c\u6837\u51fa\u8272\u3002 \u9876\u7ea7\u7684\u56fe\u50cf\u7f16\u8f91\u80fd\u529b\uff1a\u4e13\u95e8\u7684LongCat-Image-Edit\u6a21\u578b\u63d0\u4f9b\u4e86\u4ee4\u4eba\u60ca\u53f9\u7684\u7cbe\u51c6\u5ea6\u3002\u5b83\u80fd\u51fa\u8272\u5730\u9075\u5faa\u590d\u6742\u7684\u6307\u4ee4\uff0c\u8fdb\u884c\u5c40\u90e8\u6216\u5168\u5c40\u7f16\u8f91\uff0c\u5e76\u4fdd\u6301\u672a\u7f16\u8f91\u533a\u57df\u7684\u9ad8\u5ea6\u4e00\u81f4\u6027\u3002 \u975e\u51e1\u7684\u771f\u5b9e\u611f\uff1a\u901a\u8fc7\u521b\u65b0\u7684\u6570\u636e\u7b56\u7565\uff0cLongCat-Image\u751f\u6210\u7684\u56fe\u50cf\u62e5\u6709\u6781\u9ad8\u7684\u771f\u5b9e\u611f\u548c\u4e30\u5bcc\u7684\u7ec6\u8282\u3002 \u771f\u6b63\u5b8c\u6574\u7684\u5f00\u6e90\u751f\u6001\uff1a\u7f8e\u56e2\u4e0d\u4ec5\u53d1\u5e03\u4e86\u6700\u7ec8\u6a21\u578b\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e2d\u95f4\u8bad\u7ec3\u8282\u70b9\u548c\u5b8c\u6574\u7684\u8bad\u7ec3\u4ee3\u7801\uff0c\u6781\u5927\u5730\u8d4b\u80fd\u793e\u533a\uff0c\u9f13\u52b1\u5728\u5176\u57fa\u7840\u4e0a\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u548c\u7814\u7a76\u3002 [Image: \u4e00\u7ec4LongCat-Image\u80fd\u529b\u5c55\u793a\u56fe\uff0c\u5305\u542b\u903c\u771f\u7684\u4eba\u50cf\u3001\u590d\u6742\u7684\u573a\u666f\u4ee5\u53ca\u5b8c\u7f8e\u7684\u4e2d\u6587\u6587\u5b57\u6e32\u67d3\u6548\u679c\u3002] LongCat-Image\u5feb\u901f\u4e0a\u624b\u6307\u5357 \u51c6\u5907\u597d\u4eb2\u624b\u8bd5\u8bd5\u4e86\u5417\uff1f\u5165\u95e8\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\u3002LongCat-Image\u5957\u4ef6\u5305\u542b\u4e24\u4e2a\u4e3b\u8981\u7684\u63a8\u7406\u6a21\u578b\uff1a\u4e00\u4e2a\u7528\u4e8e\u6587\u751f\u56fe\uff0c\u53e6\u4e00\u4e2a\u7528\u4e8e\u56fe\u50cf\u7f16\u8f91\u3002 \u6b65\u9aa4\u4e00\uff1a\u914d\u7f6e\u73af\u5883 \u9996\u5148\uff0c\u514b\u9686\u5b98\u65b9\u4ee3\u7801\u5e93\u5e76\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\u3002 # \u514b\u9686\u4ed3\u5e93 git clone https:\/\/github.com\/meituan-longcat\/LongCat-Image cd LongCat-Image # \u521b\u5efaconda\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56 conda create -n longcat-image python=3.10 conda activate longcat-image pip install -r requirements.txt python setup.py develop \u6b65\u9aa4\u4e8c\uff1a\u6587\u672c\u751f\u6210\u56fe\u50cf \u4f7f\u7528LongCat-Image\u6a21\u578b\uff0c\u901a\u8fc7\u6587\u672c\u63d0\u793a\u8bcd\u521b\u4f5c\u60ca\u8273\u7684\u89c6\u89c9\u4f5c\u54c1\u3002\u8bf7\u6ce8\u610f\u4ee3\u7801\u4e2d\u5173\u4e8e\u63d0\u793a\u8bcd\u91cd\u5199\u7684\u6280\u5de7\uff0c\u5b83\u80fd\u8fdb\u4e00\u6b65\u63d0\u5347\u751f\u6210\u8d28\u91cf\u3002 import torch from transformers import AutoProcessor from longcat_image.models import LongCatImageTransformer2DModel from longcat_image.pipelines import LongCatImagePipeline [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2979,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-2980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/posts\/2980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=2980"}],"version-history":[{"count":0,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/posts\/2980\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/media\/2979"}],"wp:attachment":[{"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=2980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=2980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tiptinker.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=2980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}