Instructions to use Joypop/GDPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Joypop/GDPO 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("Joypop/GDPO", 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ pip install -r requirements.txt
|
|
| 37 |
## 🏂 Quick Inference
|
| 38 |
|
| 39 |
#### Step 1: Download the pretrained models
|
| 40 |
-
- Download the model weights [](https://huggingface.co/Joypop/GDPO/tree/main) and put the model weights in the `ckp/`:
|
| 41 |
|
| 42 |
#### Step 2: Prepare testing data and run testing command
|
| 43 |
You can modify input_path and output_path to run testing command. The input_path is the path of the test image and the output_path is the path where the output images are saved.
|
|
|
|
| 37 |
## 🏂 Quick Inference
|
| 38 |
|
| 39 |
#### Step 1: Download the pretrained models
|
| 40 |
+
- Download the model weights [](https://huggingface.co/Joypop/GDPO/tree/main/ckp) and put the model weights in the `ckp/`:
|
| 41 |
|
| 42 |
#### Step 2: Prepare testing data and run testing command
|
| 43 |
You can modify input_path and output_path to run testing command. The input_path is the path of the test image and the output_path is the path where the output images are saved.
|