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

SCOP里的cifar10的预训练模型根本不存在吧? #24

Open
NKUShaw opened this issue Sep 3, 2024 · 0 comments
Open

SCOP里的cifar10的预训练模型根本不存在吧? #24

NKUShaw opened this issue Sep 3, 2024 · 0 comments

Comments

@NKUShaw
Copy link

NKUShaw commented Sep 3, 2024

里面的resnet架构和一般的不一样,res20,res32,res44,res56,res110,如果不存在的话那代码块
if args.dataset!='imagenet': if args.arch=='resnet110': pretrain = torch.load(os.path.join(args.pretrain_path,'cifar_pretrained_nets/','resnet110.pth.tar')) elif args.arch=='resnet56': pretrain = torch.load(os.path.join(args.pretrain_path,'cifar_pretrained_nets/','resnet56.pth.tar')) elif args.arch=='resnet32': pretrain = torch.load(os.path.join(args.pretrain_path,'cifar_pretrained_nets/','resnet32.pth.tar')) elif args.arch=='resnet20': pretrain = torch.load(os.path.join(args.pretrain_path,'cifar_pretrained_nets/','resnet20.pth.tar')) net.load_state_dict(pretrain['state_dict'].state_dict())
是不是可以考虑注释掉了?

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