Skip to content

GCS support #120

@kentslaney

Description

@kentslaney

While trying to load a TFDS dataset from GCS, I encountered this error:

/usr/local/lib/python3.10/dist-packages/array_record/python/array_record_data_source.py in _create_reader
    176 def _create_reader(filename: epath.PathLike):
    177   """Returns an ArrayRecordReader for the given filename."""
--> 178   return array_record_module.ArrayRecordReader(
    179       filename,
    180       options="readahead_buffer_size:0",

RuntimeError: open() failed: No such file or directory; opening gs://ref_coco/ref_coco/refcoco_unc/1.1.0/ref_coco-train.array_record-00000-of-00032

See the minimum reproducible example here:

https://colab.research.google.com/drive/1iezVDZBJrWtP3fVTpAMNGb6qfENZNKuD?usp=sharing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions