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

track_masks_data is all 0 of BestWishYsh/ConsisID-preview-Data #21

Open
huiyang865 opened this issue Dec 10, 2024 · 7 comments
Open

track_masks_data is all 0 of BestWishYsh/ConsisID-preview-Data #21

huiyang865 opened this issue Dec 10, 2024 · 7 comments

Comments

@huiyang865
Copy link

huiyang865 commented Dec 10, 2024

Thanks to the great job, we find that the training data (BestWishYsh/ConsisID-preview-Data) you provided seemed a little problematic, for example,

All the track_masks_data in the directory (https://github.com/PKU-YuanGroup/ConsisID/tree/main/asserts/demo_train_data/dataname/track_masks_data/81FyMPk-WIS_segment_0_243_noFacePose_0_243/tracking_mask_results) are all 0 pixels.

And the tracking_mask_results of Zg-F_JweREs.7_segment_121_341-Scene-003_noFacePose_0_109 directory from BestWishYsh/ConsisID-preview-Data are also all 0 pixels.

Does the data provided (BestWishYsh/ConsisID-preview-Data) need to be re-run the preprocessed code (https://github.com/PKU-YuanGroup/ConsisID/tree/main/data_preprocess)?

@SHYuanBest
Copy link
Member

SHYuanBest commented Dec 10, 2024

Thanks for your interest about ConsisID. The track_masks_data is normal and not all 0 pixels. This is because it was saved in RGB format without binarization, which makes it appear black to the naked eye. Our training code has a corresponding preprocessing process when loading the mask.

>>> from PIL import Image
>>> import numpy as np
>>> image_path = '/asserts/demo_train_data/dataname/track_masks_data/81FyMPk-WIS_segment_0_243_noFacePose_0_243/tracking_mask_results/1/annotated_frame_00000.png'
>>> image = Image.open(image_path)
>>> image_array = np.array(image)
>>> pixel_sum = np.sum(image_array)
>>> pixel_max = np.max(image_array)
>>> pixel_min = np.min(image_array)
>>> print(f"Pixel Sum: {pixel_sum}")
Pixel Sum: 5136
>>> print(f"Pixel Max: {pixel_max}")
Pixel Max: 1
>>> print(f"Pixel Min: {pixel_min}")
Pixel Min: 0

@bruce2233
Copy link

You should multiply 255

@SHYuanBest
Copy link
Member

You should multiply 255

Yes for visualization.

@LeoniusChen
Copy link

I have the same question. Does the data provided (BestWishYsh/ConsisID-preview-Data) need to be re-run the preprocessed code (https://github.com/PKU-YuanGroup/ConsisID/tree/main/data_preprocess)?

@SHYuanBest
Copy link
Member

SHYuanBest commented Dec 17, 2024

I have the same question. Does the data provided (BestWishYsh/ConsisID-preview-Data) need to be re-run the preprocessed code (https://github.com/PKU-YuanGroup/ConsisID/tree/main/data_preprocess)?

No need to, the data have already been preprocessed.

@LeoniusChen
Copy link

But in training, I met problems about "Using single face, but {idx} is multi person" and "No valid ID found: both valid_ids and backup_ids are empty". Maybe there is something incomplete in the training codes?

@SHYuanBest
Copy link
Member

Yes, although the data preprocess code support multi person, but the current training code only support single face, and we are working hard to train a new model that support it, stay tuned.

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

4 participants