Instructions to use yhx12/DiffThinker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use yhx12/DiffThinker with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("yhx12/DiffThinker", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Improve model card for DiffThinker: Add metadata, links, and usage details
Verified signatureHi! I'm Niels from the Hugging Face community science team. I've updated the model card for DiffThinker to enhance its discoverability and provide more comprehensive information. This PR includes the following improvements: - **Metadata**: Added `pipeline_tag: image-to-image` and `library_name: diffusers` to enable automated usage snippets and improve searchability. - **Links**: Added a direct link to the official GitHub repository for easy access to the code. - **Content**: Incorporated a concise summary of the model's purpose, its key features (efficiency, controllability, native parallelism, and collaboration), and detailed "Quick Start" and "Inference & Evaluation" sections with code snippets from the original GitHub README. - **Citation**: Added a BibTeX entry for proper academic attribution. These changes will help users better understand and utilize the DiffThinker model.938263e
-
Update README.md
Verified signature928f18d -
Update README.md
Verified signaturebb0cd5e -
Update README.md
Verified signature7aa62ca -
Update README.md
Verified signatured281b39
-
Upload folder using huggingface_hub
Verified signaturee144f35 -
Update README.md
Verified signaturef422686 -
Update README.md
Verified signature9158172 -
Upload README.md with huggingface_hub
Verified signature29645b8 -
Update README.md
Verified signature# DiffThinker: Towards Generative Multimodal Reasoning with Diffusion Models <a href="https://diffthinker-project.github.io/"><img src="https://img.shields.io/badge/%F0%9F%8C%90%20Project-Page-2563eb" alt="Project Page"></a>b42b49e -
Upload folder using huggingface_hub
Verified signaturedec67a0 -
Upload folder using huggingface_hub
Verified signature5b551e5 -
Upload folder using huggingface_hub
Verified signature21516ab -
Create README.md
Verified signature# DiffThinker: Towards Generative Multimodal Reasoning with Diffusion Models <a href="https://diffthinker-project.github.io/"><img src="https://img.shields.io/badge/%F0%9F%8C%90%20Project-Page-2563eb" alt="Project Page"></a>b829697 -
initial commit
Verified signature71a1412