Buckets:

hf-doc-build/doc / diffusers /main /ko /api /pipelines /longcat_image.html
mishig's picture
download
raw
28.9 kB
<meta charset="utf-8" /><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;LongCat-Image&quot;,&quot;local&quot;:&quot;longcat-image&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;์ฃผ์š” ๊ธฐ๋Šฅ&quot;,&quot;local&quot;:&quot;key-features&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;์‚ฌ์šฉ ์˜ˆ์‹œ&quot;,&quot;local&quot;:&quot;usage-example&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;LongCatImagePipeline&quot;,&quot;local&quot;:&quot;diffusers.LongCatImagePipeline&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;LongCatImagePipelineOutput&quot;,&quot;local&quot;:&quot;diffusers.pipelines.longcat_image.LongCatImagePipelineOutput&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2}],&quot;depth&quot;:1}"/>
<link href="/docs/diffusers/main/en/_app/immutable/entry/start.D3LnKZ4R.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/BF9UNEM9.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/DPnyVmXs.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/entry/app.C0rBoMxR.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/DSGUT_OW.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/C045MWWx.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/DnVIJfC5.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/DsnmJJEf.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/nodes/0.DTZsP_3B.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/IaDvMxLQ.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/nodes/207.DKGdP5pe.js" rel="modulepreload">
<link href="/docs/diffusers/main/en/_app/immutable/chunks/bKdwVYpU.js" rel="modulepreload">
<!--1301cws--><meta name="hf:doc:metadata" content="{&quot;title&quot;:&quot;LongCat-Image&quot;,&quot;local&quot;:&quot;longcat-image&quot;,&quot;sections&quot;:[{&quot;title&quot;:&quot;Key Features&quot;,&quot;local&quot;:&quot;key-features&quot;,&quot;sections&quot;:[],&quot;depth&quot;:3},{&quot;title&quot;:&quot;Usage Example&quot;,&quot;local&quot;:&quot;usage-example&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;LongCatImagePipeline&quot;,&quot;local&quot;:&quot;diffusers.LongCatImagePipeline&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2},{&quot;title&quot;:&quot;LongCatImagePipelineOutput&quot;,&quot;local&quot;:&quot;diffusers.pipelines.longcat_image.LongCatImagePipelineOutput&quot;,&quot;sections&quot;:[],&quot;depth&quot;:2}],&quot;depth&quot;:1}"/><!---->
<link href="/docs/diffusers/main/en/_app/immutable/assets/0.tn0RQdqM.css" rel="modulepreload"> <!--[--><!--[0--><!--[--><!--[0--><!--[--><p></p> <div class="items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex" style="float: inline-end; margin-inline-start: 10px; display: inline-flex; position: relative; z-index: 10;"><div dir="ltr" class="inline-flex rounded-md max-sm:rounded-sm"><button class="inline-flex items-center gap-1 h-7 max-sm:h-7 px-2 max-sm:px-1.5 text-sm font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-live="polite"><span class="inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0 hover:text-gray-800 dark:hover:text-gray-200"><svg class="sm:size-3.5 size-3" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----></span> <span dir="auto">Copy page</span></button> <button class="inline-flex items-center justify-center w-6 max-sm:w-5 h-7 max-sm:h-7 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-haspopup="menu" aria-expanded="false" aria-label="Open copy menu"><svg class="transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 rotate-0" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg><!----></button></div> <!--[-1--><!--]--></div><!----> <!--[0--><h1 class="relative group"><a id="longcat-image" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#longcat-image"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->LongCat-Image<!----></span></h1><!--]--><!----> <div class="flex flex-wrap space-x-1"><img alt="LoRA" src="https://img.shields.io/badge/LoRA-d8b4fe?style=flat"/></div> <p>LongCat-Image๋ฅผ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค. LongCat-Image๋Š” ์ด๋ฏธ์ง€ ์ƒ์„ฑ์„ ์œ„ํ•œ ์„ ๊ตฌ์ ์ธ ์˜คํ”ˆ์†Œ์Šค ์ด์ค‘ ์–ธ์–ด(์ค‘๊ตญ์–ด-์˜์–ด) ๊ธฐ๋ฐ˜ ๋ชจ๋ธ๋กœ, ํ˜„์žฌ ์ฃผ์š” ๋ชจ๋ธ์—์„œ ํ”ํžˆ ๋ฐœ์ƒํ•˜๋Š” ๋‹ค๊ตญ์–ด ํ…์ŠคํŠธ ๋ Œ๋”๋ง, ์‚ฌ์ง„ ๊ฐ™์€ ์‚ฌ์‹ค์„ฑ, ๋ฐฐํฌ ํšจ์œจ์„ฑ, ๊ฐœ๋ฐœ์ž ์ ‘๊ทผ์„ฑ์ด๋ผ๋Š” ํ•ต์‹ฌ ๊ณผ์ œ ํ•ด๊ฒฐ์„ ์œ„ํ•ด ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.</p> <!--[2--><h3 class="relative group"><a id="key-features" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#key-features"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->์ฃผ์š” ๊ธฐ๋Šฅ<!----></span></h3><!--]--><!----> <ul><li>๐ŸŒŸ <strong>๋›ฐ์–ด๋‚œ ํšจ์œจ์„ฑ๊ณผ ์„ฑ๋Šฅ</strong>: <strong>6B ํŒŒ๋ผ๋ฏธํ„ฐ</strong>๋งŒ์œผ๋กœ LongCat-Image๋Š” ์—ฌ๋Ÿฌ ๋ฒค์น˜๋งˆํฌ์—์„œ ํฌ๊ธฐ๊ฐ€ ์ˆ˜ ๋ฐฐ ๋” ํฐ ๋‹ค์ˆ˜์˜ ์˜คํ”ˆ์†Œ์Šค ๋ชจ๋ธ์„ ๋Šฅ๊ฐ€ํ•˜๋ฉฐ, ํšจ์œจ์ ์ธ ๋ชจ๋ธ ์„ค๊ณ„์˜ ๋ง‰๋Œ€ํ•œ ์ž ์žฌ๋ ฅ์„ ์ž…์ฆํ•ฉ๋‹ˆ๋‹ค.</li> <li>๐ŸŒŸ <strong>๋›ฐ์–ด๋‚œ ํŽธ์ง‘ ์„ฑ๋Šฅ</strong>: LongCat-Image-Edit ๋ชจ๋ธ์€ ์˜คํ”ˆ์†Œ์Šค ๋ชจ๋ธ ์ค‘ ์ตœ์ฒจ๋‹จ ์„ฑ๋Šฅ์„ ๋‹ฌ์„ฑํ•˜๋ฉฐ, ์šฐ์ˆ˜ํ•œ ์‹œ๊ฐ์  ์ผ๊ด€์„ฑ์„ ๋ฐ”ํƒ•์œผ๋กœ ์ง€์‹œ ๋”ฐ๋ฅด๊ธฐ ๋ฐ ์ด๋ฏธ์ง€ ํ’ˆ์งˆ์—์„œ ์„ ๋‘๋ฅผ ๋‹ฌ๋ฆฌ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.</li> <li>๐ŸŒŸ <strong>๊ฐ•๋ ฅํ•œ ์ค‘๊ตญ์–ด ํ…์ŠคํŠธ ๋ Œ๋”๋ง</strong>: LongCat-Image๋Š” ๊ธฐ์กด SOTA ์˜คํ”ˆ์†Œ์Šค ๋ชจ๋ธ๊ณผ ๋น„๊ตํ–ˆ์„ ๋•Œ ์ผ๋ฐ˜์ ์ธ ์ค‘๊ตญ์–ด ๋ฌธ์ž ๋ Œ๋”๋ง์—์„œ ๋›ฐ์–ด๋‚œ ์ •ํ™•๋„์™€ ์•ˆ์ •์„ฑ์„ ๋ณด์—ฌ์ฃผ๋ฉฐ, ์ค‘๊ตญ์–ด ์‚ฌ์ „์— ๋Œ€ํ•œ ์—…๊ณ„ ์ตœ๊ณ ์˜ ์ปค๋ฒ„๋ฆฌ์ง€๋ฅผ ๋‹ฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.</li> <li>๐ŸŒŸ <strong>๋›ฐ์–ด๋‚œ ์‚ฌ์ง„ ์‹ค์‚ฌ๊ฐ</strong>: ํ˜์‹ ์ ์ธ ๋ฐ์ดํ„ฐ ์ „๋žต๊ณผ ํ•™์Šต ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ํ†ตํ•ด LongCat-Image๋Š” ์ƒ์„ฑ๋œ ์ด๋ฏธ์ง€์—์„œ ๋›ฐ์–ด๋‚œ ์‚ฌ์ง„ ์‹ค์‚ฌ๊ฐ์„ ๋‹ฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.</li> <li>๐ŸŒŸ <strong>ํฌ๊ด„์ ์ธ ์˜คํ”ˆ์†Œ์Šค ์ƒํƒœ๊ณ„</strong>: ์ค‘๊ฐ„ ์ฒดํฌํฌ์ธํŠธ๋ถ€ํ„ฐ ์ „์ฒด ํ•™์Šต ์ฝ”๋“œ๊นŒ์ง€ ์™„์ „ํ•œ ๋„๊ตฌ ์ฒด์ธ์„ ์ œ๊ณตํ•˜์—ฌ ์ถ”๊ฐ€ ์—ฐ๊ตฌ ๋ฐ ๊ฐœ๋ฐœ์˜ ์žฅ๋ฒฝ์„ ํฌ๊ฒŒ ๋‚ฎ์ถฅ๋‹ˆ๋‹ค.</li></ul> <p>์ž์„ธํ•œ ๋‚ด์šฉ์€ ํฌ๊ด„์ ์ธ <a href="https://arxiv.org/abs/2412.11963" rel="nofollow"><strong><em>LongCat-Image Technical Report</em></strong></a>๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.</p> <!--[1--><h2 class="relative group"><a id="usage-example" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#usage-example"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->์‚ฌ์šฉ ์˜ˆ์‹œ<!----></span></h2><!--]--><!----> <div class="code-block relative "><div class="absolute top-2.5 right-4"><button class="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none transition duration-200 ease-in-out opacity-0 mx-0.5 text-gray-600 " title="code excerpt" type="button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg><!----> <div class=" absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow left-1/2 top-full transform -translate-x-1/2 translate-y-2 opacity-0 "><div class="absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0" style="border-left-color: transparent; border-right-color: transparent;"></div> ๋ณต์‚ฌ๋จ</div><!----></button><!----></div> <pre class="language-py "><!----><span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">import</span> diffusers
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LongCatImagePipeline
weight_dtype = torch.bfloat16
pipe = LongCatImagePipeline.from_pretrained(<span class="hljs-string">&quot;meituan-longcat/LongCat-Image&quot;</span>, dtype=torch.bfloat16 )
pipe.to(<span class="hljs-string">&#x27;cuda&#x27;</span>) <span class="hljs-comment"># or &quot;mps&quot;, &quot;xpu&quot;, &quot;cpu&quot;</span>
<span class="hljs-comment"># pipe.enable_model_cpu_offload()</span>
prompt = <span class="hljs-string">&#x27;ไธ€ไธชๅนด่ฝป็š„ไบš่ฃ”ๅฅณๆ€ง๏ผŒ่บซ็ฉฟ้ป„่‰ฒ้’ˆ็ป‡่กซ๏ผŒๆญ้…็™ฝ่‰ฒ้กน้“พใ€‚ๅฅน็š„ๅŒๆ‰‹ๆ”พๅœจ่†็›–ไธŠ๏ผŒ่กจๆƒ…ๆฌ้™ใ€‚่ƒŒๆ™ฏๆ˜ฏไธ€ๅ ต็ฒ—็ณ™็š„็ –ๅข™๏ผŒๅˆๅŽ็š„้˜ณๅ…‰ๆธฉๆš–ๅœฐๆด’ๅœจๅฅน่บซไธŠ๏ผŒ่ฅ้€ ๅ‡บไธ€็งๅฎ้™่€Œๆธฉ้ฆจ็š„ๆฐ›ๅ›ดใ€‚้•œๅคด้‡‡็”จไธญ่ท็ฆป่ง†่ง’๏ผŒ็ชๅ‡บๅฅน็š„็ฅžๆ€ๅ’Œๆœ้ฅฐ็š„็ป†่Š‚ใ€‚ๅ…‰็บฟๆŸ”ๅ’Œๅœฐๆ‰“ๅœจๅฅน็š„่„ธไธŠ๏ผŒๅผบ่ฐƒๅฅน็š„ไบ”ๅฎ˜ๅ’Œ้ฅฐๅ“็š„่ดจๆ„Ÿ๏ผŒๅขžๅŠ ็”ป้ข็š„ๅฑ‚ๆฌกๆ„ŸไธŽไบฒๅ’ŒๅŠ›ใ€‚ๆ•ดไธช็”ป้ขๆž„ๅ›พ็ฎ€ๆด๏ผŒ็ –ๅข™็š„็บน็†ไธŽ้˜ณๅ…‰็š„ๅ…‰ๅฝฑๆ•ˆๆžœ็›ธๅพ—็›Šๅฝฐ๏ผŒ็ชๆ˜พๅ‡บไบบ็‰ฉ็š„ไผ˜้›…ไธŽไปŽๅฎนใ€‚&#x27;</span>
image = pipe(
prompt,
height=<span class="hljs-number">768</span>,
width=<span class="hljs-number">1344</span>,
guidance_scale=<span class="hljs-number">4.0</span>,
num_inference_steps=<span class="hljs-number">50</span>,
num_images_per_prompt=<span class="hljs-number">1</span>,
generator=torch.Generator(<span class="hljs-string">&quot;cpu&quot;</span>).manual_seed(<span class="hljs-number">43</span>),
enable_cfg_renorm=<span class="hljs-literal">True</span>,
enable_prompt_rewrite=<span class="hljs-literal">True</span>,
).images[<span class="hljs-number">0</span>]
image.save(<span class="hljs-string">f&#x27;./longcat_image_t2i_example.png&#x27;</span>)<!----></pre></div><!----> <p>์ด ํŒŒ์ดํ”„๋ผ์ธ์€ LongCat-Image Team์ด ๊ธฐ์—ฌํ–ˆ์Šต๋‹ˆ๋‹ค. ์›๋ณธ ์ฝ”๋“œ๋ฒ ์ด์Šค๋Š” <a href="https://github.com/meituan-longcat/LongCat-Image" rel="nofollow">์—ฌ๊ธฐ</a>์—์„œ ์ฐพ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</p> <p>์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ชจ๋ธ:</p> <div style="overflow-x: auto; margin-bottom: 16px;"><table style="border-collapse: collapse; width: 100%;"><thead><tr><th style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de; background-color: #f6f8fa;">๋ชจ๋ธ</th><th style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de; background-color: #f6f8fa;">์œ ํ˜•</th><th style="padding: 8px; border: 1px solid #d0d7de; background-color: #f6f8fa;">์„ค๋ช…</th><th style="padding: 8px; border: 1px solid #d0d7de; background-color: #f6f8fa;">๋‹ค์šด๋กœ๋“œ ๋งํฌ</th></tr></thead><tbody><tr><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">LongCatโ€‘Image</td><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">ํ…์ŠคํŠธ-์ด๋ฏธ์ง€</td><td style="padding: 8px; border: 1px solid #d0d7de;">์ตœ์ข… ๋ฆด๋ฆฌ์Šค. ๋ฐ•์Šค์—์„œ ๋ฐ”๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์ถ”๋ก ์„ ์œ„ํ•œ ํ‘œ์ค€ ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.</td><td style="padding: 8px; border: 1px solid #d0d7de;"><span style="white-space: nowrap;">๐Ÿค— <a href="https://huggingface.co/meituan-longcat/LongCat-Image">Huggingface</a></span></td></tr><tr><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">LongCatโ€‘Imageโ€‘Dev</td><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">ํ…์ŠคํŠธ-์ด๋ฏธ์ง€</td><td style="padding: 8px; border: 1px solid #d0d7de;">Development. ์ค‘๊ฐ„ ํ•™์Šต ์ฒดํฌํฌ์ธํŠธ๋กœ, ํŒŒ์ธํŠœ๋‹์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.</td><td style="padding: 8px; border: 1px solid #d0d7de;"><span style="white-space: nowrap;">๐Ÿค— <a href="https://huggingface.co/meituan-longcat/LongCat-Image-Dev">Huggingface</a></span></td></tr><tr><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">LongCatโ€‘Imageโ€‘Edit</td><td style="white-space: nowrap; padding: 8px; border: 1px solid #d0d7de;">์ด๋ฏธ์ง€ ํŽธ์ง‘</td><td style="padding: 8px; border: 1px solid #d0d7de;">์ด๋ฏธ์ง€ ํŽธ์ง‘์„ ์œ„ํ•œ ์ „๋ฌธ ๋ชจ๋ธ.</td><td style="padding: 8px; border: 1px solid #d0d7de;"><span style="white-space: nowrap;">๐Ÿค— <a href="https://huggingface.co/meituan-longcat/LongCat-Image-Edit">Huggingface</a></span></td></tr></tbody></table></div> <!--[1--><h2 class="relative group"><a id="diffusers.LongCatImagePipeline" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#diffusers.LongCatImagePipeline"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->LongCatImagePipeline<!----></span></h2><!--]--><!----> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><div><span class="group flex space-x-1.5 items-center text-gray-800 bg-gradient-to-r rounded-tr-lg -mt-4 -ml-4 pt-3 px-2.5" id="diffusers.LongCatImagePipeline"><!----><h3 class="!m-0"><span class="flex-1 break-all md:text-lg bg-gradient-to-r px-2.5 py-1.5 rounded-xl from-indigo-50/70 to-white dark:from-gray-900 dark:to-gray-950 dark:text-indigo-300 text-indigo-700"><svg class="mr-1.5 text-indigo-500 inline-block -mt-0.5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width=".8em" height=".8em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg><span class="font-light">ํด๋ž˜์Šค</span> <span class="font-medium">diffusers.</span><span class="font-semibold">LongCatImagePipeline</span></span></h3><!----> <a id="diffusers.LongCatImagePipeline" class="header-link invisible with-hover:group-hover:visible pr-2" href="#diffusers.LongCatImagePipeline"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></a> <!--[0--><a class="!ml-auto !text-gray-400 !no-underline text-sm flex items-center" href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/longcat_image/pipeline_longcat_image.py#L205" target="_blank"><span>&lt;</span> <span class="hidden md:block mx-0.5 hover:!underline">source</span> <span>></span></a><!--]--></span> <!--[0--><p class="font-mono text-xs md:text-sm !leading-relaxed !my-6"><span>(</span> <!--[--><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">scheduler<span class="opacity-60">: FlowMatchEulerDiscreteScheduler</span></span></span><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">vae<span class="opacity-60">: AutoencoderKL</span></span></span><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">text_encoder<span class="opacity-60">: Qwen2_5_VLForConditionalGeneration</span></span></span><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">tokenizer<span class="opacity-60">: Qwen2Tokenizer</span></span></span><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">text_processor<span class="opacity-60">: Qwen2VLProcessor</span></span></span><span class="comma cursor-default"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">transformer<span class="opacity-60">: LongCatImageTransformer2DModel</span></span></span><!--]--> <span>)</span> <!--[-1--><!--]--></p><!--]--> <div class="!mb-10 relative docstring-details "><!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <p>ํ…์ŠคํŠธ-์ด๋ฏธ์ง€ ์ƒ์„ฑ์„ ์œ„ํ•œ ํŒŒ์ดํ”„๋ผ์ธ์ž…๋‹ˆ๋‹ค.</p></div> <ul><li>์ „์ฒด</li> <li><strong>ํ˜ธ์ถœ</strong></li></ul> <!--[1--><h2 class="relative group"><a id="diffusers.pipelines.longcat_image.LongCatImagePipelineOutput" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#diffusers.pipelines.longcat_image.LongCatImagePipelineOutput"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!---->LongCatImagePipelineOutput<!----></span></h2><!--]--><!----> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><div><span class="group flex space-x-1.5 items-center text-gray-800 bg-gradient-to-r rounded-tr-lg -mt-4 -ml-4 pt-3 px-2.5" id="diffusers.pipelines.longcat_image.LongCatImagePipelineOutput"><!----><h3 class="!m-0"><span class="flex-1 break-all md:text-lg bg-gradient-to-r px-2.5 py-1.5 rounded-xl from-indigo-50/70 to-white dark:from-gray-900 dark:to-gray-950 dark:text-indigo-300 text-indigo-700"><svg class="mr-1.5 text-indigo-500 inline-block -mt-0.5" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width=".8em" height=".8em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg><span class="font-light">ํด๋ž˜์Šค</span> <span class="font-medium">diffusers.pipelines.longcat_image.</span><span class="font-semibold">LongCatImagePipelineOutput</span></span></h3><!----> <a id="diffusers.pipelines.longcat_image.LongCatImagePipelineOutput" class="header-link invisible with-hover:group-hover:visible pr-2" href="#diffusers.pipelines.longcat_image.LongCatImagePipelineOutput"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></a> <!--[0--><a class="!ml-auto !text-gray-400 !no-underline text-sm flex items-center" href="https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/longcat_image/pipeline_output.py#L10" target="_blank"><span>&lt;</span> <span class="hidden md:block mx-0.5 hover:!underline">source</span> <span>></span></a><!--]--></span> <!--[0--><p class="font-mono text-xs md:text-sm !leading-relaxed !my-6"><span>(</span> <!--[--><span class="comma cursor-pointer"><span class="rounded hover:bg-black hover:text-white dark:hover:bg-white dark:hover:text-black">images<span class="opacity-60">: list[PIL.Image.Image, numpy.ndarray]</span></span></span><!--]--> <span>)</span> <!--[-1--><!--]--></p><!--]--> <div class="!mb-10 relative docstring-details "><!--[-1--><!--]--> <!--[0--><p class="flex items-center font-semibold !mt-2 !mb-2 text-gray-800">๋งค๊ฐœ๋ณ€์ˆ˜ <span class="flex-auto border-t-2 border-gray-100 dark:border-gray-700 ml-3"></span></p> <ul class="px-2"><!--[--><li class="text-base !pl-4 my-3 rounded "><span class="group flex space-x-1.5 items-start"><a id="diffusers.pipelines.longcat_image.LongCatImagePipelineOutput.images" class="header-link block pr-0.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#diffusers.pipelines.longcat_image.LongCatImagePipelineOutput.images"><span><svg class="text-smd" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!----></span></a> <span><!----><strong>images</strong> (<code>list[PIL.Image.Image]</code> ๋˜๋Š” <code>np.ndarray</code>) โ€”
<code>batch_size</code> ๊ธธ์ด์˜ denoised PIL ์ด๋ฏธ์ง€ ๋ชฉ๋ก ๋˜๋Š” <code>(batch_size, height, width, num_channels)</code> ํ˜•ํƒœ์˜ numpy ๋ฐฐ์—ด. PIL ์ด๋ฏธ์ง€ ๋˜๋Š” numpy ๋ฐฐ์—ด์€ diffusion ํŒŒ์ดํ”„๋ผ์ธ์˜ denoised ์ด๋ฏธ์ง€๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.<!----></span></span></li><!--]--></ul><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--> <!--[-1--><!--]--></div></div><!----> <p>Stable Diffusion ํŒŒ์ดํ”„๋ผ์ธ์˜ ์ถœ๋ ฅ ํด๋ž˜์Šค์ž…๋‹ˆ๋‹ค.</p></div> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/pipelines/longcat_image.md" target="_blank"><svg class="mr-1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"></path><path d="M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"></path><path d="M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"></path></svg><!----> <span><span class="underline">Update</span> on GitHub</span></a><!----> <p></p><!--]--><!----><!--]--><!--]--><!--]--> <!--[-1--><!--]--><!--]-->
<script>
{
__sveltekit_g37pnb = {
base: "/docs/diffusers/main/en",
assets: "/docs/diffusers/main/en"
};
const element = document.currentScript.parentElement;
Promise.all([
import("/docs/diffusers/main/en/_app/immutable/entry/start.D3LnKZ4R.js"),
import("/docs/diffusers/main/en/_app/immutable/entry/app.C0rBoMxR.js")
]).then(([kit, app]) => {
kit.start(app, element, {
node_ids: [0, 207],
data: [null,null],
form: null,
error: null
});
});
}
</script>

Xet Storage Details

Size:
28.9 kB
ยท
Xet hash:
4c8aa80c29a4cca5adeb2d933d21eb08ca601aeb8a6b7a6ebc79c9e1ed2d4aa9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.