-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou #18
Comments
epoch loss should not be zero, please check the tensorflow version you are using |
Thank you for your reply, I used tensorflow-gpu=2.4.0 and 2.1.0,
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月21日(星期一) 下午5:17
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
epoch loss should not be zero, please check the tensorflow version you are using
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please use tensorflow-gpu 1.15 |
Ok thank you, let me try------------------ 原始邮件 ------------------
***@***.***>
发送时间: 2021年6月21日(星期一) 下午5:34
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
|
Hello,sir, I just tried the 1.15 version of tensorflow, but nothing has changed. The global step and epoch loss are still 0,Do you think there might be something wrong?Here are two pictures you can see
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月21日(星期一) 下午5:34
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
Please use tensorflow-gpu 1.15
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I tried your newly uploaded code, and a new problem appeared, as shown in the figure
Do you know what's going on,thankyou
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月21日(星期一) 下午5:34
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
Please use tensorflow-gpu 1.15
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Set |
Hello, I still haven’t solved the loss problem. I checked the picture on tensorboard. I don’t know where the problem is. I hope you can help me.Is it because loss is always 0, so there are only graphs in tensorboard, no other data charts
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月22日(星期二) 上午10:27
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
Set "ImageLog": true, in config.json, start tensorboard to check if the images are loaded properly
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please check if your data is loaded properly |
Is it convenient to ask about the specific form of your data, I am using 512x512x22 MRI images now
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月23日(星期三) 上午10:05
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
Please check if your data is loaded properly
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I tried your updated program, this error occurred, may I ask what is wrong with the data set
…------------------ 原始邮件 ------------------
发件人: "jackyko1991/vnet-tensorflow" ***@***.***>;
发送时间: 2021年6月23日(星期三) 上午10:05
***@***.***>;
***@***.******@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
Please check if your data is loaded properly
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
1:The first is why some slices are discarded when reading slices, as shown in the program
2:The second question is loss. When using mixed loss, why the parameter alpha only constrains one of the losses, and when alpha=1, it means whether this parameter is redundant
Hope to hear from you, thank you
|
Thank you for your guidance, so do I need to adjust the alpha by myself now to get the best results? I will try my best。In addition, I have another question about the weight in weighted_sorensen loss. You set [0.01,0.1]. I don’t understand how weight affects the calculation, so I don’t know how to adjust it. I hope you can help me answer it, thank you
…------------------ 原始邮件 ------------------
发件人: "Ka ***@***.***>;
发送时间: 2021年9月13日(星期一) 上午10:36
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [jackyko1991/vnet-tensorflow] hi ,tThank you for sharing. Now I have some problems and want to ask you. The code runs to this step, but I don’t know where the problem is. Can you explain it to me, thank youhanksyou (#18)
1:The first is why some slices are discarded when reading slices, as shown in the program 2:The second question is loss. When using mixed loss, why the parameter alpha only constrains one of the losses, and when alpha=1, it means whether this parameter is redundant Hope to hear from you, thank you
If you are specifying 2D segmentation cases, the occurence rate of empty label slice may affect training results. I have set a probability to discard part of the slices to gaurantee the training slices contains certain size of segmentation labels. E.g. A CT scan may only contain few pixels across few slices out of thousands of scanning images, the training will be easily dominated by zero labels as you hardly let the model access to pixels with desired regions.
The regularization only need to constrain on cross entropy loss as DICE loss is bounded in [0,1]. Alpha is to restrict the percentage of contribution during loss optimization. This factor is subjected to your dataset, setting alpha = 1 is an arbitary choice. To test regularization parameter, you may conduct trial to obtain testing score across different alpha values, e.g.:
This plot indicates best model performance with alpha = 0.01562, whereas a robust alogrithm/ dataset would have less disperse test scores:
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
@liuzhiwei1997 You need to adjust alpha and weight to get optimal results. You may observe DICE and cross entropy loss in tensorboard to check if they are in samiliar order of magnitude. For class weight in weighted sorensen loss, it is advise to count 0 labeled segmentation pixels (background) to actual segmentation labels. Usually 0 to 1 label ratio can up to thousands to one. For quick hyperparameter tuning you may check Guild AI |
You can see that my global step is always 0, and the loss is also 0
The text was updated successfully, but these errors were encountered: