I'm using pycaffe on Windows, but the output is equal to the content. For what I understand only a single iteration is ran, and for some reasons the minimisation considers the first output to be already minimised. I don't know the BFGS code at all, it's possible that caffe is reporting some value to 0 instead of the right value, but I don't know which one.
Here is the log :
`(env) C:\Users\vlj\Documents\GitHub\style-transfer [master ≡ +2 ~1 -0 !]> python .\style.py -s .\images\style\starry_night.jpg -c .\images\content\sanfrancisco.jpg -m VGG16 -g 0 -v -
style.py:main:19:44:01.838 -- Starting style transfer.
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0121 19:44:02.426594 14300 common.cpp:36] System entropy source not available, using fallback algorithm to generate seed instead.
style.py:main:19:44:02.427 -- Running net on GPU 0.
style.py:main:19:44:02.494 -- Successfully loaded images.
style.py:main:19:44:02.557 -- Successfully loaded model VGG16.
C:\Users\vlj\Documents\GitHub\style-transfer\env\lib\site-packages\skimage\transform_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage
warn("The default mode, 'constant', will be changed to 'reflect' in "
RUNNING THE L-BFGS-B CODE
* * *
Machine precision = 2.220D-16
N = 525312 M = 8
The initial X is infeasible. Restart with its projection.
At X0 40 variables are exactly at the bounds
At iterate 0 f= 0.00000D+00 |proj g|= 0.00000D+00
* * *
Tit = total number of iterations
Tnf = total number of function evaluations
Tnint = total number of segments explored during Cauchy searches
Skip = number of BFGS updates skipped
Nact = number of active bounds at final generalized Cauchy point
Projg = norm of the final projected gradient
F = final function value
* * *
N Tit Tnf Tnint Skip Nact Projg F
***** 0 1 0 0 0 0.000D+00 0.000D+00
F = 0.0000000000000000
CONVERGENCE: NORM_OF_PROJECTEDGRADIENT<=_PGTOL
Cauchy time 0.000E+00 seconds.
Subspace minimization time 0.000E+00 seconds.
Line search time 0.000E+00 seconds.
Total User time 0.000E+00 seconds.
style.py:main:19:44:05.648 -- Ran 0 iterations in 3s.
C:\Users\vlj\Documents\GitHub\style-transfer\env\lib\site-packages\skimage\util\dtype.py:122: UserWarning: Possible precision loss when converting from float32 to uint8
.format(dtypeobj_in, dtypeobj_out))
style.py:main:19:44:05.704 -- Output saved to outputs/sanfrancisco-starry_night-VGG16-content-1e4-512.jpg.`
Hi,
I'm using pycaffe on Windows, but the output is equal to the content. For what I understand only a single iteration is ran, and for some reasons the minimisation considers the first output to be already minimised. I don't know the BFGS code at all, it's possible that caffe is reporting some value to 0 instead of the right value, but I don't know which one.
Here is the log :
`(env) C:\Users\vlj\Documents\GitHub\style-transfer [master ≡ +2 ~1 -0 !]> python .\style.py -s .\images\style\starry_night.jpg -c .\images\content\sanfrancisco.jpg -m VGG16 -g 0 -v - style.py:main:19:44:01.838 -- Starting style transfer. WARNING: Logging before InitGoogleLogging() is written to STDERR I0121 19:44:02.426594 14300 common.cpp:36] System entropy source not available, using fallback algorithm to generate seed instead. style.py:main:19:44:02.427 -- Running net on GPU 0. style.py:main:19:44:02.494 -- Successfully loaded images. style.py:main:19:44:02.557 -- Successfully loaded model VGG16. C:\Users\vlj\Documents\GitHub\style-transfer\env\lib\site-packages\skimage\transform_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage warn("The default mode, 'constant', will be changed to 'reflect' in " RUNNING THE L-BFGS-B CODE
Machine precision = 2.220D-16 N = 525312 M = 8 The initial X is infeasible. Restart with its projection.
At X0 40 variables are exactly at the bounds
At iterate 0 f= 0.00000D+00 |proj g|= 0.00000D+00
Tit = total number of iterations Tnf = total number of function evaluations Tnint = total number of segments explored during Cauchy searches Skip = number of BFGS updates skipped Nact = number of active bounds at final generalized Cauchy point Projg = norm of the final projected gradient F = final function value
N Tit Tnf Tnint Skip Nact Projg F ***** 0 1 0 0 0 0.000D+00 0.000D+00 F = 0.0000000000000000
CONVERGENCE: NORM_OF_PROJECTEDGRADIENT<=_PGTOL
Cauchy time 0.000E+00 seconds. Subspace minimization time 0.000E+00 seconds. Line search time 0.000E+00 seconds.
Total User time 0.000E+00 seconds.
style.py:main:19:44:05.648 -- Ran 0 iterations in 3s. C:\Users\vlj\Documents\GitHub\style-transfer\env\lib\site-packages\skimage\util\dtype.py:122: UserWarning: Possible precision loss when converting from float32 to uint8 .format(dtypeobj_in, dtypeobj_out)) style.py:main:19:44:05.704 -- Output saved to outputs/sanfrancisco-starry_night-VGG16-content-1e4-512.jpg.`