Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

UnboundLocalError: local variable 'model' referenced before assignment #1995

@ezyang

Description

@ezyang

🐛 Describe the bug

If you pass an unrecognized model name to --only in timm_models.py you will get an opaque error message.

Error logs

No response

Minified repro

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions