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

KeyError Problem #4

Open
ZhouL2001 opened this issue Dec 17, 2024 · 3 comments
Open

KeyError Problem #4

ZhouL2001 opened this issue Dec 17, 2024 · 3 comments

Comments

@ZhouL2001
Copy link

Dear author, thank you for your good work. I tried to re-train your network, but raise a key error:
KeyError: "Dataset 'polyp_hard_unseen_validate' is not registered! Available datasets are: coco_2014_train,...
Can you provide some solutions to solve the problem?
Thank you very much.

@bio-mlhui
Copy link
Owner

bio-mlhui commented Dec 18, 2024

Have you set the env variable export CURRENT_TASK=VIS (Video Instance Segmentation) before executing main? This line

if os.getenv('CURRENT_TASK') == 'VIS':
should import the "polyp_hard_unseen_validate" dataset.

Feel free to let me know if you have other questions!

@ZhouL2001
Copy link
Author

Thank you very much. If I want to train this model on my own datasets, can you provide some instructions.

@bio-mlhui
Copy link
Owner

bio-mlhui commented Dec 18, 2024

Assume you are doing video semantic segmentation.

  1. Make sure the data storage format be the same as:
-- Frame
    -- vid1
        -- img file
-- GT
    -- vid1
        -- mask file

as introduced in https://github.com/bio-mlhui/LGRNet/blob/main/assets/DATA.md

  1. register this dataset under data_schedule/vis/ similar to https://github.com/bio-mlhui/LGRNet/blob/main/data_schedule/vis/polyp/polyp_dataset.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

No branches or pull requests

2 participants