I use Google Colaboratory then I want to save output images in my Google Drive or SSD, HHD but its directory is \"/content\"
import os
print(os.getcwd())
To save the weight you can run the following after training.
saver = tf.train.Saver()
save_path = saver.save(session, "data/dm.ckpt")
print('done saving at',save_path)
Check the location where the ckpt files were saved.
import os
print( os.getcwd() )
print( os.listdir('data') )
Finally download the file!
from google.colab import files
files.download( "data/dm.ckpt.meta" )