Open heikeyuhuajia opened 1 week ago
Hi @heikeyuhuajia ,
Thank you so much for your question. We have not encountered this problem. I think it may be out of this part of the assignment.
preds_scd = (preds_A - 1) * 6 + preds_B preds_scd[change_mask == 0] = 0 labels_scd = (labels_A - 1) * 6 + labels_B labels_scd[labels_cd == 0] = 0
When the network is adequately trained at the begining before the first validation, it should not encounter this problem. So I suggest you just assign the negative number to 0. This will solve the problem.
Best,
Thank you very much for your answer, during the validation process, the code had the part you mentioned:
preds_scd = (preds_A - 1) * 6 + preds_B
preds_scd[change_mask == 0] = 0
labels_scd = (labels_A - 1) * 6 + labels_B
labels_scd[labels_cd == 0] = 0
for (pred_scd, label_scd) in zip(preds_scd, labels_scd):
acc_A, valid_sum_A = accuracy(pred_scd, label_scd)
preds_all.append(pred_scd)
labels_all.append(label_scd)
acc = acc_A
acc_meter.update(acc)
kappa_n0, Fscd, IoU_mean, Sek = SCDD_eval_all(preds_all, labels_all, 37)
Unfortunately, there is still no solution to this problem, I hope you keep this issue and when I finish my recent paper I will come back and look into this again, thank you for your patience!
Hi @heikeyuhuajia ,
Unfortunately, there is still no solution to this problem
As I said, [you can just assign the negative number to 0. This will solve the problem].
Best,
Hi, I'm having the same problem as issue 45 when I'm working on an SCD task, but I don't see a solution. Firstly, the problem arises on the premise that:
train_MambaSCD.py is used for training, and the programme proceeds to
There is a
problem.
I debugged and found that in
{-1} in uniqueset at some point in the loop. ![44981728526549 pic](https://github.com/user-attachments/assets/cfb96974-a08c-4b8a-919c-445c6786f2ce)
This question has puzzled me for a long time, I hope you can solve my problem in your free time, thank you very much!