For training models on the colab TPUs, the data needs to be on GCP buckets. However, for small amounts of data, I am wondering if it's possible to directly inference data directly from the local colab enviroment.
Asked
Active
Viewed 618 times
2 Answers
1
Unfortunately, it isn't possible to load local data into the TPU with Colab currently. You will need to continue using the GCS bucket for any data loading into the TPU.

Allen Wang
- 281
- 1
- 4
0
You can read files with Python:
with open(image_path, "rb") as local_file:
img = local_file.read()

Andrey
- 5,932
- 3
- 17
- 35