-
Notifications
You must be signed in to change notification settings - Fork 147
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
Mapping pixel to label #18
Comments
Hey @skabongo2022, thanks for reaching out.
STEGO/src/eval_segmentation.py Line 189 in 9d966c0
To unpack this example: plot_cluster = (model.label_cmap[
model.test_cluster_metrics.map_clusters(
saved_data["cluster_preds"][img_num])]).astype(np.uint8)
|
Hi @mhamilton723, thank you for the reply. I will close the issue for now and might re-open it if I still have questions/issues Thank you for your availability. |
Hi @mhamilton723, thank you for the great work.
I was wondering if there is any mapping between the image colormap and the label, when trying an image at test time ?
Referring to the colab notebok you published, it seems that
linear_pred
give the pixelwise prediction but when I checked the shape ofmodel.label_cmap
it shows (512, 3) which doesn't seems to match with the number of label that I get fromget_class_labels(model.cfg.dataset_name)
I'm not sure to be using the right approach but basically 'm missing the link between the colormaps and the class labels.
Thank you for your reply and again great work.
The text was updated successfully, but these errors were encountered: