Udayan012 commited on
Commit
56173d4
·
verified ·
1 Parent(s): 1c285d4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -46,7 +46,7 @@ cd tiny-cnn-classifier
46
  ### 2. Install Dependencies
47
  ```bash
48
  pip install torch torchvision pillow
49
-
50
  ### 3. Load the model
51
  ```python
52
  import torch
@@ -56,7 +56,7 @@ from model import CustomCNN
56
  model = CustomCNN()
57
  model.load_state_dict(torch.load("cnn_model.pth", map_location="cpu"))
58
  model.eval()
59
-
60
  ### 4. Run inference on an image
61
  ```python
62
  from torchvision import transforms
@@ -79,7 +79,7 @@ with torch.no_grad():
79
 
80
  classes = ['airplane','automobile','bird','cat','deer','dog','frog','horse','ship','truck']
81
  print("Predicted class:", classes[pred_class])
82
-
83
 
84
  ### Training Information
85
 
 
46
  ### 2. Install Dependencies
47
  ```bash
48
  pip install torch torchvision pillow
49
+ ```
50
  ### 3. Load the model
51
  ```python
52
  import torch
 
56
  model = CustomCNN()
57
  model.load_state_dict(torch.load("cnn_model.pth", map_location="cpu"))
58
  model.eval()
59
+ ```
60
  ### 4. Run inference on an image
61
  ```python
62
  from torchvision import transforms
 
79
 
80
  classes = ['airplane','automobile','bird','cat','deer','dog','frog','horse','ship','truck']
81
  print("Predicted class:", classes[pred_class])
82
+ ```
83
 
84
  ### Training Information
85