Skip to content

refactor: migrate from setup.py to pyproject.toml and reorganize tools #61

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mathiasesn
Copy link

This pull request includes several improvements and refactorings across multiple files in the project. The changes focus on adding a new build system configuration, improving exception handling, and enhancing code readability through consistent formatting.

New Build System Configuration:

  • pyproject.toml: Added build system configuration using hatchling and specified project metadata, dependencies, and scripts.

Exception Handling Improvements:

  • semseg/__init__.py: Improved exception handling in show_backbones by specifying Exception in the except block.
  • semseg/tools/export.py: Enhanced exception handling in export_coreml function by catching Exception instead of a bare except.

Code Readability Enhancements:

New Benchmarking Tool:

  • semseg/tools/benchmark.py: Added a new script for benchmarking models, including FLOP count and inference time measurements.

File Renaming:

  • tools/export.py to semseg/tools/export.py: Renamed the file to follow the project directory structure and updated import statements accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant