mauriceqch / pcc_geo_cnn

Learning Convolutional Transforms for Point Cloud Geometry Compression
MIT License
46 stars 12 forks source link

I followed the tutorial and encountered an error when performing the compression step. #13

Open Tom-plus opened 8 months ago

Tom-plus commented 8 months ago

Dear Mr. Quach, I have trained the model completely according to the tutorial you provided. I ran “python compress.py ../data/msft/ "*/.ply" ../data/msft_bin_00001 ../models/ModelNet40_pc_64_lmbda_00001 --resolution 512”and reported an error as follows. May I know how to resolve these error messages? I expect for your reply. Thanks in advance!

Error info

2024-03-06 02:46:56.634184: W tensorflow/core/framework/op_kernel.cc:1401] OP_REQUIRES failed at range_coder_ops.cc:148 : Invalid argument: The last dimension of cdf should be > 1: [32,1,1,1,1] 0%| | 0/5 [00:19<?, ?it/s] Traceback (most recent call last): File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call return fn(*args) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.InvalidArgumentError: The last dimension of cdf should be > 1: [32,1,1,1,1] [[{{node entropy_bottleneck_1/map/while/RangeEncode}}]] [[{{node entropy_bottleneck_1/map/while/TensorArrayWrite/TensorArrayWriteV3}}]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "compress.py", line 108, in for ret, ori_file, output_file in zip(result, tqdm(files), output_files): File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow_estimator/python/estimator/estimator.py", line 629, in predict preds_evaluated = mon_sess.run(predictions) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 676, in run run_metadata=run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1171, in run run_metadata=run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1270, in run raise six.reraise(original_exc_info) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/six.py", line 719, in reraise raise value File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1255, in run return self._sess.run(args, *kwargs) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1327, in run run_metadata=run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py", line 1091, in run return self._sess.run(args, kwargs) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run run_metadata_ptr) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _run feed_dict_tensor, options, run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run run_metadata) File "/home3/wutianyi/anaconda3/envs/dianyun_py36/lib/python3.6/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: The last dimension of cdf should be > 1: [32,1,1,1,1] [[node entropy_bottleneck_1/map/while/RangeEncode (defined at /home3/wutianyi/WORKSPACE/DeepLearnCompress_1/pcc_geo_cnn/src/tensorflow_compression/python/layers/entropy_models.py:516) ]] [[node entropy_bottleneck_1/map/while/TensorArrayWrite/TensorArrayWriteV3 (defined at /home3/wutianyi/WORKSPACE/DeepLearnCompress_1/pcc_geo_cnn/src/tensorflow_compression/python/layers/entropy_models.py:518) ]]**