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
'NFNet' object has no attribute 'variant' #10
Comments
Hi! As mentioned by @prateekkrjain in #1, this is an issue due to having parameter 'variant' used before assignment within the function definition. You can refer to the fixed rep here: https://github.com/prateekkrjain/nfnets-keras |
How exactly can I use the fixed rep? |
Well, if that's the case, |
I have the some problem.. |
@joonjeon I tried your solution, it still gives the same error |
Buggy, untested release ! Steve |
Hello Sir,
I am trying to use NFNET model, but I am encountering, the aforementioned error.
Code:
Error:
AttributeError: 'NFNet' object has no attribute 'variant'
I believe The problem is in : https://github.com/ypeleg/nfnets-keras/blob/master/nfnets_keras/nfnet.py
The above said line (line :: 89 block_params = self.variant_dict[self.variant]) should be after line 103(self.group_pattern = block_params.get('group_width', [128] * 4)). So the self.variant used in line 89 will be declared before it is used.
Thank you!
The text was updated successfully, but these errors were encountered: