Diffusers
Safetensors
English
XionghuiWang commited on
Commit
0619692
·
verified ·
1 Parent(s): 9e2cc45

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -53,14 +53,15 @@ We propose **OneReward**, a novel RLHF methodology for the visual domain by empl
53
  pip install -U diffusers
54
  ```
55
 
56
- The following contains a code snippet illustrating how to use the model to generate images based on text prompts and input mask, support inpaint(image-fill), outpaint(image-extend), eraser(object-removal). As the model is fully trained, FluxFillCFGPipeline with cfg is needed.
57
 
58
  ```python
59
  import torch
60
- from src.pipeline_flux_fill_with_cfg import FluxFillCFGPipeline
61
  from diffusers.utils import load_image
62
  from diffusers import FluxTransformer2DModel
63
 
 
 
64
  transformer_onereward = FluxTransformer2DModel.from_pretrained(
65
  "bytedance-research/OneReward",
66
  subfolder="flux.1-fill-dev-OneReward-transformer",
@@ -103,6 +104,7 @@ image.save(f"image_fill.jpg")
103
  </tr>
104
  </table>
105
 
 
106
  ## Model
107
  ### FLUX.1-Fill-dev[OneReward], trained with Alg.1 in paper
108
  ```python
 
53
  pip install -U diffusers
54
  ```
55
 
56
+ The following contains a code snippet illustrating how to use the model to generate images based on text prompts and input mask, support inpaint(image-fill), outpaint(image-extend), eraser(object-removal). As the model is fully trained, FluxFillCFGPipeline with cfg is needed, you can find it in our github.
57
 
58
  ```python
59
  import torch
 
60
  from diffusers.utils import load_image
61
  from diffusers import FluxTransformer2DModel
62
 
63
+ from src.pipeline_flux_fill_with_cfg import FluxFillCFGPipeline
64
+
65
  transformer_onereward = FluxTransformer2DModel.from_pretrained(
66
  "bytedance-research/OneReward",
67
  subfolder="flux.1-fill-dev-OneReward-transformer",
 
104
  </tr>
105
  </table>
106
 
107
+
108
  ## Model
109
  ### FLUX.1-Fill-dev[OneReward], trained with Alg.1 in paper
110
  ```python