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

AssertionError in eval.py #39

Open
RinuJoseph opened this issue Nov 17, 2024 · 4 comments
Open

AssertionError in eval.py #39

RinuJoseph opened this issue Nov 17, 2024 · 4 comments

Comments

@RinuJoseph
Copy link

Screenshot 2024-11-16 at 7 40 37 PM When running the eval.py script for evaluation using the provided command, I encounter an AssertionError. It seems related to the transform parameter in the dataset initialization. This happens only when I use sam2 model_type. It works fine for "ori" model_type

torchrun --standalone --nproc_per_node=2 eval.py
    --version YxZhang/evf-sam2
    --dataset_dir ./dataset
    --val_dataset "refcoco|unc|val"
    --model_type sam2

@CoderZhangYx
Copy link
Collaborator

edit eval.py:
addfrom utils.dataset import Resize
and add transfrom=ResizeLongestSide(1024) if args.model_type=="ori" else Resize(1024) at

EVF-SAM/eval.py

Lines 110 to 111 in 0b3bc4c

model_type=args.model_type
)

Sorry for our carelessness‌.

@RinuJoseph
Copy link
Author

Thank you for the response. One question: what version should be used for model_type "effi"?

@CoderZhangYx
Copy link
Collaborator

It's EVF-SAM based on Efficient-SAM. But we haven't released the checkpoint.

@RinuJoseph
Copy link
Author

I see. Thank you for clarifying

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

No branches or pull requests

2 participants