CrackSegNet icon indicating copy to clipboard operation
CrackSegNet copied to clipboard

'No such file or directory' about name = 'ImprovedFCN.hdf5' when run the main.py

Open AlbertPYB opened this issue 5 years ago • 0 comments

Hello: when I run the main.py, there is the error as follow: File "G:/代码学习/Crack Detection/cracksegnet/CrackSegNet-master/main.py", line 79, in <module> model = unet3s2('G:\代码学习\Crack Detection\cracksegnet\model\ImprovedFCN.hdf5') File "G:\代码学习\Crack Detection\cracksegnet\model.py", line 80, in unet3s2 model.load_weights(pretrained_weights) and File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 88, in h5py.h5f.open OSError, While the main.py and model.py are't in the same directory, what should I do ? Thank you very much!!

AlbertPYB avatar Jun 06 '20 12:06 AlbertPYB