Skip to content
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

update integration #12

Merged
merged 4 commits into from
Mar 14, 2023
Merged

update integration #12

merged 4 commits into from
Mar 14, 2023

Conversation

AleksanderWWW
Copy link
Contributor

@AleksanderWWW AleksanderWWW commented Mar 13, 2023

What's changing:

  • neither neptune nor neptune-client is part of the requirements
  • integration stays compatible with both major versions of the client
  • in case neither neptune nor neptune-client is installed, an appropriate exception is raised with instructions for installation
  • refactored parameter name: smoothing_window_size -> metrics_update_freq

torchvision = "^0.14.0"
torch = { version = "^1.13.0", optional = true }
torchvision = { version = "^0.14.0", optional = true }
neptune = { version = ">=1.0.0", optional = true }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think detectron2 should also be an optional dependency. Wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not that easy, as it is only installed from GitHub repo, not PyPI and I've been having issued with adding that to poetry (that's why there is a seperate step just to install detectron2 in out CI)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

raise ValueError(f"Update freq should be greater than 0. Got {self._metrics_update_freq}.")
if not isinstance(self._metrics_update_freq, int):
raise TypeError(
f"Smoothing window size should be of type int. Got {type(self._metrics_update_freq)} instead."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metrics_update_freq should be of type int

Copy link

@kshitij12345 kshitij12345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @AleksanderWWW

@AleksanderWWW AleksanderWWW merged commit 175c895 into main Mar 14, 2023
@AleksanderWWW AleksanderWWW deleted the aw/integration_update branch March 14, 2023 10:55
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.

2 participants