JSONDecodeError when training swinir
susan-sun1999 opened this issue · comments
Hi @JingyunLiang I use the training code main_train_psnr.py in KAIR and I only change the dataroot and other necessary stuff. The training command is python main_train_psnr.py --opt options/swinir/train_swinir_sr_classical.json. And my environment is CUDA10.1+Pytorch1.7.1+Python3.7. When training the swinir model, I got this error:
But I still got the error over and over again. Could you please provide some suggestions? Thanks a lot.
According to the error, it's like there is something wrong in decoding the json file. Please check Line 34 in
Thanks a lot. I re-check the json file and I found an extra space in line34. Even though I didn't understand why this space would make such a difference but I'm still glad that it could work. Again, thanks a lot for your kind help.