Skip to content

resnet分类模型无法指定分类数量 #115

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

Open
Qianlu5110 opened this issue Nov 17, 2021 · 0 comments
Open

resnet分类模型无法指定分类数量 #115

Qianlu5110 opened this issue Nov 17, 2021 · 0 comments

Comments

@Qianlu5110
Copy link

使用 classification resnet进行分类苹果/橘子训练时,指定分类数量为2时,无法训练

Models/official/vision/classification/resnet/model.py
resnet50只支持1000分类数据集训练,我只创建2分类数据时,修改num_classes=2时,无法正常完成训练

任务描述

数据集格式是这样的:
/path/to/imagenet
train
apple
xxx.jpg
...
orangle
xxx.jpg
...
...
val
apple
xxx.jpg
...
orangle
xxx.jpg
...

目标

由于我时初学,在经过自己各种修改后,仍然无法解决,需要帮忙。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant