Spaces:
Runtime error
Runtime error
Update apps/infer.py
Browse files- apps/infer.py +2 -2
apps/infer.py
CHANGED
@@ -450,8 +450,6 @@ def generate_model(in_path, model_type):
|
|
450 |
video_path = os.path.join(config_dict['out_dir'], cfg.name, f"vid/{data['name']}_cloth.mp4")
|
451 |
overlap_path = os.path.join(config_dict['out_dir'], cfg.name, f"png/{data['name']}_overlap.png")
|
452 |
|
453 |
-
torch.cuda.empty_cache()
|
454 |
-
|
455 |
del model
|
456 |
del dataset
|
457 |
del local_affine_model
|
@@ -462,4 +460,6 @@ def generate_model(in_path, model_type):
|
|
462 |
del losses
|
463 |
del in_tensor
|
464 |
|
|
|
|
|
465 |
return [smpl_path, smpl_path, smpl_npy_path, recon_path, recon_path, refine_path, refine_path, video_path, overlap_path]
|
|
|
450 |
video_path = os.path.join(config_dict['out_dir'], cfg.name, f"vid/{data['name']}_cloth.mp4")
|
451 |
overlap_path = os.path.join(config_dict['out_dir'], cfg.name, f"png/{data['name']}_overlap.png")
|
452 |
|
|
|
|
|
453 |
del model
|
454 |
del dataset
|
455 |
del local_affine_model
|
|
|
460 |
del losses
|
461 |
del in_tensor
|
462 |
|
463 |
+
torch.cuda.empty_cache()
|
464 |
+
|
465 |
return [smpl_path, smpl_path, smpl_npy_path, recon_path, recon_path, refine_path, refine_path, video_path, overlap_path]
|