Spaces:
Runtime error
Runtime error
unknown
commited on
Commit
•
84a4c93
1
Parent(s):
7050772
cuda init
Browse files
app.py
CHANGED
@@ -96,7 +96,8 @@ class FoleyController:
|
|
96 |
# load time detector
|
97 |
time_detector_ckpt = osp.join(osp.join(self.model_dir, 'timestamp_detector.pth.tar'))
|
98 |
time_detector = VideoOnsetNet(False)
|
99 |
-
self.time_detector, _ = torch_utils.load_model(time_detector_ckpt, time_detector, strict=True
|
|
|
100 |
|
101 |
self.pipeline = build_foleycrafter().to(self.device)
|
102 |
ckpt = torch.load(temporal_ckpt_path)
|
|
|
96 |
# load time detector
|
97 |
time_detector_ckpt = osp.join(osp.join(self.model_dir, 'timestamp_detector.pth.tar'))
|
98 |
time_detector = VideoOnsetNet(False)
|
99 |
+
self.time_detector, _ = torch_utils.load_model(time_detector_ckpt, time_detector, strict=True)
|
100 |
+
self.time_detector = self.time_detector.to(self.device)
|
101 |
|
102 |
self.pipeline = build_foleycrafter().to(self.device)
|
103 |
ckpt = torch.load(temporal_ckpt_path)
|