YuvalNirkin / hyperseg

HyperSeg - Official PyTorch Implementation
https://nirkin.com/hyperseg
Creative Commons Zero v1.0 Universal
210 stars 39 forks source link

ModuleNotFoundError:No module named ‘hyperseg’ #22

Closed Rebufleming closed 2 years ago

Rebufleming commented 2 years ago

I encountered this error when I was training the model, and when I deleted all the "hyperseg" in the code, this error was not reported. Is this the right thing to do?

YuvalNirkin commented 2 years ago

It's best to add the parent directory of the repository to PYTHONPATH.

Rebufleming commented 2 years ago

Thank you! It works

xings-sdnu commented 2 years ago

Hi, I have the same problem, how did you add the directory to the PythonPath, please?

Rebufleming commented 2 years ago

我的方法还是把那些”hyperseg“都删了,因为每次都添加到python path很麻烦,那个好像是一次性的。你可以在网上搜一下怎么加入python path,这个是我之前做的,我现在忘了。

xings-sdnu commented 2 years ago

我的方法还是把那些”hyperseg“都删了,因为每次都添加到python path很麻烦,那个好像是一次性的。你可以在网上搜一下怎么加入python path,这个是我之前做的,我现在忘了。

非常感谢!!