Spaces:
Runtime error
Runtime error
Boundaries now load on cpu
Browse files- generate_videos.py +1 -1
generate_videos.py
CHANGED
|
@@ -113,7 +113,7 @@ def interpolate_with_boundaries(args, source_latent, alphas):
|
|
| 113 |
boundaries_and_distances = []
|
| 114 |
for direction_type in edit_directions:
|
| 115 |
distances = SUGGESTED_DISTANCES[direction_type]
|
| 116 |
-
boundary = torch.load(os.path.join(boundary_dir, f'{direction_type}.pt')
|
| 117 |
|
| 118 |
for distance in distances:
|
| 119 |
if distance:
|
|
|
|
| 113 |
boundaries_and_distances = []
|
| 114 |
for direction_type in edit_directions:
|
| 115 |
distances = SUGGESTED_DISTANCES[direction_type]
|
| 116 |
+
boundary = torch.load(os.path.join(boundary_dir, f'{direction_type}.pt'), map_location="cpu").numpy()
|
| 117 |
|
| 118 |
for distance in distances:
|
| 119 |
if distance:
|