You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm exporting disk+lightglue, does this warning mean that this variable is fixed to the value it had when exporting to ONNX? If that's the case, will there be any issues when running disk?
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/_unets/unet.py:39: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if inp.size(1) != self.in_features:
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/unets/unet.py:45: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if (inp.size(2) % input_size_divisor != 0) or (inp.size(3) % input_size_divisor != 0):
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/disk.py:57: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if unet_output.shape[1] != self.desc_dim + 1:
/root/LightGlue-ONNX/lightglue_onnx/disk.py:47: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
kpts_len = torch.tensor(scores.shape[0]) # Still dynamic despite trace warning
/root/LightGlue-ONNX/lightglue_onnx/disk.py:47: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad(True), rather than torch.tensor(sourceTensor).
kpts_len = torch.tensor(scores.shape[0]) # Still dynamic despite trace warning
/root/LightGlue-ONNX/lightglue_onnx/disk.py:48: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
max_keypoints = torch.minimum(torch.tensor(n), kpts_len)
/usr/local/lib/python3.10/dist-packages/torch/onnx/symbolic_helper.py:1515: UserWarning: ONNX export mode is set to TrainingMode.EVAL, but operator 'instance_norm' is set to train=True. Exporting with train=True.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/torch/onnx/symbolic_opset9.py:5858: UserWarning: Exporting aten::index operator of advanced indexing in opset 17 is achieved by combination of multiple ONNX operators, including Reshape, Transp
The text was updated successfully, but these errors were encountered:
When I'm exporting disk+lightglue, does this warning mean that this variable is fixed to the value it had when exporting to ONNX? If that's the case, will there be any issues when running disk?
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/_unets/unet.py:39: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if inp.size(1) != self.in_features:
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/unets/unet.py:45: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if (inp.size(2) % input_size_divisor != 0) or (inp.size(3) % input_size_divisor != 0):
/usr/local/lib/python3.10/dist-packages/kornia/feature/disk/disk.py:57: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if unet_output.shape[1] != self.desc_dim + 1:
/root/LightGlue-ONNX/lightglue_onnx/disk.py:47: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
kpts_len = torch.tensor(scores.shape[0]) # Still dynamic despite trace warning
/root/LightGlue-ONNX/lightglue_onnx/disk.py:47: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad(True), rather than torch.tensor(sourceTensor).
kpts_len = torch.tensor(scores.shape[0]) # Still dynamic despite trace warning
/root/LightGlue-ONNX/lightglue_onnx/disk.py:48: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
max_keypoints = torch.minimum(torch.tensor(n), kpts_len)
/usr/local/lib/python3.10/dist-packages/torch/onnx/symbolic_helper.py:1515: UserWarning: ONNX export mode is set to TrainingMode.EVAL, but operator 'instance_norm' is set to train=True. Exporting with train=True.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/torch/onnx/symbolic_opset9.py:5858: UserWarning: Exporting aten::index operator of advanced indexing in opset 17 is achieved by combination of multiple ONNX operators, including Reshape, Transp
The text was updated successfully, but these errors were encountered: