Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named path #2

Open
dmortem opened this issue Oct 31, 2018 · 3 comments
Open

No module named path #2

dmortem opened this issue Oct 31, 2018 · 3 comments

Comments

@dmortem
Copy link

dmortem commented Oct 31, 2018

Hi,
@zhenxuan00 @taufikxu
Thanks for your codes! When I ran the code, it seems no path library in python. (in checkpoints.py) How can I solve it? Thank you!

@1679050999
Copy link

Hi,
I also suffer this problem,and I install another module named pathlib2,and then ,it show another problem "File "x2y_yz2x_xy2p_ssl_mnist.py", line 504, in
save_weights(os.path.join(outfolder, 'model_epoch' + str(epoch) + '.npy'), params, None)
File "/dataset1000/grade2/ZY/triplegan/triple-gan-master/utils/checkpoints.py", line 23, in save_weights
filename, ext = osp.splitext(fname)
File "/usr/lib/python2.7/posixpath.py", line 98, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
File "/usr/lib/python2.7/genericpath.py", line 99, in _splitext
sepIndex = p.rfind(sep)
AttributeError: 'PosixPath' object has no attribute 'rfind'
"
I think that I din't install the right module.Have you solved this problem?

@dmortem
Copy link
Author

dmortem commented May 17, 2019

Hi, @1679050999
I just remove the line 5 and line 21. It works well on my own dataset.

@1679050999
Copy link

Hi,@dmortem
Thank you very much! I will have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants