-
Notifications
You must be signed in to change notification settings - Fork 28
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
采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 #7
Comments
代码中有一个num_classes
…------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:17
***@***.***>;
***@***.***>;
主题: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
您好,邮件我已收到,我会尽快处理,谢谢。
|
请问1、为什么你的训练图片是三合一(原图+标注图+训练图),我这边打开train_image里面只有几张黑的标签图。
…------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:46
***@***.***>;
***@***.******@***.***>;
主题: Re: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
代码中有一个num_classes
------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:17
***@***.***>;
***@***.***>;
主题: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
请问1、为什么你的训练图片是三合一(原图+标注图+训练图),我这边打开train_image里面只有几张黑的标签图。
…------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:46
***@***.***>;
***@***.******@***.***>;
主题: Re: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
代码中有一个num_classes
------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:17
***@***.***>;
***@***.***>;
主题: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
请问这个也没有终止然后产生权重文件吧?感觉理解代码思路很好,但是他并不是完整。
…------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:46
***@***.***>;
***@***.******@***.***>;
主题: Re: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
代码中有一个num_classes
------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:17
***@***.***>;
***@***.***>;
主题: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
size mismatch for out.weight: copying a param with shape torch.Size([4, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([3, 64, 3, 3]).
size mismatch for out.bias: copying a param with shape torch.Size([4]) from checkpoint, the shape in current model is torch.Size([3]).
这个错误遇到过嘛?
…------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:46
***@***.***>;
***@***.******@***.***>;
主题: Re: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
代码中有一个num_classes
------------------ 原始邮件 ------------------
发件人: "qiaofengsheng/pytorch-UNet" ***@***.***>;
发送时间: 2022年11月2日(星期三) 下午5:17
***@***.***>;
***@***.***>;
主题: [qiaofengsheng/pytorch-UNet] 采用自己数据集,显示超出界限,目前也看不到如何修改类名?请指教 (Issue #7)
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
IndexError: Target 3 is out of bounds.
The text was updated successfully, but these errors were encountered: