Model Converter

Convert models between PyTorch, ONNX, and TensorFlow formats

Select Conversion Format

PyTorch

.pt, .pth files

ONNX

.onnx files

Drag & drop your model file here or click to browse

Conversion Code

# PyTorch to ONNX conversion import torch import torch.onnx # Load your model model = torch.load('model.pth') model.eval() # Example input dummy_input = torch.randn(1, 3, 224, 224) # Export to ONNX torch.onnx.export( model, dummy_input, "model.onnx", export_params=True, opset_version=11, do_constant_folding=True, input_names=['input'], output_names=['output'], dynamic_axes={'input': {0: 'batch_size'}, 'output': {0: 'batch_size'}} )

Supported Conversions

PyTorch → ONNX

Export PyTorch models for cross-platform deployment

ONNX → TensorFlow

Convert ONNX models to TensorFlow format

TensorFlow → TFLite

Optimize for mobile and edge devices

PyTorch → TorchScript

JIT compilation for production deployment