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

question about the argument in if statement #31

Closed
mimiliaogo opened this issue Jul 5, 2021 · 0 comments
Closed

question about the argument in if statement #31

mimiliaogo opened this issue Jul 5, 2021 · 0 comments

Comments

@mimiliaogo
Copy link

if self.split == 'train' and self.opt.used_save_pseudo:
if self.opt.proto_rectify:
lpsoft = np.load(os.path.join(self.opt.path_soft, os.path.basename(img_path).replace('.png', '.npy')))
else:
lp_path = os.path.join(self.opt.path_LP, os.path.basename(img_path))
lp = Image.open(lp_path)
lp = lp.resize(self.img_size, Image.NEAREST)
lp = np.array(lp, dtype=np.uint8)
if self.opt.threshold:
conf = np.load(os.path.join(self.opt.path_LP, os.path.basename(img_path).replace('.png', '_conf.npy')))
lp[conf <= self.opt.threshold] = 250

In line 166 if self.opt.proto_rectify: , I'm wondering if it should be if self.opt.path_soft: ?
Thank you~

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