I am getting this error while training Nan efficient net model.
Downloading data from https://storage.googleapis.com/keras-applications/efficientnetb0.h5
Traceback (most recent call last):
File "efficient_net.py", line 45, in <module>
base_model = EfficientNetB0(include_top=True, weights='imagenet', input_shape=input_shape)
File "/home/ubuntu/projects/XXXX/vevn37/lib/python3.7/site-packages/tensorflow/python/keras/applications/efficientnet.py", line 540, in EfficientNetB0
**kwargs)
File "/home/ubuntu/projects/XXXX/vevn37/lib/python3.7/site-packages/tensorflow/python/keras/applications/efficientnet.py", line 406, in EfficientNet
file_hash=file_hash)
File "/home/ubuntu/projects/XXXX/vevn37/lib/python3.7/site-packages/tensorflow/python/keras/utils/data_utils.py", line 275, in get_file
urlretrieve(origin, fpath, dl_progress)
File "/usr/lib/python3.7/urllib/request.py", line 257, in urlretrieve
tfp = open(filename, 'wb')
PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.keras/models/efficientnetb0.h5'
I have tried to change the permission of my python code:
chmod 777 code.py
It did not work.