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

coco stuff #1

Closed
kevinwei0410 opened this issue Dec 24, 2021 · 3 comments
Closed

coco stuff #1

kevinwei0410 opened this issue Dec 24, 2021 · 3 comments

Comments

@kevinwei0410
Copy link

hi, Im student in taiwan

Does the model not support for "coco-stuff" yet ?
the file : SenFormer\mmseg\core\evaluation\classesnames
which only have three different types of dataset,

dataset_aliases = {
'cityscapes': ['cityscapes'],
'ade': ['ade', 'ade20k'],
'voc': ['voc', 'pascal_voc', 'voc12', 'voc12aug']
}

...?

@WalBouss
Copy link
Owner

Hi,
The repository does support COCO-Stuff dataset. You can train SenFormer from scratch on COCO-Stuff or download pretrained weights from this repo and evaluate on COCO-stuff by running this command:

python tools/test.pysenformer_configs/senformer/coco-stuff10k/senformer_fpnt_r50_512x512_80k_coco.py /path/to/checkpoint_file

But you are right the class_names.py did not contain coco's classes and palette.
However, since it's only used in image_demo.py, it does not affect the rest of the repo.
Anyway, I have updated the affected files and image_demo.py should now work on COCO-Stuff too:

python demo/image_demo.py ${IMAGE_FILE} ${CONFIG_FILE} ${CHECKPOINT_FILE} --classes=coco --palette=coco

Hope that helps

@kevinwei0410
Copy link
Author

hi,
Many thanks for your reply and the tutorials.

I run your model to do semantic segmentation on my custom data set, and the performance is impressive.
Therefore, I can get wonderful training data. It help me smoother to develop my final project.
In the final report, I will attach the link of your github and introduce how the training data was generated.

I hope everything goes well with your work and research.
best regards,

@WalBouss
Copy link
Owner

Glad it helped!

Good luck with your project, and feel free to reach out if you encounter additional complications with the code.
Best,

@WalBouss WalBouss closed this as completed Jan 4, 2022
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