I get the following errors while recursively trying to save models.
This also causes the Jupiter notebook error:
Python 3 Unexpected error while saving file: gcp_stuff/code/gen_AI_GANS/1_GANS.ipynb database or disk is full
And
The history saving thread hit an unexpected error (OperationalError(‘database or disk is full’,)).History will not be written to the database.
After this, Jupiter wouldn’t allow to create folders even though I have over 5 GB of disk space. It throws up the following error:
Unexpected error while saving file: gcp_stuff/Untitled Folder [Errno 28] No space left on device: ‘/home/venkateshmadhava/gcp_stuff/Untitled Folder’
Post this I cannot do any more edits on the notebook. Below is the runtime error:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-28-23e5c992e73f> in <module>()
12 # model_lsgan(x,epochs,mbsize,gen_net,dis_net,dis_epochs,gen_epochs,no_latent,epoch_to_save,save_folder):
13 generate_folder = '/home/venkateshmadhava/gcp_stuff/dataset/GANS/gans_generated'
--> 14 model_lsgan(xtr_train,100,24,gen_model,dis_model,3,1,10,5,generate_folder)
<ipython-input-18-b9b28dd69b99> in model_lsgan(x, epochs, mbsize, gen_net, dis_net, dis_epochs, gen_epochs, no_latent, epoch_to_save, save_folder)
99 global dis_model_path
100 dis_model_path_1 = dis_model_path + '/' + dis_model_name
--> 101 torch.save(dis_net, dis_model_path_1)
102 print('Saved dis_net..')
103
~/.local/lib/python3.5/site-packages/torch/serialization.py in save(obj, f, pickle_module, pickle_protocol)
133 pickle_protocol: can be specified to override the default protocol
134 """
--> 135 return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))
136
137
~/.local/lib/python3.5/site-packages/torch/serialization.py in _with_file_like(f, mode, body)
115 f = open(f, mode)
116 try:
--> 117 return body(f)
118 finally:
119 if new_fd:
~/.local/lib/python3.5/site-packages/torch/serialization.py in <lambda>(f)
133 pickle_protocol: can be specified to override the default protocol
134 """
--> 135 return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))
136
137
~/.local/lib/python3.5/site-packages/torch/serialization.py in _save(obj, f, pickle_module, pickle_protocol)
202 f.flush()
203 for key in serialized_storage_keys:
--> 204 serialized_storages[key]._write_file(f)
205
206
RuntimeError: Unknown error -1```