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

Questions about the code #11

Open
shangbuhuan13 opened this issue Jul 19, 2022 · 4 comments
Open

Questions about the code #11

shangbuhuan13 opened this issue Jul 19, 2022 · 4 comments

Comments

@shangbuhuan13
Copy link

ey :)
I am sorry I have another question

in the recon_loss.py

res_vote = res_vote / 6 / bs

all the devisions by 6 is this because of the 6 distances paramters or is this related to the number of categories

and another question

if obj_id != 5:

this line why is this not calculated for latop?

@shangbuhuan13
Copy link
Author

and same question here how is this selected:

if prop_bc < FLAGS.aug_bc_pro and (obj_id == 5 or obj_id == 1):

@lolrudy
Copy link
Owner

lolrudy commented Jul 19, 2022

  1. 6 is the number of the bounding box faces.
  2. The category which obj_id==5 is "mug". Since the x-axis of the mug category is shifted by SPD, the ground truth of x-axis is hard to calculated. So we do not calculate the loss on x-axis for mug.
  3. We follow the code of FS-Net and only imply box-cage augmentation on "bowl" and "mug". This augmentation preserves the geometry characteristics of these two categories and achieves best performance.

@HannahHaensen
Copy link

HannahHaensen commented Jul 19, 2022

@lolrudy one question regarding that, but category 5 is the category laptop

self.id2cat_name = {'1': 'bottle', '2': 'bowl', '3': 'camera', '4': 'can', '5': 'laptop', '6': 'mug'}

mug is category 'mug': 6 if I read it correctly

thanks in advance

@lolrudy
Copy link
Owner

lolrudy commented Jul 19, 2022

The obj_id starts from 0.

cat_id = gts['class_ids'][idx] - 1 # convert to 0-indexed

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