evalstate HF Staff commited on
Commit
852182c
·
verified ·
1 Parent(s): 04ab7d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -30
app.py CHANGED
@@ -191,36 +191,17 @@ def infer_camera_edit(
191
  to an input image.
192
 
193
  Args:
194
- image (PIL.Image.Image):
195
- Input image to edit.
196
- rotate_deg (float, optional):
197
- Horizontal rotation in degrees (-90, -45, 0, 45, 90). Positive values rotate
198
- to the left, negative to the right. Defaults to 0.0.
199
- move_forward (float, optional):
200
- Forward movement / zoom factor (0, 5, 10). Higher values move the
201
- camera closer; values >5 switch to a close-up style. Defaults to 0.0.
202
- vertical_tilt (float, optional):
203
- Vertical tilt (-1 to 1). -1 bird's-eye view, +1 worm's-eye view.
204
- Defaults to 0.0.
205
- wideangle (bool, optional):
206
- Whether to use a wide-angle lens style. Defaults to False.
207
- seed (int, optional):
208
- Random seed for the generation. Ignored if `randomize_seed=True`.
209
- Defaults to 0.
210
- randomize_seed (bool, optional):
211
- If True, a random seed (0..MAX_SEED) is chosen per call.
212
- Defaults to True.
213
- true_guidance_scale (float, optional):
214
- CFG / guidance scale controlling prompt adherence.
215
- Defaults to 1.0 since the demo is using a distilled transformer for faster inference.
216
- num_inference_steps (int, optional):
217
- Number of inference steps. Defaults to 4.
218
- height (int, optional):
219
- Output image height. Must typically be a multiple of 8.
220
- If set to 0, the model will infer a size. Defaults to 0 if none is provided.
221
- width (int, optional):
222
- Output image width. Must typically be a multiple of 8.
223
- If set to 0, the model will infer a size. Defaults to 0 if none is provided.
224
 
225
  Returns:
226
  Tuple[PIL.Image.Image, int, str]:
 
191
  to an input image.
192
 
193
  Args:
194
+ image (PIL.Image.Image): Input image to edit.
195
+ rotate_deg (float, optional): Horizontal rotation in degrees (-90, -45, 0, 45, 90). Positive values rotate to the left, negative to the right. Defaults to 0.0.
196
+ move_forward (float, optional): Forward movement / zoom factor (0, 5, 10). Higher values move the camera closer; values >5 switch to a close-up style. Defaults to 0.0.
197
+ vertical_tilt (float, optional): Vertical tilt (-1 to 1). -1 bird's-eye view, +1 ≈ worm's-eye view. Defaults to 0.0.
198
+ wideangle (bool, optional): Whether to use a wide-angle lens style. Defaults to False.
199
+ seed (int, optional): Random seed for the generation. Ignored if `randomize_seed=True`. Defaults to 0.
200
+ randomize_seed (bool, optional): If True, a random seed (0..MAX_SEED) is chosen per call. Defaults to True.
201
+ true_guidance_scale (float, optional): CFG / guidance scale controlling prompt adherence. Defaults to 1.0 since the demo is using a distilled transformer for faster inference.
202
+ num_inference_steps (int, optional): Number of inference steps. Defaults to 4.
203
+ height (int, optional): Output image height. Must typically be a multiple of 8. If set to 0, the model will infer a size. Defaults to 0 if none is provided.
204
+ width (int, optional): Output image width. Must typically be a multiple of 8. If set to 0, the model will infer a size. Defaults to 0 if none is provided.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
 
206
  Returns:
207
  Tuple[PIL.Image.Image, int, str]: