You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,9 @@ _This script is useful for **testing and fine-tuning** object placements before
104
104
105
105
All the images rendered are just 2 objects on a white surface with a light grey "sky". If you would like to add a custom (more realistic) background to each image in your image output folder, you can navigate to the `generate_backgrounds.sh` script.
106
106
107
-
- Here, you can customize the `PROMPT` argument to guide the background generation process.
107
+
- Here, you can customize the `PROMPT` (what you want the scene to include) and `NEGATIVE_PROMPT` (what you want to avoid in the scene) arguments to guide the background generation process.
108
+
109
+
- Make sure to provide a valid Hugging Face token in the `HF_TOKEN` field to authenticate and access the model.
108
110
109
111
- The process utilizes the [**Stable Diffusion XL inpainting model**](https://huggingface.co/diffusers/stable-diffusion-xl-1.0-inpainting-0.1) to modify specific regions of images with custom backgrounds.
To enhance image realism, use ``generate_backgrounds.sh`` to add AI-generated backgrounds via the Stable Diffusion XL inpainting model:
161
161
162
-
Customize the background generation with the ``PROMPT`` variable.
162
+
Customize the background generation with the ``PROMPT`` (what you want the scene to include) and ``NEGATIVE_PROMPT`` (what you want to avoid in the scene) variables.
0 commit comments