Giter VIP home page Giter VIP logo

large_neural_style's People

Contributors

dnuffer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

large_neural_style's Issues

Cant seem to run this..

gateway@gateway-media:~/work/large_neural_style$ python3 large_neural_style.py --style /home/gateway/work/styles/star.jpg --content /home/gateway/work/images/home.jpg --content-weight 90.6e11 --output /home/gateway/work/large_neural_style/
Traceback (most recent call last):
File "large_neural_style.py", line 6, in
import stylize
File "/home/gateway/work/large_neural_style/stylize.py", line 10, in
import tiling
File "/home/gateway/work/large_neural_style/tiling.py", line 333
print "Failed:", result
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Failed:", result)?

any thoughts? I didnt really seed any example command lines in the docs.. thank you!

Getting an error when trying to run

All of the dependencies seemed to install correctly with pip. Any idea what might fix this?

C:\Users\aaols\Documents\large_neural_style>python large_neural_style.py --content eagle.jpg --style lock.jpg --output leagle.jpg

WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
Content image shape:  (2426, 2066, 3)
Pyramid sizes: [(240, 204, 3), (480, 408, 3), (960, 817, 3), (1920, 1635, 3)]
shape: (240, 204, 3)
C:\Python36\lib\site-packages\skimage\transform\_warps.py:105: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
  warn("The default mode, 'constant', will be changed to 'reflect' in "
C:\Python36\lib\site-packages\skimage\transform\_warps.py:110: UserWarning: Anti-aliasing will be enabled by default in skimage 0.15 to avoid aliasing artifacts when down-sampling images.
  warn("Anti-aliasing will be enabled by default in skimage 0.15 to "
resized_content_image.shape:  (304, 268, 3)
content.shape: (1, 3, 304, 268)
style.shape: (1, 3, 152, 240)
after image_to_shape(), style.shape: (1, 3, 240, 204)
Traceback (most recent call last):
  File "large_neural_style.py", line 193, in <module>
    sys.exit(main())
  File "large_neural_style.py", line 129, in main
    args.print_loss)
  File "C:\Users\aaols\Documents\large_neural_style\stylize.py", line 30, in generate_stylized_image
    stylize = Stylize(content, True, style, content_weight, style_weight, style_layer_weight_factor, total_variation_weight, print_loss, print_progress=True)
  File "C:\Users\aaols\Documents\large_neural_style\stylize.py", line 92, in __init__
    self.net.load_params('vgg19_normalized.pkl')
  File "C:\Users\aaols\Documents\large_neural_style\vgg19.py", line 37, in load_params
    values = pickle.load(open(weights_filename))['param values']
  File "C:\Python36\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 3634: character maps to <undefined>

utf-8 codec error

Hello . After put this command python3 large_neural_style.py --style /home/fsck/neural/large_neural_style/ir.jpg --content /home/fsck/neural/large_neural_style/1322.jpg --content-weight 90.6e11 --output /home/fsck/neural/large_neural_style/ i get error "large_neural_style.py", line 193, in
sys.exit(main())
File "large_neural_style.py", line 129, in main
args.print_loss)
File "/home/fsck/neural/large_neural_style/stylize.py", line 30, in generate_stylized_image
stylize = Stylize(content, True, style, content_weight, style_weight, style_layer_weight_factor, total_variation_weight, print_loss, print_progress=True)
File "/home/fsck/neural/large_neural_style/stylize.py", line 92, in init
self.net.load_params('vgg19_normalized.pkl')
File "/home/fsck/neural/large_neural_style/vgg19.py", line 37, in load_params
values = pickle.load(open(weights_filename))['param values']
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Can you help fix this ?

samples

do you have any samples of output anywhere?
thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.