yining1023 / styleTransfer_spell

Style Transfer example with ml5.js, training the model with Spell.run
48 stars 19 forks source link

No module named tensorflow #3

Open wanderlust95 opened 5 years ago

wanderlust95 commented 5 years ago

Hello. First of all, thank you for your helpful video:) I am a beginner, and I just tried to follow your video so far. I have tried three times, but I got same problem whenever I tried to "convert model to ml5.js"

I could not solve this problem for more than two weeks, so I wonder if there is anything I can try. My script comes out like this.

gimsiwan-ui-MacBook-Pro-7:fast-style-transfer-deeplearnjs wanderlust$ python scripts/dump_checkpoint_vars.py --output_dir=src/ckpts/spellModel --checkpoint_file=./spellModel/fns.ckpt Traceback (most recent call last): File "scripts/dump_checkpoint_vars.py", line 30, in import tensorflow as tf ImportError: No module named tensorflow

yining1023 commented 5 years ago

Hi @wanderlust95, you might need to install tensorflow on your computer. I should have made a note in the tutorial too.

Here are some documentations about how to install tensorflow with pip: https://www.tensorflow.org/install/pip.

Plz let me know if you run into any other issues. :)

wanderlust95 commented 5 years ago

Thank you so much for your fast reply! I will try rightaway and leave a comment! I also wonder if there is any other way to put more pictures to train altogether..! For example, is it available to train 10 images to make another own style model?

wanderlust95 commented 5 years ago

I have tried Tensorflow installation again and I solved the problem. Thank you so much!

I worked on last step and watched your video 'Style Transfer Part 2: Real-Time Style Transfer with ml5.js with Yining Shi'. I changed some lines for index.html and sketch.js in styleTransfer_spell according to the instruction in the video. However, when I wrote down 'python -m SimpleHTTPServer' on my terminal, I could see following, and on 'localhost:8000', I only could see the image I put and some texts.

My terminal stopped after these lines for 2 hrs.

127.0.0.1 - - [31/May/2019 02:04:41] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [31/May/2019 02:04:41] "GET /sketch.js HTTP/1.1" 200 - 127.0.0.1 - - [31/May/2019 02:04:41] "GET /images/pattern.jpg HTTP/1.1" 200 - 127.0.0.1 - - [31/May/2019 02:04:42] code 404, message File not found 127.0.0.1 - - [31/May/2019 02:04:42] "GET /favicon.ico HTTP/1.1" 404 -

It seems like it just stopped working, so I would like to know how to get back to the point where I lost without losing any data. I want to go back to this state -> gimsiwan-ui-MacBook-Pro-7:styleTransfer_spell wanderlust$

Thank you for reading.