I havee about 2000 images, I have uploaded them to my Google drive. How do I make colab see and read these images. All the images are in one folder.
There are some commands you must run, designed specifically for Colab:
from google.colab import drive drive.mount('/content/drive')
With this, an authentication page will open. They want you to explicitly allow an access to your Drive. Click on the link and get a key code, that you can insert into an input line. At that point, you Colab Notebook is ready to access the data within you Drive account.
Each file path commonly starts with:
"/content/drive/My Drive/ ... your folders.../"
Within Colab Notebook, linux shell commands are also working, and can be accessd by putting
! before them (as in Jupyter).
google.colab commands do not work outside Google Colab Notebooks, therefore, if you download your .ipybn file, remember to change those line or it'll throw error.