tensorflow / tensorflow/models
struct2depth Convolution not supported for input with rank
@aneliaangelova is already working on this.
Since Jul 1, 2020.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
System information
- What is the top-level directory of the model you are using: models/research/struct2depth/
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): WIndows 10
- TensorFlow installed from (source or binary): pip install tensorflow-gpu
- TensorFlow version (use command below): 1.5
- Bazel version (if compiling from source): -
- CUDA/cuDNN version: CUDA 9 cuDNN 7
- GPU model and memory: GTX 1050 2GB
- Exact command to reproduce:
python train.py \ --logtostderr \ --checkpoint_dir D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\train_checkpoint \ --data_dir D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\KITTI_procesed \ --architecture resnet \ --imagenet_ckpt resnet_pretrained/model.ckpt \ --imagenet_norm true
Describe the problem
-
Hello I tried to run train.py, but I found problem with Convolution not supported for input with rank, Is there any wrong with my training procedure, I generate train.txt manually with format (image-processed_file_path) (image-processed_file_name), Is there anything wrong with this??
-
And in the data_dir path, which folder I need to use, KITTI_procesed folder from the gen_data_kitti.py or kitti-raw-uncompressed ??
-
Last, where I can find model.ckpt file for resnet model?? because I only found pre-trained model from the https://sites.google.com/view/struct2depth
Thank You very much
Error :
I0304 12:27:19.917803 14332 reader.py:291] data_dir: D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\KITTI_procesed
I0304 12:27:20.101785 14332 reader.py:158] image_stack: Tensor("data_loading/batching/shuffle_batch:0", shape=(4, 128, 416, 9), dtype=float32)
Traceback (most recent call last):
File "train.py", line 259, in
app.run(main)
File "F:\Anaconda3\envs\depth\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "F:\Anaconda3\envs\depth\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "train.py", line 184, in main
size_constraint_weight=FLAGS.size_constraint_weight)
File "D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\model.py", line 158, in init
self.build_train_graph()
File "D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\model.py", line 169, in build_train_graph
self.build_inference_for_training()
File "D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\model.py", line 393, in build_inference_for_training
weight_reg=self.weight_reg)
File "D:\Kuliah\S2\Depth_Estimation\models-master\research\struct2depth\nets.py", line 129, in objectmotion_net
cnv1 = slim.conv2d(image_stack, 16, [7, 7], stride=2, scope='cnv1')
File "F:\Anaconda3\envs\depth\lib\site-packages\tensorflow\contrib\framework\python\ops\arg_scope.py", line 182, in func_with_args
return func(*args, **current_args)
File "F:\Anaconda3\envs\depth\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py", line 1035, in convolution
input_rank)
ValueError: ('Convolution not supported for input with rank', None)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.