Comments (1)
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:
- https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
- https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
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)
- 运行train.py报错ResourceExhaustedError HOT 2
- 请教一下各位大佬穷人用GTX950怎么跑 HOT 1
- 自己重新训练模型结果不理想 HOT 1
- Train a new model? checkpoint format depreched
- 在Py3.6环境下移植出错
- 将ckpt文件转换为pb文件
- train error
- 作者源码运行,报这个错。。不知道是不是我自己的问题。pyhon是3.5的。windows环境 HOT 3
- 训练时loss很大
- COCO dataset下载失败
- 求助:如何训练自己的模型 HOT 1
- 请问如何加载一次模型预测多张图片?求助 HOT 1
- vgg_preprocessing.py code wrong
- Which model can help me to resolve text reading?
- 结果图的调整方向
- 您好,请问一下为什么产生的图像依旧是是全黑的 HOT 2
- 请问为什么自己训练模型的时候得到的那个models文件夹是空的呀?
- Upgrade to tensorflow2
- [环境测试]建议添加requirements.txt
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-neural-style-tensorflow.