Coder Social home page Coder Social logo

Comments (1)

soyeduardorico avatar soyeduardorico commented on August 19, 2024

This is the entire log I am getting, in case it helps (the last bit it what makes me think it is an issue with size):

runfile('C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow/train.py', wdir='C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow')
C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\dask\config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}

WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:

INFO:tensorflow:Scale of 0 disables regularizer.
WARNING:tensorflow:From C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\preprocessing\vgg_preprocessing.py:269: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\control_flow_ops.py:423: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\preprocessing\vgg_preprocessing.py:277: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\utils.py:50: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
FLAGS = Flag(**yaml.load(f))
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow/train.py', wdir='C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow')

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile
execfile(filename, namespace)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow/train.py", line 147, in
main(FLAGS)

File "C:/Users/ucbqeri/Documents/GitHub/fast-neural-style-tensorflow/train.py", line 26, in main
style_features_t = losses.get_style_features(FLAGS)

File "C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\losses.py", line 52, in get_style_features
_, endpoints_dict = network_fn(images, spatial_squeeze=False)

File "C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\nets\nets_factory.py", line 105, in network_fn
return func(images, num_classes, is_training=is_training, **kwargs)

File "C:\Users\ucbqeri\Documents\GitHub\fast-neural-style-tensorflow\nets\vgg.py", line 151, in vgg_16
net = slim.conv2d(net, 4096, [7, 7], padding='VALID', scope='fc6')

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\contrib\framework\python\ops\arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py", line 1155, in convolution2d
conv_dims=2)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\contrib\framework\python\ops\arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py", line 1058, in convolution
outputs = layer.apply(inputs)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py", line 1227, in apply
return self.call(inputs, *args, **kwargs)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\layers\base.py", line 530, in call
outputs = super(Layer, self).call(inputs, *args, **kwargs)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py", line 554, in call
outputs = self.call(inputs, *args, **kwargs)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\keras\layers\convolutional.py", line 194, in call
outputs = self._convolution_op(inputs, self.kernel)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 966, in call
return self.conv_op(inp, filter)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 591, in call
return self.call(inp, filter)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 208, in call
name=self.name)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 1112, in conv2d
data_format=data_format, dilations=dilations, name=name)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
op_def=op_def)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1823, in init
control_input_ops)

File "C:\Users\ucbqeri\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1662, in _create_c_op
raise ValueError(str(e))

ValueError: Negative dimension size caused by subtracting 7 from 4 for 'vgg_16/fc6/Conv2D' (op: 'Conv2D') with input shapes: [1,4,4,512], [7,7,512,4096].

from fast-neural-style-tensorflow.

Related Issues (20)

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.