Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- app.py +2 -1
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -71,7 +71,7 @@ class AnimateController:
|
|
| 71 |
right = original_width
|
| 72 |
bottom = top + new_height
|
| 73 |
pil_image = pil_image.crop((left, top, right, bottom))
|
| 74 |
-
|
| 75 |
pil_image = pil_image.resize((width_slider, height_slider))
|
| 76 |
return gr.Textbox(value=img_path), gr.Image(value=np.array(pil_image))
|
| 77 |
|
|
@@ -142,6 +142,7 @@ class AnimateController:
|
|
| 142 |
|
| 143 |
first_frame = img_transform(first_frame).unsqueeze(0)
|
| 144 |
first_frame = first_frame.to("cuda")
|
|
|
|
| 145 |
|
| 146 |
if use_frameinit:
|
| 147 |
self.pipeline.init_filter(
|
|
|
|
| 71 |
right = original_width
|
| 72 |
bottom = top + new_height
|
| 73 |
pil_image = pil_image.crop((left, top, right, bottom))
|
| 74 |
+
|
| 75 |
pil_image = pil_image.resize((width_slider, height_slider))
|
| 76 |
return gr.Textbox(value=img_path), gr.Image(value=np.array(pil_image))
|
| 77 |
|
|
|
|
| 142 |
|
| 143 |
first_frame = img_transform(first_frame).unsqueeze(0)
|
| 144 |
first_frame = first_frame.to("cuda")
|
| 145 |
+
print("first_frame", first_frame.device)
|
| 146 |
|
| 147 |
if use_frameinit:
|
| 148 |
self.pipeline.init_filter(
|
requirements.txt
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
torch==2.1.0
|
| 2 |
torchvision==0.16.0
|
| 3 |
-
torchaudio==2.1.0
|
| 4 |
diffusers==0.21.2
|
| 5 |
transformers==4.25.1
|
| 6 |
accelerate==0.23.0
|
|
|
|
| 1 |
torch==2.1.0
|
| 2 |
torchvision==0.16.0
|
|
|
|
| 3 |
diffusers==0.21.2
|
| 4 |
transformers==4.25.1
|
| 5 |
accelerate==0.23.0
|