Spaces:
Runtime error
Runtime error
fewer cloth_loop and use GPU-MC
Browse files- apps/infer.py +1 -1
- lib/common/seg3d_lossless.py +1 -1
apps/infer.py
CHANGED
|
@@ -50,7 +50,7 @@ def generate_model(in_path, model_type):
|
|
| 50 |
torch.cuda.empty_cache()
|
| 51 |
|
| 52 |
config_dict = {'loop_smpl': 100,
|
| 53 |
-
'loop_cloth':
|
| 54 |
'patience': 5,
|
| 55 |
'out_dir': './results',
|
| 56 |
'hps_type': 'pymaf',
|
|
|
|
| 50 |
torch.cuda.empty_cache()
|
| 51 |
|
| 52 |
config_dict = {'loop_smpl': 100,
|
| 53 |
+
'loop_cloth': 100,
|
| 54 |
'patience': 5,
|
| 55 |
'out_dir': './results',
|
| 56 |
'hps_type': 'pymaf',
|
lib/common/seg3d_lossless.py
CHANGED
|
@@ -584,7 +584,7 @@ class Seg3dLossless(nn.Module):
|
|
| 584 |
|
| 585 |
final = occupancys[1:, 1:, 1:].contiguous()
|
| 586 |
|
| 587 |
-
if final.shape[0]
|
| 588 |
# for voxelgrid larger than 256^3, the required GPU memory will be > 9GB
|
| 589 |
# thus we use CPU marching_cube to avoid "CUDA out of memory"
|
| 590 |
occu_arr = final.detach().cpu().numpy() # non-smooth surface
|
|
|
|
| 584 |
|
| 585 |
final = occupancys[1:, 1:, 1:].contiguous()
|
| 586 |
|
| 587 |
+
if final.shape[0] > 256:
|
| 588 |
# for voxelgrid larger than 256^3, the required GPU memory will be > 9GB
|
| 589 |
# thus we use CPU marching_cube to avoid "CUDA out of memory"
|
| 590 |
occu_arr = final.detach().cpu().numpy() # non-smooth surface
|