ASLNet icon indicating copy to clipboard operation
ASLNet copied to clipboard

代码与文中的描述有冲突

Open epoch8260 opened this issue 3 years ago • 15 comments

且复现后达不到文中的效果,请提供训练的checkpoint

epoch8260 avatar May 13 '22 09:05 epoch8260

Hi, There are two versions of the segmentation network. ED_FCN is a basic encoder-decoder FCN, while FCN_SR is the described FCN with shape refinement modules. I do not think there are conflicts with the descriptions in the paper.

DingLei14 avatar May 13 '22 14:05 DingLei14

能否开源训练的checkpoint呀,实在复现不出来

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月13日 22:35 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ggsDing/ASLNet] 代码与文中的描述有冲突 (Issue #3) |

Hi, There are two versions of the segmentation network. ED_FCN is a basic encoder-decoder FCN, while FCN_SR is the described FCN with shape refinement modules. I do not think there are conflicts with the descriptions in the paper.

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

epoch8260 avatar May 13 '22 14:05 epoch8260

let me check whether I still have them on the servers.

DingLei14 avatar May 13 '22 14:05 DingLei14

我复现了很多次,加判别器基本上没有提升,甚至个别网络还出现精度下降的情况。麻烦作者

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月13日 22:46 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ggsDing/ASLNet] 代码与文中的描述有冲突 (Issue #3) |

let me check whether I still have them on the servers.

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

epoch8260 avatar May 13 '22 14:05 epoch8260

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

DingLei14 avatar May 13 '22 16:05 DingLei14

Note that the evaluation codes in this repository are not very rigorous, as the prediction is performed on cropped images. It is suggested to first stitch the cropped masks, and then calculate the final accuracy.

DingLei14 avatar May 13 '22 17:05 DingLei14

谢谢大佬,祝大佬毕业顺利工作顺利

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月14日 00:49 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ggsDing/ASLNet] 代码与文中的描述有冲突 (Issue #3) |

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately I am currently graduated and do not have enough device, so this could take time. checkpoint

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

epoch8260 avatar May 23 '22 00:05 epoch8260

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................

And, which dataset is used to train the checkpoint file?

jerrywyn avatar Jul 28 '22 09:07 jerrywyn

谢谢大佬,祝大佬毕业顺利工作顺利 ---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年05月14日 00:49 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ggsDing/ASLNet] 代码与文中的描述有冲突 (Issue #3) | I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately I am currently graduated and do not have enough device, so this could take time. checkpoint — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

大佬,在复现过程中,遇到了一些问题,方便的话,可以交流一下嘛

Royal-kev avatar Aug 04 '22 07:08 Royal-kev

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................

And, which dataset is used to train the checkpoint file?

Please change the name of modules 'SR->DC' in the model file and the checkpoint will work. This was trained on the Inria Dataset.

DingLei14 avatar Aug 15 '22 08:08 DingLei14

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................ And, which dataset is used to train the checkpoint file?

Please change the name of modules 'SR->DC' in the model file and the checkpoint will work. This was trained on the DeepGlobe Dataset.

I tried to use your code to train on the Mas dataset and AIRS (WHU Building) dataset and found that discriminatior only degrades the performance, why is that? My configuration is crop_size=512, batch_size=4.

jerrywyn avatar Aug 15 '22 08:08 jerrywyn

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................ And, which dataset is used to train the checkpoint file?

Please change the name of modules 'SR->DC' in the model file and the checkpoint will work. This was trained on the DeepGlobe Dataset.

I tried to use your code to train on the Mas dataset and AIRS (WHU Building) dataset and found that discriminatior only degrades the performance, why is that? My configuration is crop_size=512, batch_size=4.

Hi, I ran the codes again and confirmed that steady improvements are made on the MAS dataset. Please check the uploaded training script for the MAS dataset in the main directory. It is recommended to remove 'conv3' in the discriminator before training, since the resolution of MAS is lower.

DingLei14 avatar Aug 21 '22 05:08 DingLei14

对于MAS把Discriminator里面的conv3删掉之后,效果反而更差了,这是为什么

sunrl1 avatar Oct 24 '23 04:10 sunrl1

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................ And, which dataset is used to train the checkpoint file?

Please change the name of modules 'SR->DC' in the model file and the checkpoint will work. This was trained on the DeepGlobe Dataset.

I tried to use your code to train on the Mas dataset and AIRS (WHU Building) dataset and found that discriminatior only degrades the performance, why is that? My configuration is crop_size=512, batch_size=4.

我在尝试复现代码时遇到了和您相同的问题,并且我已经按照我所理解的、你在issue中所描述的解决步骤尝试,但遗憾的是,我并未能成功。我想这可能是因为有些关键信息或者步骤我可能未能完全理解或注意到,我想寻求您的帮助,能否请您分享您解决问题的具体步骤或者别的关键点?如果方便的话,也期待您能给出关于代码或环境设置部分的更多信息。下面是我导入作者上面发的模型时的报错: File "D:\Anaconda\envs\ai\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for FCN_SR: Missing key(s) in state_dict: "DC.3.conv1.weight", "DC.3.bn1.weight", "DC.3.bn1.bias", "DC.3.bn1.running_mean", "DC.3.bn1.running_var", "DC.3.conv2.weight", "DC.3.bn2.weight", "DC.3.bn2.bias", "DC.3.bn2.running_mean", "DC.3.bn2.running_var", "DC.4.conv.weight", "DC.4.p_conv.weight", "DC.4.p_conv.bias", "DC.4.m_conv.weight", "DC.4.m_conv.bias", "DC.5.weight", "DC.5.bias", "DC.5.running_mean", "DC.5.running_var". Unexpected key(s) in state_dict: "DC.3.conv.weight", "DC.3.p_conv.weight", "DC.3.p_conv.bias", "DC.3.m_conv.weight", "DC.3.m_conv.bias", "DC.4.weight", "DC.4.bias", "DC.4.running_mean", "DC.4.running_var", "DC.4.num_batches_tracked".

Meicarl avatar Nov 21 '23 14:11 Meicarl

您好:   我在复现原作者代码的时候也和你遇到了同样的问题,在那个分辨率较低的数据集上没有得到好的提升效果,反而变得更差了。所以也很抱歉,我不能解决你的问题!

希望原作者能回复你! 祝好

孙若兰 @.***

 

------------------ 原始邮件 ------------------ 发件人: "ggsDing/ASLNet" @.>; 发送时间: 2023年11月21日(星期二) 晚上10:01 @.>; @.@.>; 主题: Re: [ggsDing/ASLNet] 代码与文中的描述有冲突 (Issue #3)

I just uploaded a checkpoint of the FCN+SR model (see link below). This is not the specific saved file associated with the results in the paper, but the accuracy should be close. I will also check if the results can be reproduced with the released codes. Unfortunately, I am already graduated and do not have enough devices, so this could take time. checkpoint link

hi, are you sure you have uploaded the right checkpoint file? It's not correspondent to the code you provided. The error message is: Missing key(s) in state_dict: "SR.0.weight"............. Unexpected key(s) in state_dict: "DC.0.weight"................ And, which dataset is used to train the checkpoint file?

Please change the name of modules 'SR->DC' in the model file and the checkpoint will work. This was trained on the DeepGlobe Dataset.

I tried to use your code to train on the Mas dataset and AIRS (WHU Building) dataset and found that discriminatior only degrades the performance, why is that? My configuration is crop_size=512, batch_size=4.

我在尝试复现代码时遇到了和您相同的问题,并且我已经按照我所理解的、你在issue中所描述的解决步骤尝试,但遗憾的是,我并未能成功。我想这可能是因为有些关键信息或者步骤我可能未能完全理解或注意到,我想寻求您的帮助,能否请您分享您解决问题的具体步骤或者别的关键点?如果方便的话,也期待您能给出关于代码或环境设置部分的更多信息。下面是我导入作者上面发的模型时的报错: File "D:\Anaconda\envs\ai\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for FCN_SR: Missing key(s) in state_dict: "DC.3.conv1.weight", "DC.3.bn1.weight", "DC.3.bn1.bias", "DC.3.bn1.running_mean", "DC.3.bn1.running_var", "DC.3.conv2.weight", "DC.3.bn2.weight", "DC.3.bn2.bias", "DC.3.bn2.running_mean", "DC.3.bn2.running_var", "DC.4.conv.weight", "DC.4.p_conv.weight", "DC.4.p_conv.bias", "DC.4.m_conv.weight", "DC.4.m_conv.bias", "DC.5.weight", "DC.5.bias", "DC.5.running_mean", "DC.5.running_var". Unexpected key(s) in state_dict: "DC.3.conv.weight", "DC.3.p_conv.weight", "DC.3.p_conv.bias", "DC.3.m_conv.weight", "DC.3.m_conv.bias", "DC.4.weight", "DC.4.bias", "DC.4.running_mean", "DC.4.running_var", "DC.4.num_batches_tracked".

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

sunrl1 avatar Nov 24 '23 02:11 sunrl1