Skip to content
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

ValueError: shape of x_tnsr:0 #15

Open
Banhalmi opened this issue Mar 28, 2019 · 0 comments
Open

ValueError: shape of x_tnsr:0 #15

Banhalmi opened this issue Mar 28, 2019 · 0 comments

Comments

@Banhalmi
Copy link

ValueError: Cannot feed value of shape (1, 2, 448, 1024, 3) for Tensor 'x_tnsr:0', which has shape '(0, 2, ?, ?, 3)'
model: models/pwcnet-lg-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-595000
gpu_devices = []
controller = '/device:CPU:0'
windows 8.1
python 3.6
tensorflow 1.13
running: pwcnet_predict_from_img_pairs.py

place of error:
pwcnet_predict_from_img_pairs.py
62. row: pred_labels = nn.predict_from_img_pairs(img_pairs, batch_size=1, verbose=False)

model_pwcnet.py
1000. row: y_hat = self.sess.run(self.y_hat_test_tnsr, feed_dict=feed_dict)

output until error:
C:\Users\BAndras\Anaconda3\lib\site-packages\h5py_init_.py:34: FutureWarning:
Conversion of the second argument of issubdtype from float to np.floating i
s deprecated. In future, it will be treated as np.float64 == np.dtype(float).ty pe.
from ._conv import register_converters as _register_converters
Building model...
WARNING:tensorflow:From C:\PROJECTS\SASMOB - hídas projekt\optical_flow\tfoptflo
w-master\tfoptflow\model_pwcnet.py:1094: conv2d (from tensorflow.python.layers.c
onvolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.conv2d instead.
WARNING:tensorflow:From C:\Users\BAndras\Anaconda3\lib\site-packages\tensorflow
python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.fr
amework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From C:\PROJECTS\SASMOB - hídas projekt\optical_flow\tfoptflo
w-master\tfoptflow\model_pwcnet.py:1221: conv2d_transpose (from tensorflow.pytho
n.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.conv2d_transpose instead.
... model built.
Loading model checkpoint c:/PROJECTS/SASMOB - hídas projekt/optical_flow/tfoptfl
ow-master/tfoptflow/models/pwcnet-lg-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-
595000 for eval or testing...

WARNING:tensorflow:From C:\Users\BAndras\Anaconda3\lib\site-packages\tensorflow
python\training\saver.py:1266: checkpoint_exists (from tensorflow.python.trainin
g.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
INFO:tensorflow:Restoring parameters from c:/PROJECTS/SASMOB - hídas projekt/opt
ical_flow/tfoptflow-master/tfoptflow/models/pwcnet-lg-6-2-multisteps-chairsthing
smix/pwcnet.ckpt-595000
... model loaded

Model Configuration:
verbose True
ckpt_path c:/PROJECTS/SASMOB - hídas projekt/optical_flow/tfoptfl
ow-master/tfoptflow/models/pwcnet-lg-6-2-multisteps-chairsthingsmix/pwcnet.ckpt-
595000
x_dtype <dtype: 'float32'>
x_shape [2, None, None, 3]
y_dtype <dtype: 'float32'>
y_shape [None, None, 2]
gpu_devices []
controller /device:CPU:0
batch_size 1
use_tf_data True
use_mixed_precision False
pyr_lvls 6
flow_pred_lvl 2
search_range 4
use_dense_cx True
use_res_cx True
adapt_info (1, 436, 1024, 2)
mode test
trainable params 14079050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant