Skip to content

Commit

Permalink
experimenting with error improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Mar 5, 2024
1 parent 9d76f3f commit e97f1c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ packaging >17.1
torch >=1.10.0, <=2.2.1
typing-extensions; python_version < '3.9'
lightning-utilities >=0.8.0, <0.11.0
pretty-errors ==1.2.25
3 changes: 3 additions & 0 deletions src/torchmetrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
_PACKAGE_ROOT = os.path.dirname(__file__)
_PROJECT_ROOT = os.path.dirname(_PACKAGE_ROOT)

if package_available("pretty_errors"):
import pretty_errors # noqa: F401

if package_available("PIL"):
import PIL

Expand Down

0 comments on commit e97f1c6

Please sign in to comment.