divamgupta / image-segmentation-keras

Implementation of Segnet, FCN, UNet , PSPNet and other models in Keras.
https://divamgupta.com/image-segmentation/2019/06/06/deep-learning-semantic-segmentation-keras.html
MIT License
2.92k stars 1.16k forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/vgg_unet_1_config.json' #167

Open vaihav opened 4 years ago

vaihav commented 4 years ago

I was implementing the code detailed on "https://github.com/divamgupta/image-segmentation-keras" I am getting the error related to "o such file or directory: '/tmp/vgg_unet_1_config.json" I am using the dataset shared at https://drive.google.com/file/d/0B0d9ZiqAgFkiOHR1NTJhWVJMNEU/view?usp=sharing . How do I solve the issue.

Thank you, Regards, Vaibhav

Philliec459 commented 4 years ago

Linux will have a tmp directory that is probably not present in Windows. Also, I think that anything stored in tmp will not be present after a new boot up. I am placing all of this in ‘weights/vgg...’ subdirectory for the project instead. Just be sure to create the subdirectory ‘weights’ first.

GGDRriedel commented 4 years ago

The automatic creation of the directory does not work neverthelss.

Windows here.

Looking at the codde, it is not looking in the UNXI tmp folder, but in a subfolder of the working path of your program and it's not creating this.

AlbertPYB commented 4 years ago

Linux will have a tmp directory that is probably not present in Windows. Also, I think that anything stored in tmp will not be present after a new boot up. I am placing all of this in ‘weights/vgg...’ subdirectory for the project instead. Just be sure to create the subdirectory ‘weights’ first.

Thank you, I got what you mean. But can you tell me how can I place this in ‘weights/vgg...’. Where directoty can I do this?? Thank you very much.

forest44 commented 4 years ago

I have the same issue. Any solution?

theo258 commented 4 years ago

I had the same issue when I ran the example code provided. Then I commented out the line containing the checkpoint path and it worked. Just creating a folder named 'tmp' in the directory I work did not change something. (Also working on Windows here.)