zhenxuan00 / triple-gan

See Triple-GAN-V2 in PyTorch: https://github.com/taufikxu/Triple-GAN
226 stars 63 forks source link

No module named path #2

Open dmortem opened 5 years ago

dmortem commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

1679050999 commented 5 years ago

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