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: 4 comments 2 replies
-
So far it's been found that it's due to hyperparameters not being passed into the function correctly, and the solution is as follows: |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 * 255
your values theoutput.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.Originally posted by @wgcban in #88 (comment)
Beta Was this translation helpful? Give feedback.
All reactions