Spaces:
Runtime error
Runtime error
Commit
·
958ccec
1
Parent(s):
5225e99
- options/Banner_Model/Image2Image.py +1 -1
- options/Banner_Model/Image2Image_2.py +1 -1
- options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc +0 -0
- options/Banner_Model/__pycache__/Image2Image_2.cpython-310.pyc +0 -0
- options/Banner_Model/__pycache__/Text2Banner.cpython-310.pyc +0 -0
- options/Banner_Model/__pycache__/__init__.cpython-310.pyc +0 -0
- options/Video_model/Model.py +1 -1
- options/Video_model/__pycache__/Model.cpython-310.pyc +0 -0
- options/Video_model/__pycache__/__init__.cpython-310.pyc +0 -0
- options/__pycache__/Banner.cpython-310.pyc +0 -0
- options/__pycache__/Video.cpython-310.pyc +0 -0
options/Banner_Model/Image2Image.py
CHANGED
|
@@ -39,7 +39,7 @@ def resize_image_dimensions(
|
|
| 39 |
return new_width, new_height
|
| 40 |
|
| 41 |
|
| 42 |
-
@spaces.GPU(duration=
|
| 43 |
def I2I(
|
| 44 |
input_image_editor: dict,
|
| 45 |
input_text: str,
|
|
|
|
| 39 |
return new_width, new_height
|
| 40 |
|
| 41 |
|
| 42 |
+
@spaces.GPU(duration=10)
|
| 43 |
def I2I(
|
| 44 |
input_image_editor: dict,
|
| 45 |
input_text: str,
|
options/Banner_Model/Image2Image_2.py
CHANGED
|
@@ -7,7 +7,7 @@ from PIL import Image
|
|
| 7 |
device= "cuda" if torch.cuda.is_available() else "cpu"
|
| 8 |
print("Using device for I2I_2:", device)
|
| 9 |
|
| 10 |
-
@spaces.GPU(duration=
|
| 11 |
def I2I_2(image, prompt,size,num_inference_steps):
|
| 12 |
processor = LineartDetector.from_pretrained("lllyasviel/Annotators")
|
| 13 |
|
|
|
|
| 7 |
device= "cuda" if torch.cuda.is_available() else "cpu"
|
| 8 |
print("Using device for I2I_2:", device)
|
| 9 |
|
| 10 |
+
@spaces.GPU(duration=10)
|
| 11 |
def I2I_2(image, prompt,size,num_inference_steps):
|
| 12 |
processor = LineartDetector.from_pretrained("lllyasviel/Annotators")
|
| 13 |
|
options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc
CHANGED
|
Binary files a/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc and b/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc differ
|
|
|
options/Banner_Model/__pycache__/Image2Image_2.cpython-310.pyc
CHANGED
|
Binary files a/options/Banner_Model/__pycache__/Image2Image_2.cpython-310.pyc and b/options/Banner_Model/__pycache__/Image2Image_2.cpython-310.pyc differ
|
|
|
options/Banner_Model/__pycache__/Text2Banner.cpython-310.pyc
CHANGED
|
Binary files a/options/Banner_Model/__pycache__/Text2Banner.cpython-310.pyc and b/options/Banner_Model/__pycache__/Text2Banner.cpython-310.pyc differ
|
|
|
options/Banner_Model/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/options/Banner_Model/__pycache__/__init__.cpython-310.pyc and b/options/Banner_Model/__pycache__/__init__.cpython-310.pyc differ
|
|
|
options/Video_model/Model.py
CHANGED
|
@@ -18,7 +18,7 @@ def save_video(frames, save_path, fps, quality=9):
|
|
| 18 |
writer.close()
|
| 19 |
|
| 20 |
# Function to generate the video
|
| 21 |
-
@spaces.GPU(duration=
|
| 22 |
def Video(image):
|
| 23 |
|
| 24 |
|
|
|
|
| 18 |
writer.close()
|
| 19 |
|
| 20 |
# Function to generate the video
|
| 21 |
+
@spaces.GPU(duration=10)
|
| 22 |
def Video(image):
|
| 23 |
|
| 24 |
|
options/Video_model/__pycache__/Model.cpython-310.pyc
CHANGED
|
Binary files a/options/Video_model/__pycache__/Model.cpython-310.pyc and b/options/Video_model/__pycache__/Model.cpython-310.pyc differ
|
|
|
options/Video_model/__pycache__/__init__.cpython-310.pyc
CHANGED
|
Binary files a/options/Video_model/__pycache__/__init__.cpython-310.pyc and b/options/Video_model/__pycache__/__init__.cpython-310.pyc differ
|
|
|
options/__pycache__/Banner.cpython-310.pyc
CHANGED
|
Binary files a/options/__pycache__/Banner.cpython-310.pyc and b/options/__pycache__/Banner.cpython-310.pyc differ
|
|
|
options/__pycache__/Video.cpython-310.pyc
CHANGED
|
Binary files a/options/__pycache__/Video.cpython-310.pyc and b/options/__pycache__/Video.cpython-310.pyc differ
|
|
|