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

Add test mode to eval CLI #2926

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

Conversation

gchhablani
Copy link
Contributor

@gchhablani gchhablani commented Feb 18, 2024

This PR adds test mode to ns-eval CLI.
With this, we can evaluate the model on custom split by specifying test_mode.

If this PR looks okay, I can add relevant docstrings and add this for all datamanagers.

Also, I have added train test mode, where the train data is loaded, in case people want to evaluate on the train set.

Currently, this won't support custom files (not among train/test/val), but this would be nice to have that later.

@@ -84,7 +84,7 @@ def __init__(
self,
config: FullImageDatamanagerConfig,
device: Union[torch.device, str] = "cpu",
test_mode: Literal["test", "val", "inference"] = "val",
test_mode: Literal["test", "val", "inference", "train"] = "val",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should also be added in base_datamanager.py

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.

None yet

2 participants