Comments (3)
只稍改动了13,14行
from fast-neural-style-tensorflow.
上面的问题是因为我没有传model和需要改风格的图片导致的,现在的问题。。。完全没有头绪,python是只会一点点,前端学的玩的,大佬有空指导下蛤
2018-12-07 18:22:02.176192: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
INFO:tensorflow:Image size: 268x268
INFO:tensorflow:Restoring parameters from C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode
2018-12-07 18:22:02.510663: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode: Unknown: NewRandomAccessFile failed to Create/Open: C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode : �ܾ����ʡ�
; Input/output error
2018-12-07 18:22:02.514915: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode: Unknown: NewRandomAccessFile failed to Create/Open: C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode : �ܾ����ʡ�
; Input/output error
2018-12-07 18:22:02.515254: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at save_restore_tensor.cc:175 : Data loss: Unable to open table file C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode: Unknown: NewRandomAccessFile failed to Create/Open: C:\Users\12994\Desktop\fast-neural-style-tensorflow-master\mymode : �ܾ����ʡ�
; Input/output error
Process finished with exit code -1073741819 (0xC0000005)
from fast-neural-style-tensorflow.
2018-12-07 17:34:37.231687: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
INFO:tensorflow:Image size: 1162x640
Traceback (most recent call last):
File "C:/Users/12994/Desktop/fast-neural-style-tensorflow-master-master/eval.py", line 78, in
tf.app.run()
File "C:\Users\12994\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "C:/Users/12994/Desktop/fast-neural-style-tensorflow-master-master/eval.py", line 48, in main
generated = model.net(image, training=False)
File "C:\Users\12994\Desktop\fast-neural-style-tensorflow-master-master\model.py", line 93, in net
conv1 = tf.nn.relu(instance_norm(conv2d(image, 3, 32, 9, 1)))
File "C:\Users\12994\Desktop\fast-neural-style-tensorflow-master-master\model.py", line 9, in conv2d
x_padded = tf.pad(x, [[0, 0], [kernel / 2, kernel / 2], [kernel / 2, kernel / 2], [0, 0]], mode=mode)
File "C:\Users\12994\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1898, in pad
tensor, paddings, mode="REFLECT", name=name)
File "C:\Users\12994\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 5337, in mirror_pad
"MirrorPad", input=input, paddings=paddings, mode=mode, name=name)
File "C:\Users\12994\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 609, in _apply_op_helper
param_name=input_name)
File "C:\Users\12994\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 60, in _SatisfiesTypeConstraint
", ".join(dtypes.as_dtype(x).name for x in allowed_list)))
TypeError: Value passed to parameter 'paddings' has DataType float32 not in list of allowed values: int32, int64
老兄,这个是怎么解决的
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
- 训练时loss很大
- COCO dataset下载失败
- 求助:如何训练自己的模型 HOT 1
- 请问如何加载一次模型预测多张图片?求助 HOT 1
- Speed 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.