Spaces:
Runtime error
Runtime error
lzyhha commited on
Commit ·
ab35982
1
Parent(s): 1c029a6
runtime
Browse filesFiles changed (2)
- app.py+3-3
- visualcloze.py-1
34 unmodified lines35363738394041424334 unmodified linesThe runtime on the Zero GPU runtime depends on the size of the image grid.When generating an image with the resoluation of 1024,the runtime is approximately **[45s for a 2x2 grid], [55s for a 2x3 grid], [70s for a 3x3 grid], [90s for a 3x4 grid]**.When generating three images in a 3x4 grid, i.e., Image to Depth + Normal + Hed,the runtime is approximately **110s**.**Deploying locally with an 80G A100 can reduce the runtime by more than half.**### Note: For better quality, you can deploy the demo locally using the [model](https://huggingface.co/VisualCloze/VisualCloze/blob/main/visualcloze-512-lora.pth), which supports a higher resolution than this online demo, by following the instructions in the [GitHub repository](https://github.com/lzyhha/VisualCloze/tree/main?tab=readme-ov-file#2-web-demo-gradio)."""34 unmodified lines35363738394041424334 unmodified linesThe runtime on the Zero GPU runtime depends on the size of the image grid.When generating an image with the resoluation of 1024,the runtime is approximately **[45s for a 2x2 grid], [55s for a 2x3 grid], [70s for a 3x3 grid], [90s for a 3x4 grid]**.**Deploying locally with an 80G A100 can reduce the runtime by more than half.**Disabling SDEdit upsampling by setting the upsampling noise to 1 or reducing the upsampling stepscan also save computation time, but it may lead to a decrease in generation quality.### Note: For better quality, you can deploy the demo locally using the [model](https://huggingface.co/VisualCloze/VisualCloze/blob/main/visualcloze-512-lora.pth), which supports a higher resolution than this online demo, by following the instructions in the [GitHub repository](https://github.com/lzyhha/VisualCloze/tree/main?tab=readme-ov-file#2-web-demo-gradio)."""
449 unmodified lines450451452453454455456449 unmodified linesrow_end = grid_h * grid_wfor i in range(row_start, row_end):# when the image is masked, then output itprint(mask_position, i, row_start, is_upsampling, grid_h, grid_w)if mask_position[i - row_start] and is_upsampling:cropped = output_images[-1].crop(((i - row_start) * ret_w // self.grid_w, 0, ((i - row_start) + 1) * ret_w // self.grid_w, ret_h))upsampled = self.upsampling(449 unmodified lines450451452453454455449 unmodified linesrow_end = grid_h * grid_wfor i in range(row_start, row_end):# when the image is masked, then output itif mask_position[i - row_start] and is_upsampling:cropped = output_images[-1].crop(((i - row_start) * ret_w // self.grid_w, 0, ((i - row_start) + 1) * ret_w // self.grid_w, ret_h))upsampled = self.upsampling(
app.py+3-3
visualcloze.py-1