-
Notifications
You must be signed in to change notification settings - Fork 152
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
TypeError: string indices must be integers #86
Comments
Hi @markdjthomas , Thanks for the report and your attention here! The trainer with lightning is not stable now, but I'll be looking into fixing this! |
Sorry for not solving this problem for a while, I was on vacation a few days ago. I've written a unit-test in #87 to reproduce this bug and now it can report the same error in GH Actions. It seems that there are some bugs in the vanilla yolov5 module One should use the In other words, CUDA_VISIBLE_DEVICES=0 python -m yolort.train --data_path ./data-bin/voc_devkit --dataset_type voc --years 2007 2012 --num_gpus 1 And there is a unit-test for training with COCO type dataset here. My next plan is to integrate |
I've fixed training with the vanilla module, you can check the unit-test for more details, therefore I'm closing this issue. And please let me know if you have more questions. |
* Fix UserWarning of torch.tensor(sourceTensor) * Reproduce the bug in #86 * Support training with the vanilla module * Fix jit scripting bugs
I am trying to train a model using some custom data and keep running into this issue when in
model.train()
mode.For context
f
is a list of tensors of shape [3, 257, 79] andt
is a list of dicts that look like the following:I feel like this is likely a very obvious issue on my end, but I can't seem to figure it out.
The text was updated successfully, but these errors were encountered: