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.
0%| | 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
return fn(*args)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[{{node vggish/Flatten/flatten/Reshape}}]]
[[{{node vggish/embedding}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/extract_vggish.py", line 60, in forward
self.extract(idx, sess)
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/extract_vggish.py", line 97, in extract
[vggish_stack] = tf_session.run([embedding_tensor], feed_dict={features_tensor: examples_batch})
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
run_metadata)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node vggish/Flatten/flatten/Reshape (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:95) ]]
[[node vggish/embedding (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:99) ]]
Caused by op 'vggish/Flatten/flatten/Reshape', defined at:
File "/data02/jeiyoon_park/BMT/submodules/video_features/main.py", line 85, in <module>
parallel_feature_extraction(args)
File "/data02/jeiyoon_park/BMT/submodules/video_features/main.py", line 34, in parallel_feature_extraction
torch.nn.parallel.parallel_apply(replicas[:len(inputs)], inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 79, in parallel_apply
_worker(0, modules[0], inputs[0], kwargs_tup[0], devices[0])
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
output = module(*input, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__
result = self.forward(*input, **kwargs)
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/extract_vggish.py", line 52, in forward
vggish_slim.define_vggish_slim(training=False)
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py", line 95, in define_vggish_slim
net = slim.flatten(net)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1624, in flatten
outputs = core_layers.flatten(inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/layers/core.py", line 333, in flatten
return layer.apply(inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 1227, in apply
return self.__call__(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/layers/base.py", line 530, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 554, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/layers/core.py", line 553, in call
array_ops.shape(inputs)[0], -1))
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 7179, in reshape
"Reshape", tensor=tensor, shape=shape, name=name)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3300, in create_op
op_def=op_def)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1801, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node vggish/Flatten/flatten/Reshape (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:95) ]]
[[node vggish/embedding (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:99) ]]
Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node vggish/Flatten/flatten/Reshape (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:95) ]]
[[node vggish/embedding (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:99) ]]
Caused by op 'vggish/Flatten/flatten/Reshape', defined at:
File "/data02/jeiyoon_park/BMT/submodules/video_features/main.py", line 85, in <module>
parallel_feature_extraction(args)
File "/data02/jeiyoon_park/BMT/submodules/video_features/main.py", line 34, in parallel_feature_extraction
torch.nn.parallel.parallel_apply(replicas[:len(inputs)], inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 79, in parallel_apply
_worker(0, modules[0], inputs[0], kwargs_tup[0], devices[0])
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
output = module(*input, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in __call__
result = self.forward(*input, **kwargs)
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/extract_vggish.py", line 52, in forward
vggish_slim.define_vggish_slim(training=False)
File "/data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py", line 95, in define_vggish_slim
net = slim.flatten(net)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1624, in flatten
outputs = core_layers.flatten(inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/layers/core.py", line 333, in flatten
return layer.apply(inputs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 1227, in apply
return self.__call__(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/layers/base.py", line 530, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 554, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/keras/layers/core.py", line 553, in call
array_ops.shape(inputs)[0], -1))
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 7179, in reshape
"Reshape", tensor=tensor, shape=shape, name=name)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 3300, in create_op
op_def=op_def)
File "/data02/jeiyoon_park/anaconda3/envs/vggish/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1801, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Reshape cannot infer the missing input size for an empty tensor unless all specified input sizes are non-zero
[[node vggish/Flatten/flatten/Reshape (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:95) ]]
[[node vggish/embedding (defined at /data02/jeiyoon_park/BMT/submodules/video_features/models/vggish/vggish_src/vggish_slim.py:99) ]]
Extraction failed at: /data02/jeiyoon_park/fairseq/examples/MMPT/video_dataset/SumMe/SumMe/pasted_videos/Bearpark_climbing.mp4. Continuing extraction
100%|█████████████████████████████████████████████| 1/1 [00:04<00:00, 4.68s/it]
Process finished with exit code 0