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-5
Original file line number
Diff line number
Diff line change
@@ -125,12 +125,10 @@ Activate the environment again after restarting the terminal session.
125
125
126
126
### 🚀 Run inference with LCM (faster)
127
127
128
-
The [LCM checkpoint](https://huggingface.co/prs-eth/marigold-lcm-v1-0) is distilled from our original checkpoint towards faster inference speed (by reducing inference steps). The inference steps can be as few as 1 to 4:
128
+
The [LCM checkpoint](https://huggingface.co/prs-eth/marigold-lcm-v1-0) is distilled from our original checkpoint towards faster inference speed (by reducing inference steps). The inference steps can be as few as 1 (default) to 4. Run with default LCM setting:
129
129
130
130
```bash
131
131
python run.py \
132
-
--denoise_steps 4 \
133
-
--ensemble_size 5 \
134
132
--input_rgb_dir input/in-the-wild_example \
135
133
--output_dir output/in-the-wild_example_lcm
136
134
```
@@ -156,11 +154,11 @@ The default settings are optimized for the best result. However, the behavior of
156
154
157
155
- Trade-offs between the **accuracy** and **speed** (for both options, larger values result in better accuracy at the cost of slower inference.)
158
156
- `--ensemble_size`: Number of inference passes in the ensemble. For LCM `ensemble_size` is more important than `denoise_steps`. Default: ~~10~~ 5 (for LCM).
159
-
- `--denoise_steps`: Number of denoising steps of each inference pass. For the original (DDIM) version, it's recommended to use 10-50 steps, while for LCM 1-4 steps. Default: ~~10~~ 4 (for LCM).
157
+
- `--denoise_steps`: Number of denoising steps of each inference pass. For the original (DDIM) version, it's recommended to use 10-50 steps, while for LCM 1-4 steps. When unassigned (`None`), will read default setting from model config. Default: ~~10 4 (for LCM)~~ `None`.
160
158
161
159
- By default, the inference script resizes input images to the *processing resolution*, and then resizes the prediction back to the original resolution. This gives the best quality, as Stable Diffusion, from which Marigold is derived, performs best at 768x768 resolution.
162
160
163
-
- `--processing_res`: the processing resolution; set 0 to process the input resolution directly. Default: 768.
161
+
- `--processing_res`: the processing resolution; set as 0 to process the input resolution directly. When unassigned (`None`), will read default setting from model config. Default: ~~768~~ `None`.
164
162
- `--output_processing_res`: produce output at the processing resolution instead of upsampling it to the input resolution. Default: False.
165
163
- `--resample_method`: resampling method used to resize images and depth predictions. This can be one of `bilinear`, `bicubic` or `nearest`. Default: `bilinear`.
0 commit comments