You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs for ~10-20 minutes and then i'm getting an error like this every time:
Iteration 500 / 500
Content 1 loss: 27202762.500000
Style 1 loss: 128.602207
Style 2 loss: 6182.222366
Style 3 loss: 4729.293823
Style 4 loss: 187635.543823
Style 5 loss: 655.002296
Total loss: 27402093.164515
<optim.lbfgs> reached max number of iterations
neural-style-docker: artistic style between images
--content CONTENT_IMAGES: file or files with the content images to use
--style STYLE_IMAGES: file or files with the styles to transfer
--output OUTPUT_FOLDER: name of the output folder in which to save results
--size SIZE: size of the output image. Default: content image size
--sw STYLE_WEIGHT (default 5): weight or list of weights of the style over the content, in range (0, inf)
--ss STYLE_SCALE (default 1.0): scaling or list of scaling factors for the style images
--alg ALGORITHM: style-transfer algorithm to use. Must be one of the following:
gatys Highly detailed transfer, slow processing times (default)
gatys-multiresolution Multipass version of Gatys method, provides even better quality
chen-schmidt Fast patch-based style transfer
chen-schmidt-inverse Even faster aproximation to chen-schmidt through the use of an inverse network
--tileoverlap TILE_OVERLAP: overlap of tiles in the style transfer, measured in pixels. If you experience
artifacts in the image you should try increasing this. Default: 100
Additionally provided parameters are carried on to the underlying algorithm.
Traceback (most recent call last):
File "/app/entrypoint/entrypoint.py", line 100, in main
styletransfer(contents, styles, savefolder, size, alg, weights, stylescales, tileoverlap, algparams=otherparams)
File "/app/entrypoint/neuralstyle/algorithms.py", line 90, in styletransfer
weight=weight, stylescale=scale, algparams=algparams)
File "/app/entrypoint/neuralstyle/algorithms.py", line 162, in neuraltile
smush(featheredtiles, xtiles, ytiles, overlap, overlap, smushedfeathered)
File "/app/entrypoint/neuralstyle/imagemagick.py", line 59, in smush
% (xtiles, ytiles, len(tiles)))
ValueError: Geometry (8,10) is incompatible with given number of tiles (88)
It seems like there's an issue in the "smush" function
Hi there! Sorry for the late answer, but I'm only finding time to maintain this project on my holidays.
At first glance I can't tell what is the source of the error. But 88 tiles seems like an awfully large number of tiles. What is the size of your input image? Can you try again using --size 512? This will force the output to be small enough to fit into a single tile, so the smush stuff won't be used.
Hi @albarji, first of all thank you for creating a dockerized version of the neural-style project! :)
However, i'm not able to get it to run properly. I'm calling it like this:
sudo nvidia-docker run --rm -v $(pwd):/images albarji/neural-style --content content.png --style style.png --output results
It starts as expected:
It runs for ~10-20 minutes and then i'm getting an error like this every time:
It seems like there's an issue in the "smush" function
neural-style-docker/neuralstyle/imagemagick.py
Lines 55 to 70 in acc490b
Could you help me to find out what the issue is here?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: