Replies: 2 comments
-
Hey Josh, There are several methods to get data in and out of Google Colab, you can see many of them here: https://colab.research.google.com/notebooks/io.ipynb For example, to upload files from a local system: from google.colab import files
uploaded = files.upload()
for fn in uploaded.keys():
print('User uploaded file "{name}" with length {length} bytes'.format(
name=fn, length=len(uploaded[fn]))) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How can I upload this dataset from Kaggle instead of using !wget?
I downloaded the files from Kaggle and now have a zipped folder on my desktop with test and train folders in it (with images in each).
How can I upload this to my Colab?
What should I replace this code with:
import zipfile
Download zip file of pizza_steak images
!wget https://storage.googleapis.com/ztm_tf_course/food_vision/pizza_steak.zip
Unzip the downloaded file
zip_ref = zipfile.ZipFile("pizza_steak.zip", "r")
zip_ref.extractall()
zip_ref.close()
Thank you very much!
Josh
Beta Was this translation helpful? Give feedback.
All reactions