shivamsharma120120 commited on
Commit
b4294ef
·
verified ·
1 Parent(s): a415b7d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -39,7 +39,7 @@ session = ort.InferenceSession("resnet18_cifar10.onnx")
39
 
40
  # Preprocess image
41
  def preprocess(img_path):
42
- img = Image.open(img_path).convert("RGB").resize((32, 32))
43
  img_data = np.array(img).astype(np.float32) / 255.0
44
  img_data = np.transpose(img_data, (2, 0, 1)) # CHW format
45
  img_data = np.expand_dims(img_data, axis=0) # Batch dimension
 
39
 
40
  # Preprocess image
41
  def preprocess(img_path):
42
+ img = Image.open(img_path).convert("RGB").resize((224, 224))
43
  img_data = np.array(img).astype(np.float32) / 255.0
44
  img_data = np.transpose(img_data, (2, 0, 1)) # CHW format
45
  img_data = np.expand_dims(img_data, axis=0) # Batch dimension