-1
$\begingroup$

I am working on CNN. I have saved images in drive to do image augmentation in keras, I have used method (.flow_from_directory(directory)) Since it require directory path. I have mounted drive and give path to the function but It's not working enter image description here PS: Beginner in Colab and cloud

$\endgroup$
1
$\begingroup$

As an example, assuming that you want to load a (numpy array) file called 'my_training_data.npy' that is in the default 'My Drive' folder of your Google Drive...

import numpy as np
from google.colab import drive
drive.mount('/content/drive')

path = '/content/drive/My Drive/'

my_training_data = np.load(path + 'my_training_data.npy')
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.