Update README.md
Browse files
    	
        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(( | 
| 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
         | 
