amazon-science / siam-mot

SiamMOT: Siamese Multi-Object Tracking
Apache License 2.0
478 stars 61 forks source link

errors about train_net.py #29

Closed yanghaibin-cool closed 3 years ago

yanghaibin-cool commented 3 years ago

This is my train.py parameter configuration: 图片 This is my data structure: 图片 But I have this problem: 图片 I think there's something wrong here.But I do not know how to solve, ask for help, thank you 图片 图片

yanghaibin-cool commented 3 years ago

I modified this place, but I still encountered errors: 图片 图片 Ask for help online,thank you.

mondrasovic commented 3 years ago

I modified this place, but I still encountered errors: 图片 图片 Ask for help online,thank you.

The error message practically tells you a lot about the solution. There's a type mismatch. The DATASETS.TRAIN key needs to be a tuple, not a string. You have to make it a single element tuple, thus:

...
  TRAIN: ("MOT17",)
...

Notice the additional comma after the MOT17 string. That's what you are missing right now.

yanghaibin-cool commented 3 years ago

Thank you so much for helping me so many times.My goal was to train the model on MOT17.Then I have made some modifications to what you said: DLA_34_FPN_EMM_MOT17.yaml: 图片 train_net.py: 图片 The train-dir is the absolute path to the folder,I don't know if that's right: 图片 Then I ran into the following problem: 图片 Excuse me, what is the reason.Thank you.

I modified this place, but I still encountered errors: 图片 图片 Ask for help online,thank you.

The error message practically tells you a lot about the solution. There's a type mismatch. The DATASETS.TRAIN key needs to be a tuple, not a string. You have to make it a single element tuple, thus:

...
  TRAIN: ("MOT17",)
...

Notice the additional comma after the MOT17 string. That's what you are missing right now.