yxqAIxp
yxqAIxp
> ModuleNotFoundError: No module named 'model2' "ModuleNotFoundError: No module named ****"问题分析和解决思路 这个问题比较常见,根据经验主要分为两种: 情况1:"****"这个package是否在真的存在,pycharm做远程deployment时候,用户经常会在远程服务器漏掉某些文件和目录,导致目录不存在。 解决办法:直接upload本地目录和文件到服务器就行了 情况2:"****"这个package是存在的,这时问题继续分为2种情况 情况2.1:使用pycharm,右击指定包目录"Make Directory as"设置为"Source root",pycharm在运行时候会自动加载该package包到sys.path中 情况2.2:在命令行模式(不使用pycharm)下运行,则在当前py文件的最前面部分手动添加sys.path.append("****所在包目录")
> torch.load('.pth')就报错,跟模型没有关系吧,是不是权重文件损坏了? > […](#) > ---Original--- From: ***@***.***> Date: Thu, Aug 19, 2021 09:15 AM To: ***@***.***>; Cc: ***@***.******@***.***>; Subject: Re: [github-luffy/PFLD_68points_Pytorch] model.load_state_dict(torch.load('efficientNet-b0.pth')) (#30) ModuleNotFoundError: No module named 'model2' "ModuleNotFoundError:...
> 同样的问题 No module named 'model2' model2.py模块没有找到 应该是模块加载失败的问题 你是怎么运行代码 linux下的命令还是使用了编辑器?
> 和运行代码没关系,我和上面的那位相同torch.load就不行。 喔喔 那只能一步步调试 看看哪行代码报错 我这边暂时没发现这个问题。
You can check the distribution of the loss function to see if it conforms to the state of convergence. Then try the test results again.
3D特征点检测 估计要用到xyz了,如果只是从现有的2D图获取,可能有很大的难度而且不是很准确。可以查查3D人脸建模的算法,或者通过硬件,例如传感器重新获取数据。
You can try [PFLD_68points_Pytorch](https://github.com/github-luffy/PFLD_68points_Pytorch) or [PFLD-68points-tensorflow](https://github.com/github-luffy/PFLD-68points-tensorflow)
> The paper mentioned that the method first trains on wflw dataset and use the weights as pretrain model and train on 300w > > However, 300w just has 68...
You can try [PFLD_68points_Pytorch](https://github.com/github-luffy/PFLD_68points_Pytorch) or [PFLD-68points-tensorflow](https://github.com/github-luffy/PFLD-68points-tensorflow)
You can try [PFLD_68points_Pytorch](https://github.com/github-luffy/PFLD_68points_Pytorch) or [PFLD-68points-tensorflow](https://github.com/github-luffy/PFLD-68points-tensorflow)