1import onnxruntime as ort
2import numpy as np
3
4# Load model
5session = ort.InferenceSession('melanoma_model.onnx')
6
7# Preprocess image (512x512 RGB, normalized [0,1])
8image = preprocess_image(your_image) # Shape: (1, 3, 512, 512)
9
10# Run inference
11output = session.run(None, {'input': image})
12prediction = output[0][0] # Shape: (2,)