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

Visual result output for KMaX-DeepLab model #148

Open
Kathy-Bai opened this issue Nov 7, 2022 · 2 comments
Open

Visual result output for KMaX-DeepLab model #148

Kathy-Bai opened this issue Nov 7, 2022 · 2 comments

Comments

@Kathy-Bai
Copy link

For the KMaX-DeepLab model, are there detailed steps to evaluate and test model after training the model? How to output visual results using COCO data sets? I hope someone can help me with that. Thank you for your kindness.

@sonukiller
Copy link

Hi,
Use this command for evaluation:

python trainer/train.py
--config_file={textproto_file_path}
--mode="eval"
--model_dir={dir_name}
--num_gpus=1

Coming to the output visualization,
When you run the above script, it will create a folder 'vis' inside the {dir_name/experiment_name}, and in that it will save visualizations of some of the samples. If you want to see the visualization for all samples, you can edit:

deeplab2/trainer/evaluator.py,
if (self._enable_visualization and
(self._sample_counter < self._num_vis_samples)):

Remove the condition of "self._sample_counter < self._num_vis_samples" to visualizations of all the images.

@Billy8927
Copy link

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

3 participants