Skip to content
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

我用camvid数据集来训练drn时,显示分类权重错误 #55

Open
SouthernSunset opened this issue Dec 18, 2020 · 0 comments
Open

Comments

@SouthernSunset
Copy link

python train.py --structure drn_d_22 --dataset_path /data/CamVid --cuda True
报错如下:请问我该怎么办
RuntimeError: weight tensor should be defined either for all 512 classes or no classes but got weight tensor of shape: [12] at /opt/conda/conda-bld/pytorch_1579022034529/work/aten/src/THCUNN/generic/ClassNLLCriterion.cu:42

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