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

A bug in boolmask #11

Open
alex04072000 opened this issue Dec 24, 2018 · 1 comment
Open

A bug in boolmask #11

alex04072000 opened this issue Dec 24, 2018 · 1 comment

Comments

@alex04072000
Copy link

line 121 in func_generate_traindata.py
if(image_id==4 or 6 or 15): this statement will always be True.
Maybe you want something like this? if(image_id==4 or image_id==6 or image_id==15):

And for line 128-132,
if( np.sum(a_tmp[idx_start+scale*crop_half1: idx_start+scale*crop_half1+scale*label_size:scale, idy_start+scale*crop_half1: idy_start+scale*crop_half1+scale*label_size:scale])>0 or np.sum(a_tmp[idx_start: idx_start+scale*input_size:scale, idy_start: idy_start+scale*input_size:scale])>0 ): valid=0
Should this code fragment be also in if(image_id==4): and if(image_id==6): ?

@mneira10
Copy link

mneira10 commented Oct 27, 2019

Also, the boolmask is asigned to a_tmp which is never used (lines 122-127 in epinet/epinet_fun/func_generate_traindata.py):

if(image_id==4):
    a_tmp=boolmask_img4
if(image_id==6):
    a_tmp=boolmask_img6    
if(image_id==15):
    a_tmp=boolmask_img15                            
    .
    .
    .

This effectively means that the boolean masks are never actually taken into account in the code. This is worrying given that the paper states that this step is crucial in its training: "We exclude some training data that contains reflection and refraction regions such as glass, metal and textureless regions, which result in incorrect correspondences." Not taking the boolean masks into account changes everything in the training phase.

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

2 participants