facebookresearch / ClassyVision

An end-to-end PyTorch framework for image and video classification
https://classyvision.ai
MIT License
1.59k stars 278 forks source link

trace duplicate registrations #694

Closed bottler closed 3 years ago

bottler commented 3 years ago

While using ClassyVision, I was getting a bit confused as to how duplicate registrations were occurring. It turned out to be a consequence of the way a test harness of a downstream project did imports. I have a sense others may struggle with understanding such error messages about duplicates, too. In this change, I add full tracebacks of the original registration to the errors, which is very verbose but potentially useful.

facebook-github-bot commented 3 years ago

This pull request was exported from Phabricator. Differential Revision: D26074256

facebook-github-bot commented 3 years ago

This pull request was exported from Phabricator. Differential Revision: D26074256

facebook-github-bot commented 3 years ago

This pull request was exported from Phabricator. Differential Revision: D26074256