YuliangXiu / ECON

[CVPR'23, Highlight] ECON: Explicit Clothed humans Optimized via Normal integration
https://xiuyuliang.cn/econ
Other
1.1k stars 105 forks source link

Memory Error: 'std::bad_alloc' Aborted (core dumped) #1

Closed ahmad-bashir-ai closed 1 year ago

ahmad-bashir-ai commented 1 year ago

Hi Authors,

I hope you are doing great. I am trying to run this repository my machine in the conda environment with the following specifications,

Ubuntu : 20.04 Cuda: 11.7 Python : 3.8.15 GPU: Tesla V100 16GB I followed the step by steps instructions in the installation guide to setup the environment and there was no error during that. Now, when I try to run inference using this command python -m apps.infer -cfg ./configs/econ.yaml -in_dir ./examples -out_dir ./results

I got the following output with an error,

resume Normal weights from ./data/ckpt/normal.ckpt
Resume MLP weights from ./data/ckpt/ifnet.ckpt
Use IF-Nets (Implicit)+ for completion
Use PIXIE to estimate human pose and shape
Dataset Size: 1
  0%|                                                                                                                                                                          | 0/1 [00:00<?, ?it/s]INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
304e9c4798a8c3967de7c74c24ef2e38:   0%|                                                                                                                                        | 0/1 [00:07<?, ?it/s]terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

Can you please suggest the possible solution?

YuliangXiu commented 1 year ago

Maybe related to the pypoisson, please check the OBJ folder to get to know which specific step caused this issue.

# final reconstruction meshes (OBJ)
# 1. SMPL mesh (xxx_smpl_xx.obj)
# 2. SMPL params (xxx_smpl.npy)
# 3. d-BiNI surfaces (xxx_BNI.obj)
# 4. seperate face/hand mesh (xxx_hand/face.obj)
# 5. full shape impainted by IF-Nets+, and remeshed shape (xxx_IF_(remesh).obj)
# 6. sideded or occluded parts (xxx_side.obj)
# 7. final reconstructed clothed human (xxx_full.obj)
ahmad-bashir-ai commented 1 year ago

OBJ folder has the following files,

1. SMPL mesh (xxx_smpl_xx.obj)
2. SMPL params (xxx_smpl.npy)
3. d-BiNI surfaces (xxx_BNI.obj)
4. seperate face/hand mesh (xxx_hand/face.obj)
5. full shape impainted by IF-Nets+, and remeshed shape (xxx_IF_(remesh).obj)
6. sideded or occluded parts (xxx_side.obj)

xxx_full.objis missing. Can you please tell what could be the possible reason? If you have any solution please share

YuliangXiu commented 1 year ago

OBJ folder has the following files,

1. SMPL mesh (xxx_smpl_xx.obj)
2. SMPL params (xxx_smpl.npy)
3. d-BiNI surfaces (xxx_BNI.obj)
4. seperate face/hand mesh (xxx_hand/face.obj)
5. full shape impainted by IF-Nets+, and remeshed shape (xxx_IF_(remesh).obj)
6. sideded or occluded parts (xxx_side.obj)

xxx_full.objis missing. Can you please tell what could be the possible reason? If you have any solution please share

If that is the case, you probably need to reinstall pypoisson. Please check the link I posted in last reply.

ahmad-bashir-ai commented 1 year ago

Thanks issue resolved with installing gcc-7