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

cam_ext_mask_prob is use only for the first camera #90

Open
vaxowt opened this issue Mar 20, 2025 · 0 comments
Open

cam_ext_mask_prob is use only for the first camera #90

vaxowt opened this issue Mar 20, 2025 · 0 comments

Comments

@vaxowt
Copy link

vaxowt commented Mar 20, 2025

In line 299, only the first element of mask_probs is set to cam_ext_mask_prob

mask_probs = [self.cond_mask_prob] * self.num_cameras
if self.cam_ext_mask_prob >= 0.0:
mask_probs[0] = self.cam_ext_mask_prob
rearranged_images = []
for i in range(self.img_history_size):
for j in range(self.num_cameras):
images, image_mask = image_metas[j]
image, valid = images[i], image_mask[i]
if valid and (math.prod(image.shape) > 0) and \
(random.random() > mask_probs[j]):
rearranged_images.append((image, True))
else:
rearranged_images.append((background_image.copy(), False))

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

1 participant