I2U-Net icon indicating copy to clipboard operation
I2U-Net copied to clipboard

Training problem

Open lsh-med opened this issue 1 year ago • 11 comments

Dear Author: I use your model for polyp segmentation,but during the training, the loss don't change, which makes me confused.

lsh-med avatar Jun 19 '24 02:06 lsh-med

亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。

Hi, I'm in the same situation, if you got it resolved can you tell me how?

ifyouarelihua avatar Jun 27 '24 03:06 ifyouarelihua

the I2U-Net model's output use the sigmoid() finally. If your loss also apply sigmoid, you can delete the sigmoid() operation in the I2U-Net model's code.When I delete, it works.

------------------ 原始邮件 ------------------ 发件人: "duweidai/I2U-Net" @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 @.>; @.@.>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1)

亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。

Hi, I'm in the same situation, if you got it resolved can you tell me how?

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

lsh-med avatar Jun 27 '24 03:06 lsh-med

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ------------------ 原始邮件 ------------------ 发件人: "duweidai/I2U-Net" @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 @.>; @.@.>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。 Hi, I'm in the same situation, if you got it resolved can you tell me how? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

After I removed the sigmod() as you said, the loss values converged normally,thank you very much for your prompt reply. 666!

ifyouarelihua avatar Jun 27 '24 03:06 ifyouarelihua

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ------------------ 原始邮件 ------------------ 发件人: "duweidai/I2U-Net" @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 _@**._>; _@.@._>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。 Hi, I'm in the same situation, if you got it resolved can you tell me how? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: _@_.*>

After I removed the sigmod() as you said, the loss values converged normally,thank you very much for your prompt reply. 666!

请问一下,您在复现过程中使用的环境是多少呀,我看论文中没有给出这个项目所需的环境

wenwen901 avatar Jun 27 '24 13:06 wenwen901

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ------------------ 原始邮件 ------------------ 发件人: "duweidai/I2U-Net" @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 _@**._>; _@.@._>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。 Hi, I'm in the same situation, if you got it resolved can you tell me how? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: _@_.*>

After I removed the sigmod() as you said, the loss values converged normally,thank you very much for your prompt reply. 666!

请问一下,您在复现过程中使用的环境是多少呀,我看论文中没有给出这个项目所需的环境

我复现的时候CUDA版本为12.2,torch为2.2.1,python=3.9 我在复现的时候并没有完整地将整个项目进行复现,只是选用了作者所提供的model部分,其余训练及测试框架及其超参数部分采用的是我自己的内容。

ifyouarelihua avatar Jun 28 '24 01:06 ifyouarelihua

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ------------------ 原始邮件 ------------------ 发件人: "duweidai/I2U-Net" @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 _@**._>; _@.@._>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。 Hi, I'm in the same situation, if you got it resolved can you tell me how? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: _@_.*>

After I removed the sigmod() as you said, the loss values converged normally,thank you very much for your prompt reply. 666!

请问一下,您在复现过程中使用的环境是多少呀,我看论文中没有给出这个项目所需的环境

我复现的时候CUDA版本为12.2,torch为2.2.1,python=3.9 我在复现的时候并没有完整地将整个项目进行复现,只是选用了作者所提供的model部分,其余训练及测试框架及其超参数部分采用的是我自己的内容。

好的感谢您

wenwen901 avatar Jun 28 '24 05:06 wenwen901

可以提供您的测试结果吗,我发现基于该代码的训练polyp数据集分割的结果与文中的结果差别有点大

juingzhou avatar Jul 15 '24 13:07 juingzhou

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ... ------------------ 原始邮件 ------------------ 发件人: “duweidai/I2U-Net” @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 _@**._>; _@.@>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。嗨,我遇到了同样的情况,如果你解决了它,你能告诉我怎么做吗?— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您编写了该线程。消息 ID:@_。*>

按照你说的去掉 sigmod() 后,损失值正常收敛,非常感谢你的及时回复。666!

请问一下,您在复现过程中使用的环境是多少呀,我看论文中没有给出这个项目所需的环境

我复现的时候CUDA版本为12.2,torch为2.2.1,python=3.9 我在复现的时候并没有完整地将整个项目进行复现,只是选用了作者所提供的model部分,其余训练及测试框架及其超参数部分采用的是我自己的内容。

你好,同学。想请教你一下,你选用了model这部分时,你自己的数据集图片尺度大小是多少?我现在的可视化总是报错,无法进行测试结果的可视化,我想我是不是应该换一下训练及测试框架。真心希望你能在百忙之中看到我的消息,非常渴望得到你的回复

416lucky avatar Sep 20 '24 03:09 416lucky

你好,我的输入图片大小未256*256,使用的训练及测试框架与transunet一致,只对小部分进行了改进。

---Original--- From: @.> Date: Fri, Sep 20, 2024 11:35 AM To: @.>; Cc: @.@.>; Subject: Re: [duweidai/I2U-Net] Training problem (Issue #1)

I2U-Net 模型的输出最后使用 sigmoid()。如果您的损失也应用了 sigmoid,您可以在 I2U-Net 模型的代码中删除 sigmoid() 操作。当我删除时,它起作用了。 ... ------------------ 原始邮件 ------------------ 发件人: “duweidai/I2U-Net” @.>; 发送时间: 2024年6月27日(星期四) 中午11:05 @**.>; @.**@。>; 主题: Re: [duweidai/I2U-Net] Training problem (Issue #1) 亲爱的作者:我使用您的模型进行息肉分割,但是在训练过程中,损失没有改变,这让我感到困惑。嗨,我遇到了同样的情况,如果你解决了它,你能告诉我怎么做吗?— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您编写了该线程。消息 ID:@_。>

按照你说的去掉 sigmod() 后,损失值正常收敛,非常感谢你的及时回复。666!

请问一下,您在复现过程中使用的环境是多少呀,我看论文中没有给出这个项目所需的环境

我复现的时候CUDA版本为12.2,torch为2.2.1,python=3.9 我在复现的时候并没有完整地将整个项目进行复现,只是选用了作者所提供的model部分,其余训练及测试框架及其超参数部分采用的是我自己的内容。

你好,同学。想请教你一下,你选用了model这部分时,你自己的数据集图片尺度大小是多少?我现在的可视化总是报错,无法进行测试结果的可视化,我想我是不是应该换一下训练及测试框架。真心希望你能在百忙之中看到我的消息,非常渴望得到你的回复

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

ifyouarelihua avatar Sep 20 '24 04:09 ifyouarelihua

我下载了ISIC2018和PH2的数据集之后,只对data_preprocess.py和train_and_test_isic.py两个文件中的数据集路径进行了修改,请问为什么训练时Dice一直为0,而Loss在训练过程中会变为Nan呢?恳请大佬们为我解惑

Jack-yiwang avatar Nov 12 '24 12:11 Jack-yiwang

我下载了ISIC2018和PH2的数据集之后,只对data_preprocess.py和train_and_test_isic.py两个文件中的数据集路径进行了修改,请问为什么训练时Dice一直为0,而Loss在训练过程中会变为Nan呢?恳请大佬们为我解惑

解决了吗?

yyydfff avatar Mar 01 '25 11:03 yyydfff