onnx2torch icon indicating copy to clipboard operation
onnx2torch copied to clipboard

Convert ONNX models to PyTorch.

Results 50 onnx2torch issues
Sort by recently updated
recently updated
newest added

I build a keras model and save it as onnx form. I use tf2onnx to convert the model. ``` model_input_signature = [ tf.TensorSpec(np.array((None, 3)), name='input'), ] output_path = "./save_for_mpc/" +...

I am getting this error while trying to convert onnx to pytorch. NotImplementedError: Converter is not implemented (OperationDescription(domain='', operation_type='BatchNormalization', version=7))

Hi I installed the newest package, but have the following error: from onnx2torch import convert ImportError: cannot import name 'convert' from partially initialized module 'onnx2torch' (most likely due to a...

I had this error on windows and ubuntu virtual machine ![image_2023-11-29_203351635](https://github.com/ENOT-AutoDL/onnx2torch/assets/145668867/6d39ef05-feb0-4076-8590-970ae9a6c55f)

Met the following error, hope to support operator 'ArgMax', thanks Traceback (most recent call last): File "anna_onnx2torch.py", line 38, in torch_model_1 = convert(onnx_model_path) File "/home/lin/anaconda3/envs/anna/lib/python3.8/site-packages/onnx2torch/converter.py", line 104, in convert converter...

feat

I met the NotImplementedError When I convert onnx model yolov3-12.onnx (https://github.com/onnx/models/blob/main/vision/object_detection_segmentation/yolov3/model/yolov3-12.onnx). ERROR: ``` Traceback (most recent call last): File "/home/anna/tools/converter/onnx2pytorch.py", line 157, in model_converted = onnx2pytorch(args.onnx_file, verify=args.verify, File "/home/anna/tools/converter/onnx2pytorch.py", line...

feat

### Discussed in https://github.com/ENOT-AutoDL/onnx2torch/discussions/138 Originally posted by **Alicodee** February 15, 2023 I need to use GNNExplainer which requires pytorch model. However, my GNN model is written in keras libraries. I...

feat

When you load a `Reshape` node, an `OnnxReshape` instance is created with custom logic for the torch.onnx export. (See https://github.com/ENOT-AutoDL/onnx2torch/blob/main/onnx2torch/node_converters/reshape.py#L32-L33 ) However, I'm getting segmentation faults when exporting the torch...

bug