Open Samiepapa opened 2 years ago
Readme에 적힌 에러 발생
For visualization, we use our rasterizer that uses pytorch JIT Compiling Extensions. If there occurs a compiling error, you can install pytorch3d instead and set --rasterizer_type=pytorch3d when running the demos.
1) 해결하기 위해 아래와 같이 pytorch3d 설치한다.
$ pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1100/download.html
2) 설치하고 나서 아래와 같이 빌드 옵션 추가해서 빌드한다.
$ python demos/demo_reconstruct.py -i TestSamples/examples/ --saveDepth True --saveObj True --rasterizer_type=pytorch3d
creating the FLAME Decoder
trained model found. load /home/yongilcho/reposit/DECA/data/deca_model.tar
/home/yongilcho/.virtualenvs/DECA/lib/python3.8/site-packages/pytorch3d/io/obj_io.py:533: UserWarning: Mtl file does not exist: /home/yongilcho/reposit/DECA/data/template.mtl
warnings.warn(f"Mtl file does not exist: {f}")
0%| | 0/9 [00:00<?, ?it/s]/home/yongilcho/.virtualenvs/DECA/lib/python3.8/site-packages/torch/nn/functional.py:3631: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
warnings.warn(
/home/yongilcho/.virtualenvs/DECA/lib/python3.8/site-packages/torch/nn/functional.py:4003: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.
warnings.warn(
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:11<00:00, 1.27s/it]
-- please check the results in TestSamples/examples/results
성공?