jueves, 5 de noviembre de 2020

Cargar imágenes desde el Drive en Colab

Cargar imágenes desde el Drive en Colab


https://towardsdatascience.com/the-2-step-guide-to-upload-images-in-google-colab-b51348e882e4#:~:text=First%2C%20open%20google%20drive%20%26%20upload,a%20sharable%20link%20%26%20copy%20it.&text=Open%20Google%20Colab%20Notebook%20%26%20add,want%20to%20include%20the%20image.


Step I: Upload the image on google drive & copy the sharable link.

First, open google drive & upload the image on the drive.

Image for post

Select the uploaded image, right-click on it, get a sharable link & copy it.

Image for post
Image for post

Step 2: Upload on Google Colab

Open Google Colab Notebook & add text block where you want to include the image.

Image for post

The general code to include an image is given below. Paste the sharable-link of your image that you had copied earlier inside round brackets.

Image for post

After you paste the link, replace ‘open?’ part with ‘uc?’

Image for post
Image for post

Press ‘Shift+Enter’

No hay comentarios:

Publicar un comentario