Instructions to use Qwen/Qwen-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Qwen/Qwen-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Not works on Mac
#40
by animax - opened
How can we make it to run at Mac? if we set device to "cpu" got error, resrouce_tracker.py 224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings. warn(' resource_tracker: There appear to be %d '
and tried to use "mps" as device, but the result image will be completely black.
Any suggestion?
Use it in Draw Things
