unknown commited on
Commit
cb48cb3
1 Parent(s): 93eb0ff
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -138,10 +138,10 @@ class FoleyController:
138
  ):
139
  device = 'cuda'
140
  # move to gpu
141
- controller.time_detector = controller.time_detector.to(device)
142
- controller.pipeline = controller.pipeline.to(device)
143
- controller.vocoder = controller.vocoder.to(device)
144
- controller.image_encoder = controller.image_encoder.to(device)
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)),