-
Notifications
You must be signed in to change notification settings - Fork 80
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
Trouble with model function call in examples/main.py for CIFAR10 #82
Comments
Hi, thanks for bringing this up. There is an error in the code. I traced the issue with There's a few pretty trivial fixes though. The easiest imo is changing the signature in the call to the main.py file. If you noticed above, you'll see that there are hardcoded values in the model = models.__dict__[args.model](pretrained=False, progress=False,
img_size=img_size,
num_classes=num_classes,
positional_embedding=args.positional_embedding,
patch_size=args.patch_size) Unfortunately, this error doesn't look to be in isolation. I think it is best to call the main CCT class or the constructor function _cct Sorry about this, we will resolve this issue. |
@alihassanijr I believe this was introduced in 5b21843. What was the reasoning behind this? Same issue is going to exist in the evaluate example. I'm not sure what the best solution is, but I think all the model registries are poorly constructed. I think the default values should be placed in the function signature, and not in the function call. This will avoid the redundant issues and allow a bit more flexibility if someone chooses to change an argument. But this means touching all Was there some better logic that you were trying to implement that I'm missing or was this a mistake? |
@stevenwalton Thanks for looking into this. |
It seems the models function call in examples/main.py is failing with the error message:
I'm having trouble identifying how the function parameters need to be changed.
Here's the function call inside the main.py file:
I'm calling the examples/main.py script with the following python call:
Any suggestions on how to fix this?
The text was updated successfully, but these errors were encountered: