zqbai-jeremy / DFNRMVS

Source code for CVPR 2020 paper "Deep Facial Non-Rigid Multi-View Stereo"
GNU General Public License v3.0
167 stars 26 forks source link

KeyError: 'model' #13

Open davidSirovsky opened 2 years ago

davidSirovsky commented 2 years ago

/usr/local/lib/python3.7/site-packages/skimage/io/manage_plugins.py:23: UserWarning: Your installed pillow version is < 8.1.2. Several security issues (CVE-2021-27921, CVE-2021-25290, CVE-2021-25291, CVE-2021-25293, and more) have been fixed in pillow 8.1.2 or higher. We recommend to upgrade this library. from .collection import imread_collection_wrapper Initializing model ... Traceback (most recent call last): File "demo.py", line 143, in model = init_model(checkpoint_path) File "demo.py", line 47, in init_model model = FNRMVSNet(opt_step_size=1e-2) File "/content/DFNRMVS/networks/sub_nets.py", line 1083, in init self.opt_layer = NRMVSOptimization(opt_step_size=opt_step_size, MM_base_dir=MM_base_dir) File "/content/DFNRMVS/networks/sub_nets.py", line 553, in init self.bfm = bfm_utils.load_3DMM(MM_base_dir) File "/content/DFNRMVS/data/BFM/utils.py", line 69, in load_3DMM bfm = MorphabelModel(os.path.join(MM_base_dir, 'Out/BFM.mat')) File "/content/DFNRMVS/external/face3d/face3d/morphable_model/morphabel_model.py", line 30, in init self.model = load.load_BFM(model_path) File "/content/DFNRMVS/external/face3d/face3d/morphable_model/load.py", line 32, in load_BFM model = C['model'] KeyError: 'model'

Instead of a "BFM.mat", I used a "01_MorphableModel.mat" and renamed it to a "BFM.mat". It's right?