Open btsai-dev opened 2 years ago
Hi, you may find the tuple variable (for example, results
) and change it to results[0]
?
Same error, except now it's an error for reading a Tensor instead of a tuple.
Is the results variable supposed to be a list of numpy arrays, and not Tensors? Even so, I'm not sure which particular configuration/CustomDataset mistake I made to cause that to happen.
Attached is the full config file. Converted it to text file for upload.
I am currently receiving a
TypeError: expected np.ndarray (got tuple)
while trying to execute evaluation during training.The evaluation progress bar progresses though all 302 of my test samples, but throws the above
TypeError
during the execution ofmean_iou()
.I have attached a log to this issue. If it matters, I was previously being thrown an
AttributeError
which I fixed by addinggt_seg_map_loader_cfg
and theself.gt_seg_map_loader
line.Prior to the error the
results
variable is a list of tuples of tensors, which is what I'm guessing is throwing the error (the printed debug statement at the top of the second image is showing the first element in theresults
list).Log:
20220121_194832.log
Ndarray Error:
Completed evaluation:
Modified training script: