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

Use of .pict model : Batch normalization gradient Error #5

Closed
GU8187 opened this issue Sep 16, 2019 · 4 comments
Closed

Use of .pict model : Batch normalization gradient Error #5

GU8187 opened this issue Sep 16, 2019 · 4 comments

Comments

@GU8187
Copy link

GU8187 commented Sep 16, 2019

Hi everyone,

I'm trying to set up online environment for my new learned pix2pix model. I have exported the .pict model with the guides kindly provided by @yining1023 & Dongphil Yoo.

Here is the error I got at launch. Please check the log below

tfjs:2 Uncaught (in promise) Error: Batch normalization gradient requires mean and offset to have equal ranks.

at f (tfjs:2)
at As (tfjs:2)
at Object.batchNorm (tfjs:2)
at batchnorm (pix2pix.js:34)
at pix2pix.js:64
at tfjs:2
at t.scopedRun (tfjs:2)
at t.tidy (tfjs:2)
at Object._e [as tidy] (tfjs:2)
at Pix2pix.transfer (pix2pix.js:47)

f @ tfjs:2
As @ tfjs:2
batchNorm @ tfjs:2
batchnorm @ pix2pix.js:34
(anonymous) @ pix2pix.js:64
(anonymous) @ tfjs:2
t.scopedRun @ tfjs:2
t.tidy @ tfjs:2
_e @ tfjs:2
transfer @ pix2pix.js:47
transfer @ index.js:61
mouseReleased @ index.js:49
e._onmouseup @ p5.min.js:9

Concerned url is http://artinabox.fr/p2pampa/

So what can I do? Are there knowledge resources I could investigate, or do you see what parameter(s) I should check and/or modify ?

I'm happy to have trained my own data though : I mean flowers.
Super best regards to all the community, I hope for your help.

@GU8187
Copy link
Author

GU8187 commented Sep 30, 2019

Follow up can be found at [(https://github.com/tensorflow/tfjs/issues/2120)]

@Dok11
Copy link

Dok11 commented Jan 4, 2020

@yining1023
Copy link
Owner

Hi @GU8187 and @Dok11 Thank you so much for reporting the issue!

I created a new repo here: https://github.com/yining1023/pix2pix_tensorflowjs_lite. It should be working at https://yining1023.github.io/pix2pix_tensorflowjs_lite/

Please let me know if it works for you.

@GU8187
Copy link
Author

GU8187 commented Jan 7, 2020

Yes it does ! Thank you so much @yining1023 for taking care of it and solving the issue.

@GU8187 GU8187 closed this as completed Jan 7, 2020
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

3 participants