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

about def get_masks(dataset_name, num_sem_pos=0, num_top_pos=0): function #3

Open
EtAior5 opened this issue Sep 15, 2023 · 0 comments

Comments

@EtAior5
Copy link

EtAior5 commented Sep 15, 2023

sem_pos = np.load(sem_pos_path)[:, :num_sem_pos]
top_pos = np.load(top_pos_path)[:, :num_top_pos]

These two values num_sem_pos and num_top_pos use the default value of 0, Then they get the same identity matrix through function
def idx2mask(idx):

So, in the main function, mask = torch.logical_or(sem_mask, top_mask).to(device) seems to have no effect.
I'm not sure if there are any issues with my understanding. I hope to receive your reply.

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