1

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.

SantoshGupta7
  • 5,607
  • 14
  • 58
  • 116

2 Answers2

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