Open zhanzf opened 3 months ago
I had the same problem, is it solved now?
When @likyoo remind to confirm the path of model correct in #119 . I do the following change to the second command as below:
# Load models into memory
inferencer = OpenCDInferencer(model='changer_r18_levir_workdir/changer_ex_r18_512x512_40k_levircd.py', weights='changer_r18_levir_workdir/best_mIoU_iter_40000.pth', classes=('unchanged', 'changed'), palette=[[0, 0, 0], [255, 255, 255]])
The model and weight path from the train below:
python tools/train.py configs/changer/changer_ex_r18_512x512_40k_levircd.py --work-dir ./changer_r18_levir_workdir
Then the above problem been solved.
https://github.com/likyoo/open-cd/blob/main/docs/inference.md
When I try to test the inference with existing models, I encouter the following problems. I want to know how to resovle this problem. Thanks a lot.