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

code logic error #20

Open
gneworld opened this issue May 22, 2020 · 1 comment
Open

code logic error #20

gneworld opened this issue May 22, 2020 · 1 comment

Comments

@gneworld
Copy link

hi,
I find a error in your agent.py file, that is " if temp[i]>0:" , under this condition "if temp[i] == 0:" will never occur, I "m not sure if I'm right?

        for i in range(self.p.grid_y*self.p.grid_x): #make gt
            temp = temp[temp>-1]
            gt_one = deepcopy(temp)
            if temp[i]>0:
                gt_one[temp==temp[i]] = 1   #same instance
                if temp[i] == 0:
                    gt_one[temp!=temp[i]] = 3 #different instance, different class
                else:
                    gt_one[temp!=temp[i]] = 2 #different instance, same class
                    gt_one[temp==0] = 3 #different instance, different class
                ground[batch_index][0][i] += gt_one
@koyeongmin
Copy link
Owner

Yes. It is unnecessary code.

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