llu025 / Heterogeneous_CD

This repository contains the software developed for the project of Heterogeneous Change Detection in Remote Sensing Images.
107 stars 39 forks source link

cGAN.py file in the Code-Aligned_Autoencoders project doesn't work properly #16

Closed kamen-kkr closed 9 months ago

kamen-kkr commented 1 year ago

Greetings! Thank you very much for your contribution to the various algorithms in the open source Heterogeneous_CD project! However, the cGAN.py file in the Code-Aligned_Autoencoders project does not run properly to obtain results. For example, the California dataset was used as requested, and when the cGAN.py file is run, a dimensionality inconsistency occurs at the 12th epoch of training, as shown below: image The same situation occurs when using multiple other datasets. I would like to express my thanks again and hope to get your reply and answer!😀

llu025 commented 1 year ago

Hello,

from the screenshot you sent me I cannot really understand much of what is going on. However, I noticed that the error happens at epoch 12. This means that at epoch 11 the if statement at this line was triggered and the calculation of a new Pu is computed. This is clearly leading to a wrong result, since Pu has a wrong shape at epoch 12 and raises the error printed in your screenshot.

Can you provide more information? For example, can you check what is the dimensionality of Pu after it is computed at epoch 11?

llu025 commented 9 months ago

Hello @kamen-kkr, did you finally manage to work things out? If this issue will stay inactive for another 2 months, I will close it.

kamen-kkr commented 9 months ago

Yes, I've solved this problem. I am very sorry that I did not reply in time after solving the problem, thank you for your attention!

At 2024-02-27 19:31:01, "Luigi Tommaso Luppino" @.***> wrote:

Hello @kamen-kkr, did you finally manage to work things out? If this issue will stay inactive for another 2 months, I will close it.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>