Closed starofgit closed 5 years ago
Hello, thank you for your interest in our work! This is an automated response. Please note that most technical problems are due to:
git clone
version of this repository we can not debug it. Before going further run this code and ensure your issue persists:
sudo rm -rf yolov3 # remove exising repo
git clone https://github.com/ultralytics/yolov3 && cd yolov3 # git clone latest
python3 detect.py # verify detection
python3 train.py # verify training (a few batches only)
# CODE TO REPRODUCE YOUR ISSUE HERE
train_batch0.jpg
and test_batch0.jpg
for a sanity check of training and testing data.If none of these apply to you, we suggest you close this issue and raise a new one using the Bug Report template, providing screenshots and minimum viable code to reproduce your issue. Thank you!
I am getting the following error while training: Traceback (most recent call last): File "train.py", line 209, in
main(opt)
File "train.py", line 131, in main
weight=class_weights, epoch=epoch).to(device)
File "/home/xxxxx/anaconda3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/xxxxx//xview/xview-yolov3-master/models.py", line 234, in forward
x, losses = module[0](x, targets, requestPrecision, weight, epoch)
ValueError: too many values to unpack (expected 2)
I have checked that above call is returning 14 values. Is it because of torch version mismatch?