-
Notifications
You must be signed in to change notification settings - Fork 7.1k
deepcopying retinanet fails #6871
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
Comments
@rohitgr7 Thanks for raising this. I think what happens is deepcopy is trying to initialize the @pmeier Any idea if we can patch the original |
hey @datumbox, thank you for your reply. this wasn't the actual use case where we got this issue. I just added a simple example to showcase the error. |
That makes sense. Could you clarify if you are interested in storing the name or the value of the param in your real use-case? Both of the following work but I'm not sure if that's what you want:
|
so, we use jsonargparse for our cli and it tries to parse the defaults of the retinanet function, which we reported in omni-us/jsonargparse#187 and got fixed on their side, but then I thought to get the end issue fixed on torchvision side. The default here is: so if deepcoping these enums is not possible, maybe change the default in the retinanet function to |
🐛 Describe the bug
Deepcoping retinanet fails
Error:
In short this fails:
Versions
The text was updated successfully, but these errors were encountered: