Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help in figuring out the proper configuration for training #15

Open
sparshgarg23 opened this issue Apr 26, 2022 · 0 comments
Open

Comments

@sparshgarg23
Copy link

As mentioned in the readme,I have downloaded the MOT20 dataset and organized it as follows

MOT20
     images
         train
         test
     labels_with_ids
        train

Then inside gen_labels_20.py i have mentioned it as follows

seq_root = '/content/MOT20/train'
label_root = '/content/MOT20/labels_with_ids/train'

Then finally I changed the dataset directories as mentioned in

Change the dataset root directory 'root' in src/lib/cfg/data.json and 'data_dir' in src/lib/opts.py

the data.json looks like this


    "root":"/content/FairMOT/src/data",
    "train":
    {
        "mot20":"./data/mot20.train",
        
    },
    "test_emb":
    {
        "mot15":"./data/mot20.train"
    },
    "test":
    {
        "mot15":"./data/mot20.train"
    }

And in opts.py
the changes are as follows

self.parser.add_argument('--data_cfg', type=str,
                             default='../src/lib/cfg/data.json',
                             help='load data from cfg')
    self.parser.add_argument('--data_dir', type=str, default='/content/FairMOT/src/data')

On running I get the following error

json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 7 column 5 (char 101)

Because I only want to train and test on mot20 and not on other datasets I removed the part about other datasets from data.json file
Furthermore should the data_dir be set to where MOT20 is or should it be set to data in src directory.The same applies in data.json

Will appreciate it if you could clarify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant