Repository navigation
While multiclass, ValueError: cannot reshape array of size 10 into shape (2,2)@wangqingl If you have 10 classes you need to write separate visualizer to visualize all the classes. Since, you removed pred * 255 your values the output.png will be between 0 and 9 - hence you see dark (or black) output. You need to write the visualizer such that it will assign different color values for each predicted output class.
#94
Replies: 5 comments 2 replies
|
Summary of the changes needed to modify binary change detection to multi-class change detection: (1) run_ChangeFormer_cj.sh (2) models/networks.py (3) models/basic_model.py (4) models/trainer.py |
|
@Programming-Music Thank you for summarizing all these steps! It will be really helpful for those who wish to use ChangeFormer for multi-class change detection. |
|
When using ChangeFormer for multi-class change detection, I made the above adjustments to the model; however, the model is training with G_loss decreasing, but the metrics are all zero. I've tried turning down the learning rate, but I still can't fix the problem. Is there any potentially effective solutions?@wgcban |
|
Hi, the pretrained_changeformer.pt Dropbox link seems expired. Could you please re-upload it? |




Uh oh!
There was an error while loading. Please reload this page.
When I made modifications according to the above method, the following error occurred during training. How to solve it? @wangqingl If you have 10 classes you need to write separate visualizer to visualize all the classes. Since, you removed
pred * 255your values theoutput.pngwill be between 0 and 9 - hence you see dark (or black) output. You need to write the visualizer such that it will assign different color values for each predicted output class.Originally posted by @wgcban in #88 (comment)
All reactions