Hi, thanks for the fantastic work. But I have some issues in model training, I prepared the dataset according to the instructions, but got this error:
0%| | 0/818 [00:02<?, ?it/s]
Traceback (most recent call last):
File "/home/xxxx/xxxx/xxxx/PEBAL/code/main.py", line 158, in
main(-1, 1, config=config, args=args)
File "/home/xxxx/xxxx/xxxx/PEBAL/code/main.py", line 113, in main
trainer.train(model=model, epoch=curr_epoch, train_sampler=train_sampler, train_loader=train_loader,
File "/home/xxxx/xxxx/xxxx/PEBAL/code/engine/trainer.py", line 47, in train
target = minibatch['label'].cuda(non_blocking=True)
KeyError: 'label'
Process finished with exit code 1
I print out the minibatch and found it doesn't have the label field:
{'data': tensor([[[[-0.0116, -0.0116, -0.0116, ..., -1.6727, -1.6727, -1.6555],
[-0.0116, -0.0116, -0.0116, ..., -1.6555, -1.6727, -1.6555],
[-0.0287, -0.0116, -0.0116, ..., -1.6555, -1.6555, -1.6384],
...,
...,
[-0.5844, -0.6367, -0.6367, ..., -0.6193, -0.6193, -0.6018],
[-0.5844, -0.6193, -0.6193, ..., -0.6367, -0.6193, -0.6018],
[-0.5844, -0.5844, -0.6018, ..., -0.6367, -0.6367, -0.6193]]]]), 'fn': ['dusseldorf_000206_000019', 'dusseldorf_000144_000019', 'tubingen_000062_000019', 'hamburg_000000_089696', 'dusseldorf_000035_000019_unknown_unknown', 'erfurt_000072_000019', 'hamburg_000000_049558', 'bremen_000118_000019'], 'n': tensor([6545, 6545, 6545, 6545, 6545, 6545, 6545, 6545]), 'is_ood': tensor([False, False, False, False, False, False, False, False])}
What files should be include in the annotation files? I put the original files from cityscape and the generated labeltrainids files there. Is there anything I did wrong?
Thanks!
Thanks!