-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Invalid Argument Error in style_transfer3.py #37
Comments
content_image = load_image('./Images/kushal.jpg') vgg_model = VGG16_AveragePool(shape) content_model = VGG16_AveragePool_Cutoff(shape, 11) conv_outputs = [ loss = K.mean(K.square(content_model.output - content_target)) for w, symbolic, actual in zip(style_weights,conv_outputs,style_outputs): gradients = K.gradients(loss, vgg_model.input) def get_loss_and_gradients_wrapper(x): final_image = minimize(get_loss_and_gradients_wrapper,10,batch_shape) InvalidArgumentError: You must feed a value for placeholder tensor 'sequential_18_input' with dtype float and shape [?,640,640,3] StackTraceInvalidArgumentError Traceback (most recent call last) in minimize(fn, epochs, batch_shape) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\scipy\optimize\lbfgsb.py in fmin_l_bfgs_b(func, x0, fprime, args, approx_grad, bounds, m, factr, pgtol, epsilon, iprint, maxfun, maxiter, disp, callback, maxls) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\scipy\optimize\lbfgsb.py in _minimize_lbfgsb(fun, x0, args, jac, bounds, disp, maxcor, ftol, gtol, eps, maxfun, maxiter, iprint, callback, maxls, **unknown_options) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\scipy\optimize\lbfgsb.py in func_and_grad(x) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\scipy\optimize\optimize.py in function_wrapper(*wrapper_args) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\scipy\optimize\optimize.py in call(self, x, *args) in get_loss_and_gradients_wrapper(x) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py in call(self, inputs) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\keras\backend\tensorflow_backend.py in _call(self, inputs) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\client\session.py in call(self, *args, **kwargs) c:\users\kushal\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\framework\errors_impl.py in exit(self, type_arg, value_arg, traceback_arg) |
No description provided.
The text was updated successfully, but these errors were encountered: