Instructions to use bytedance-research/OneReward with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use bytedance-research/OneReward 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("bytedance-research/OneReward", 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
Upload 11 files
Browse files- .gitattributes +7 -0
- assets/image.png +3 -0
- assets/image2.png +0 -0
- assets/mask_extend.png +0 -0
- assets/mask_fill.png +0 -0
- assets/mask_remove.png +0 -0
- assets/radius_eraser.png +3 -0
- assets/radius_inpaint.png +3 -0
- assets/radius_outpaint_w.png +3 -0
- assets/radius_outpaint_wo.png +3 -0
- assets/result_fill.jpg +3 -0
- assets/show.jpg +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
assets/image.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/radius_eraser.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/radius_inpaint.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/radius_outpaint_w.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
assets/radius_outpaint_wo.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/result_fill.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
assets/show.jpg filter=lfs diff=lfs merge=lfs -text
|
assets/image.png
ADDED
|
Git LFS Details
|
assets/image2.png
ADDED
|
assets/mask_extend.png
ADDED
|
assets/mask_fill.png
ADDED
|
assets/mask_remove.png
ADDED
|
assets/radius_eraser.png
ADDED
|
Git LFS Details
|
assets/radius_inpaint.png
ADDED
|
Git LFS Details
|
assets/radius_outpaint_w.png
ADDED
|
Git LFS Details
|
assets/radius_outpaint_wo.png
ADDED
|
Git LFS Details
|
assets/result_fill.jpg
ADDED
|
Git LFS Details
|
assets/show.jpg
ADDED
|
Git LFS Details
|