Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Via_region_data.json file not found error while it is there in train and test dataset

$
0
0

@ayush27 wrote:

I am trying to train custom.py file on custom dataset. Both the train and test datasets contain via_region_data.json file. However the error that I am getting is “via_region_data.json” file not available. Trying to run in google colab with the below command.
!python custom.py train --dataset=/path/to/datasetfolder/train/via_region_data.json --weights=coco

Traceback (most recent call last):
File “custom.py”, line 364, in
train(model)
File “custom.py”, line 184, in train
dataset_train.load_custom(args.dataset, “train”)
File “custom.py”, line 115, in load_custom
annotations1 = json.load(open(os.path.join(dataset_dir, “via_region_data.json”)))
FileNotFoundError: [Errno 2] No such file or directory: ‘/path/to/datasetfolder/train/via_region_data.json’

The json file is loacted in the following path.

“/content/drive/My Drive/mask_rcnn_damage_detection/customImages/train/via_region_data.json”

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles