Created
March 14, 2025 12:36
-
-
Save davipatti/091e9220d773878bfdda81a2f2552bd1 to your computer and use it in GitHub Desktop.
imxconv-pt error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/g/grounding-dino-tiny-ONNX[1]►imxconv-pt -i grounding-dino-tiny-ONNX/onnx/model.onnx -o imx500-conversion ghog-env 1.002s 08:22 | |
2025-03-14 08:22:54,326 INFO : Running version 1.10.0 [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:148] | |
2025-03-14 08:22:54,326 INFO : Converting grounding-dino-tiny-ONNX/onnx/model.onnx [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:148] | |
2025-03-14 08:22:57,705 ERROR : CODE: [EXEC] 'NoneType' object cannot be interpreted as an integer [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:160] | |
Traceback (most recent call last): | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/main.py", line 143, in execute | |
g, metadata = self.convert_model(args.input_path, vis_dir) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/main.py", line 61, in convert_model | |
parser = self.get_parser(model_path, vis_dir) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/main.py", line 57, in get_parser | |
return self._parser_cls(model_path, vis_dir) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_parser.py", line 62, in __init__ | |
model = self.run_simplifier(model_path) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_parser.py", line 74, in run_simplifier | |
onnx_model = onnx_sim.simplify() | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 70, in simplify | |
self._constant_folding() | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 177, in _constant_folding | |
constant_to_add = self._obtain_folded_constants_to_add(nodes_to_delete) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 278, in _obtain_folded_constants_to_add | |
inferred_nodes = self._infer_vals(needs_infer_nodes) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 328, in _infer_vals | |
res.update(self._ort_infer_vals(nodes)) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 368, in _ort_infer_vals | |
input_feed = get_input_feed(self.onnx_model) | |
File "~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/pytorch/onnx_parser/onnx_simplifier.py", line 364, in get_input_feed | |
input_data = np.random.randn(*input_shape).astype(np_type) | |
File "numpy/random/mtrand.pyx", line 1287, in numpy.random.mtrand.RandomState.randn | |
File "numpy/random/mtrand.pyx", line 1448, in numpy.random.mtrand.RandomState.standard_normal | |
File "_common.pyx", line 636, in numpy.random._common.cont | |
TypeError: 'NoneType' object cannot be interpreted as an integer | |
2025-03-14 08:22:57,707 ERROR : CODE: [EXEC] 'NoneType' object cannot be interpreted as an integer [~/.virtualenvs/ghog-env/lib/python3.10/site-packages/uni/common/logger.py:154] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment