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

remove expect_not_an_experiment function #4

Merged
merged 1 commit into from
Jan 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/neptune_detectron2/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,11 @@
# neptune-client=0.9.0+ package structure
import neptune.new as neptune
from neptune.new.internal.utils import verify_type
from neptune.new.internal.utils.compatibility import expect_not_an_experiment

except ImportError:
# neptune-client>=1.0.0 package structure
import neptune
from neptune.internal.utils import verify_type
from neptune.internal.utils.compatibility import expect_not_an_experiment

import detectron2
from detectron2.checkpoint import Checkpointer
Expand Down Expand Up @@ -114,8 +112,6 @@ def __init__(

self.base_handler = self._run[base_namespace]

expect_not_an_experiment(self._run)

def _verify_window_size(self) -> None:
if self._window_size <= 0:
raise ValueError(f"Update freq should be greater than 0. Got {self._window_size}.")
Expand Down