Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
We introduce
LongCat-Image-Edit-Turbo
, the distilled version of LongCat-Image-Edit. It achieves high-quality image editing with only 8 NFEs (Number of Function Evaluations) , offering extremely low inference latency.
For both Text-to-Image and Image Editing tasks involving text generation,
you must enclose the target text within single or double quotation marks
(both English '...' / "..." and Chinese ‘...’ / “...” styles are supported).
Reasoning:
The model utilizes a specialized
character-level encoding
strategy specifically for quoted content. Failure to use explicit quotation marks prevents this mechanism from triggering, which will severely compromise the text rendering capability.
import torch
from PIL import Image
from diffusers import LongCatImageEditPipeline
if __name__ == '__main__':
device = torch.device('cuda')
pipe = LongCatImageEditPipeline.from_pretrained("meituan-longcat/LongCat-Image-Edit-Turbo", torch_dtype= torch.bfloat16 )
# pipe.to(device, torch.bfloat16) # Uncomment for high VRAM devices (Faster inference)
pipe.enable_model_cpu_offload() # Offload to CPU to save VRAM (Required ~18 GB); slower but prevents OOM
img = Image.open('assets/test.png').convert('RGB')
prompt = '将猫变成狗'
image = pipe(
img,
prompt,
negative_prompt='',
guidance_scale=1,
num_inference_steps=8,
num_images_per_prompt=1,
generator=torch.Generator("cpu").manual_seed(43)
).images[0]
image.save('./edit_example.png')
Runs of meituan-longcat LongCat-Image-Edit-Turbo on huggingface.co
23.2K
Total runs
168
24-hour runs
145
3-day runs
187
7-day runs
-275
30-day runs
More Information About LongCat-Image-Edit-Turbo huggingface.co Model
LongCat-Image-Edit-Turbo huggingface.co is an AI model on huggingface.co that provides LongCat-Image-Edit-Turbo's model effect (), which can be used instantly with this meituan-longcat LongCat-Image-Edit-Turbo model. huggingface.co supports a free trial of the LongCat-Image-Edit-Turbo model, and also provides paid use of the LongCat-Image-Edit-Turbo. Support call LongCat-Image-Edit-Turbo model through api, including Node.js, Python, http.
LongCat-Image-Edit-Turbo huggingface.co is an online trial and call api platform, which integrates LongCat-Image-Edit-Turbo's modeling effects, including api services, and provides a free online trial of LongCat-Image-Edit-Turbo, you can try LongCat-Image-Edit-Turbo online for free by clicking the link below.
meituan-longcat LongCat-Image-Edit-Turbo online free url in huggingface.co:
LongCat-Image-Edit-Turbo is an open source model from GitHub that offers a free installation service, and any user can find LongCat-Image-Edit-Turbo on GitHub to install. At the same time, huggingface.co provides the effect of LongCat-Image-Edit-Turbo install, users can directly use LongCat-Image-Edit-Turbo installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
LongCat-Image-Edit-Turbo install url in huggingface.co: