TF_RECORDS are not produced after I run the generate_tfrecord.py script

54 Views Asked by At

When I run the following script in jupyter notebook, on my mac m1, it runs (star comes on then off to show its done running), however, when I check my annotations file, there are no tf records:

!python {files['TF_RECORD_SCRIPT']} -x {os.path.join(paths['IMAGE_PATH'], 'train')} -l {files['LABELMAP']} -o {os.path.join(paths['ANNOTATION_PATH'], 'train.record')} 
!python {files['TF_RECORD_SCRIPT']} -x {os.path.join(paths['IMAGE_PATH'], 'test')} -l {files['LABELMAP']} -o {os.path.join(paths['ANNOTATION_PATH'], 'test.record')} 

I have also tried to create the tf records, by first creating the csv files then running 'generate_tfrecord.py', (from this link https://github.com/datitran/raccoon_dataset/blob/master/generate_tfrecord.py ) but I get the following error :

zsh: illegal hardware instruction  python3 generate_tfrecord.py --csv_input=data/train_labels.csv
0

There are 0 best solutions below