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

problem on run.py #4

Open
zhangbaijin opened this issue Apr 8, 2019 · 6 comments
Open

problem on run.py #4

zhangbaijin opened this issue Apr 8, 2019 · 6 comments

Comments

@zhangbaijin
Copy link

when i run.py,this is problem,i dont know why,

TypeError: l1_loss() takes from 2 to 3 positional arguments but 4 were given

@Andrej-sens
Copy link

Same problem here.

@lvxm0
Copy link

lvxm0 commented Jul 12, 2019

Same problem!QAQ

@micklexqg
Copy link

Same problem

@zhengbowei
Copy link

I deleted the latter two parameters and changed them to
“def _pointwise_loss(self, lambd, lambd_optimized, input, target, discounting_mask, size_average=True, reduce=True):
if target.requires_grad:
d = lambd(input, target)
d = d * discounting_mask
if not reduce:
return d
return torch.mean(d) if size_average else torch.sum(d)
else:
return lambd_optimized(input, target)”。
it can run。

@01SHENyankun
Copy link

20210915103230

@jiangxinke
Copy link

20210915103230

you need to download the CelebA datasets and the filename file...

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

7 participants