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

Switch to PyTorch API (computational graph is broken!) #1

Open
Nikronic opened this issue Nov 7, 2021 · 0 comments
Open

Switch to PyTorch API (computational graph is broken!) #1

Nikronic opened this issue Nov 7, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Nikronic
Copy link
Owner

Nikronic commented Nov 7, 2021

patch_loss = np.sum(
[self.MSE_loss(self.gram_matrix(self.get_patch(ly)), self.gram_matrix(self.get_patch(lp)))
for ly, lp in zip(y_vgg, details_outputs_vgg)])

Why on earth there is a numpy function during the forward pass of computing loss? Switch to pytorch and get rid of for-loop.

@Nikronic Nikronic added the bug Something isn't working label Nov 7, 2021
@Nikronic Nikronic self-assigned this Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant