Closed Zevrap-81 closed 1 year ago
Use SMPL-based HPS instead, such as PyMAF/BEV/HybrIK.
Thanks it worked.
One more thing, how do i get these segmentation boundaries for my own images? Can i use sam for it? also are these pixel coordinates?
I think you can use SAM, as long as you can convert the mask into the json format, see garment-extraction.md.
but the question is how did you convert the mask into json format?
Hey, Firstly i want to appreciate, great work!
I wanted to extract the garment by following the instructions in garment extraction. But i am getting the NoneType error. I am using the built-in examples of segmentation.
Here is the detailed error
``` (base) root@ea8a3c897c90:/home# python -m apps.infer -cfg ./configs/pifu.yaml -gpu 0 -in_dir ./examples/segmentation -out_dir ./results -seg_dir ./examples/segmentation NOTE! Installing ujson may make loading annotations faster. PIFU: w/ Global Image Encoder: True Image Features used by MLP: ['image', 'normal_F', 'normal_B'] Dim of Image Features (global): 12 Dim of Geometry Features (PIFu): 1 (z-value) Dim of MLP's first layer: 13 Resume MLP weights from ./data/ckpt/pifu.ckpt Resume normal model from ./data/ckpt/normal.ckpt Using pixie as HPS Estimator Dataset Size: 2 Body Fitting --- normal: 0.057 | silhouette: 0.032 | Total: 0.089: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 100/100 [00:11<00:00, 9.09it/s] Cloth Refinement --- cloth:0.13740 | stiffness:0.02705 | rigid:0.00006 | laplacian:0.05698 | Total: 0.22150: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 150/150 [00:04<00:00, 33.64it/s] 003883: 0%| | 0/2 [00:45, ?it/s] Traceback (most recent call last): File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/apps/infer.py", line 571, inI think the problem lies in the 'smpl_vert_segmentation.json' file. please help