Spaces:
Runtime error
Runtime error
unknown
commited on
Commit
•
cb48cb3
1
Parent(s):
93eb0ff
cuda
Browse files
app.py
CHANGED
@@ -138,10 +138,10 @@ class FoleyController:
|
|
138 |
):
|
139 |
device = 'cuda'
|
140 |
# move to gpu
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
vision_transform_list = [
|
146 |
torchvision.transforms.Resize((128, 128)),
|
147 |
torchvision.transforms.CenterCrop((112, 112)),
|
|
|
138 |
):
|
139 |
device = 'cuda'
|
140 |
# move to gpu
|
141 |
+
self.time_detector = controller.time_detector.to(device)
|
142 |
+
self.pipeline = controller.pipeline.to(device)
|
143 |
+
self.vocoder = controller.vocoder.to(device)
|
144 |
+
self.image_encoder = controller.image_encoder.to(device)
|
145 |
vision_transform_list = [
|
146 |
torchvision.transforms.Resize((128, 128)),
|
147 |
torchvision.transforms.CenterCrop((112, 112)),
|