pcc_geo_cnn
pcc_geo_cnn copied to clipboard
I followed the tutorial and encountered an error when performing the compression step.
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 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) ]]