Git Product home page Git Product logo

Comments (9)

zqbai-jeremy avatar zqbai-jeremy commented on July 30, 2024

可以试一下把DFNRMVS folder加入PYTHONPATH. export PYTHONPATH=<DFNRMVS directory>

from dfnrmvs.

Li-rr avatar Li-rr commented on July 30, 2024

您好,我试了以后还是不行,另外我检查了一下BGM.mat文件在报错信息提示的目录中没有找到,报错信息如下

~/workspace/DFNRMVS master ✗ 39d13h ⚑ ◒
export PYTHONPATH=/home/lrr/workspace/DFNRMVS
(DFNRMVS)
~/workspace/DFNRMVS master ✗ 39d13h ⚑ ◒
python demo.py
Initializing model ...
Traceback (most recent call last):
File "/home/lrr/anaconda3/envs/DFNRMVS/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 39, in _open_file
return open(file_like, mode), True
FileNotFoundError: [Errno 2] No such file or directory: './external/face3d/examples/Data/BFM/Out/BFM.mat'

During handling of the above exception, another exception occurred:

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 "/home/lrr/workspace/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 "/home/lrr/workspace/DFNRMVS/networks/sub_nets.py", line 553, in init
self.bfm = bfm_utils.load_3DMM(MM_base_dir)
File "/home/lrr/workspace/DFNRMVS/data/BFM/utils.py", line 69, in load_3DMM
bfm = MorphabelModel(os.path.join(MM_base_dir, 'Out/BFM.mat'))
File "/home/lrr/workspace/DFNRMVS/external/face3d/face3d/morphable_model/morphabel_model.py", line 30, in init
self.model = load.load_BFM(model_path)
File "/home/lrr/workspace/DFNRMVS/external/face3d/face3d/morphable_model/load.py", line 31, in load_BFM
C = sio.loadmat(model_path)
File "/home/lrr/anaconda3/envs/DFNRMVS/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 222, in loadmat
with _open_file_context(file_name, appendmat) as f:
File "/home/lrr/anaconda3/envs/DFNRMVS/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/home/lrr/anaconda3/envs/DFNRMVS/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 17, in _open_file_context
f, opened = _open_file(file_like, appendmat, mode)
File "/home/lrr/anaconda3/envs/DFNRMVS/lib/python3.6/site-packages/scipy/io/matlab/mio.py", line 45, in _open_file
return open(file_like, mode), True
FileNotFoundError: [Errno 2] No such file or directory: './external/face3d/examples/Data/BFM/Out/BFM.mat'
(DFNRMVS)

from dfnrmvs.

zqbai-jeremy avatar zqbai-jeremy commented on July 30, 2024

在目标路径上这个file存在吗?不存在的话需要setup YadiraF/face3d 里的 BFM (https://github.com/YadiraF/face3d/blob/master/examples/Data/BFM/readme.md).

from dfnrmvs.

Li-rr avatar Li-rr commented on July 30, 2024

可以了,谢谢您

还有一个问题就是,我现在用的windows的matlab生成BFM的out下面的东西,直接拷贝到ubuntu环境可以用吗

from dfnrmvs.

Li-rr avatar Li-rr commented on July 30, 2024

试好了,麻烦您了

from dfnrmvs.

sunbin1993 avatar sunbin1993 commented on July 30, 2024

可以了,谢谢您

还有一个问题就是,我现在用的windows的matlab生成BFM的out下面的东西,直接拷贝到ubuntu环境可以用吗

方便分享下 BFM.mat??

from dfnrmvs.

Li-rr avatar Li-rr commented on July 30, 2024

可以了,谢谢您
还有一个问题就是,我现在用的windows的matlab生成BFM的out下面的东西,直接拷贝到ubuntu环境可以用吗

方便分享下 BFM.mat??

可以的,你的邮箱是多少

from dfnrmvs.

enjoybo avatar enjoybo commented on July 30, 2024

可以了,谢谢您
还有一个问题就是,我现在用的windows的matlab生成BFM的out下面的东西,直接拷贝到ubuntu环境可以用吗

方便分享下 BFM.mat??

可以的,你的邮箱是多少

你好,我也想要一份BFM.mat, BFM_info.mat,电脑没装matlab没能生成,我的邮箱是[email protected],非常感谢~

from dfnrmvs.

abhishekmaroon5 avatar abhishekmaroon5 commented on July 30, 2024

I also want a copy of BFM.mat, BFM_info.mat. My email is [email protected]

from dfnrmvs.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.