Tool/software:
Hi Experts,
I am trying to make custom model using https://github.com/TexasInstruments/edgeai-modelmaker. I can't run run_convert_dataset.sh seems error at first seems that it can't locate an image so I deleted that image and annotation from json file. I only uncommented the below code in that script.
python3 ./scripts/convert_dataset.py --source_format=labelstudio_classification --source_anno=./data/sample/sample.json --source_data=./data/sample/new --dest_anno=./data/sample/labels.json
But on running it seems errors that is like below.
argv: ['./scripts/convert_dataset.py', '--source_format=labelstudio_classification', '--source_anno=./data/sample/sample.json', '--source_data=./data/sample/new', '--dest_anno=./data/sample/labels.json'] Traceback (most recent call last): File "/home/user/modelmaker/edgeai-modelmaker/./scripts/convert_dataset.py", line 414, in <module> main(args) File "/home/user/modelmaker/edgeai-modelmaker/./scripts/convert_dataset.py", line 378, in main convert_labelstudio_classification(args) File "/home/user/modelmaker/edgeai-modelmaker/./scripts/convert_dataset.py", line 248, in convert_labelstudio_classification dataset_json_min = json.load(afp) File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/json/__init__.py", line 293, in load return loads(fp.read(), File "/home/user/.pyenv/versions/3.10.16/lib/python3.10/json/__init__.py", line 335, in loads raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)", json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)
How to solve this issue ?
Steps I did :
Downloaded and Installed all required things from github page.
Annotated some images with label studio and exported it into JSON-MIN format.
Images used and json file is copied into the path /data/sample in modelmaker directory.
Then tried to run run_convert_dataset.sh.
Please help me to solve this issue.
Best Regards,
Sajan