Repository navigation
Closed
Description
I tried to ingest the file
filename
https://s3.console.aws.amazon.com/s3/object/aperturedb-demos?region=us-west-2&bucketType=general&prefix=team-members/bi.mp4
by running
adb ingest from-csv celebA/sample-data/video-list.csv --ingest-type VIDEO
I expected the video will be ingested but got
─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/ali/.local/lib/python3.11/site-packages/aperturedb/cli/ingest.py:197 in from_csv │
│ │
│ 194 │ │ IngestType.VIDEO: VideoDataCSV │
│ 195 │ } │
│ 196 │ │
│ ❱ 197 │ data = ingest_types[ingest_type](filepath, use_dask=use_dask, │
│ 198 │ │ │ │ │ │ │ │ │ blobs_relative_to_csv=blobs_relative_to_csv) │
│ 199 │ data.sample_count = len(data) if sample_count == -1 else sample_count │
│ 200 │ if transformer or user_transformer: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ batchsize = 1 │ │
│ │ blobs_relative_to_csv = True │ │
│ │ debug = False │ │
│ │ filepath = 'celebA/sample-data/video-list.csv' │ │
│ │ ingest_type = <IngestType.VIDEO: 'VIDEO'> │ │
│ │ ingest_types = { │ │
│ │ │ <IngestType.BLOB: 'BLOB'>: <class │ │
│ │ 'aperturedb.BlobDataCSV.BlobDataCSV'>, │ │
│ │ │ <IngestType.BOUNDING_BOX: 'BOUNDING_BOX'>: <class │ │
│ │ 'aperturedb.BBoxDataCSV.BBoxDataCSV'>, │ │
│ │ │ <IngestType.CONNECTION: 'CONNECTION'>: <class │ │
│ │ 'aperturedb.ConnectionDataCSV.ConnectionDataCSV'>, │ │
│ │ │ <IngestType.DESCRIPTOR: 'DESCRIPTOR'>: <class │ │
│ │ 'aperturedb.DescriptorDataCSV.DescriptorDataCSV'>, │ │
│ │ │ <IngestType.DESCRIPTORSET: 'DESCRIPTORSET'>: <class │ │
│ │ 'aperturedb.DescriptorSetDataCSV.DescriptorSetDataCSV'>, │ │
│ │ │ <IngestType.ENTITY: 'ENTITY'>: <class │ │
│ │ 'aperturedb.EntityDataCSV.EntityDataCSV'>, │ │
│ │ │ <IngestType.IMAGE: 'IMAGE'>: <class │ │
│ │ 'aperturedb.ImageDataCSV.ImageDataCSV'>, │ │
│ │ │ <IngestType.POLYGON: 'POLYGON'>: <class │ │
│ │ 'aperturedb.PolygonDataCSV.PolygonDataCSV'>, │ │
│ │ │ <IngestType.VIDEO: 'VIDEO'>: <class │ │
│ │ 'aperturedb.VideoDataCSV.VideoDataCSV'> │ │
│ │ } │ │
│ │ num_workers = 1 │ │
│ │ sample_count = -1 │ │
│ │ stats = True │ │
│ │ transformer = [] │ │
│ │ use_dask = False │ │
│ │ user_transformer = [] │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /home/ali/.local/lib/python3.11/site-packages/aperturedb/VideoDataCSV.py:46 in __init__ │
│ │
│ 43 │ │
│ 44 │ def __init__(self, filename, check_video=True, **kwargs): │
│ 45 │ │ │
│ ❱ 46 │ │ super().__init__(filename, df=None, **kwargs) │
│ 47 │ │ │
│ 48 │ │ self.check_video = check_video │
│ 49 │
│ │
│ ╭─────────────────────────────────── locals ────────────────────────────────────╮ │
│ │ check_video = True │ │
│ │ filename = 'celebA/sample-data/video-list.csv' │ │
│ │ kwargs = {'use_dask': False, 'blobs_relative_to_csv': True} │ │
│ │ self = <aperturedb.VideoDataCSV.VideoDataCSV object at 0x7fe96714df10> │ │
│ ╰───────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /home/ali/.local/lib/python3.11/site-packages/aperturedb/CSVParser.py:84 in __init__ │
│ │
│ 81 │ │ │
│ 82 │ │ self.df = self.df.astype('object') │
│ 83 │ │ self.header = list(self.df.columns.values) │
│ ❱ 84 │ │ self.validate() │
│ 85 │ │
│ 86 │ def __len__(self): │
│ 87 │ │ return len(self.df.index) │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ df = None │ │
│ │ filename = 'celebA/sample-data/video-list.csv' │ │
│ │ kwargs = {'df': None, 'use_dask': False, 'blobs_relative_to_csv': True} │ │
│ │ self = <aperturedb.VideoDataCSV.VideoDataCSV object at 0x7fe96714df10> │ │
│ │ strict_response_validation = False │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /home/ali/.local/lib/python3.11/site-packages/aperturedb/VideoDataCSV.py:107 in validate │
│ │
│ 104 │ │ self.header = list(self.df.columns.values) │
│ 105 │ │ │
│ 106 │ │ if self.header[0] != HEADER_PATH: │
│ ❱ 107 │ │ │ raise Exception( │
│ 108 │ │ │ │ "Error with CSV file field: filename. Must be first field") │
│ 109 │
│ │
│ ╭──────────────────────────────── locals ────────────────────────────────╮ │
│ │ self = <aperturedb.VideoDataCSV.VideoDataCSV object at 0x7fe96714df10> │ │
│ ╰────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
Exception: Error with CSV file field: filename. Must be first field
Metadata
Metadata
Assignees
Labels
No labels
Activity
luisremis commentedon Jan 13, 2024
Related to #309