Update README.md
Browse files
README.md
CHANGED
|
@@ -38,6 +38,10 @@ checkpoint = torch.load(checkpoint_path)
|
|
| 38 |
model.load_state_dict(checkpoint['model_state_dict'])
|
| 39 |
|
| 40 |
print(f"Validation Accuracy: {checkpoint["val_accuracy"]:.2f}")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
## Training Details
|
|
|
|
| 38 |
model.load_state_dict(checkpoint['model_state_dict'])
|
| 39 |
|
| 40 |
print(f"Validation Accuracy: {checkpoint["val_accuracy"]:.2f}")
|
| 41 |
+
|
| 42 |
+
input_data = torch.randn(1, 1, 28, 28)
|
| 43 |
+
results = model.predict(input_data.to(device))
|
| 44 |
+
print("Results:", results)
|
| 45 |
```
|
| 46 |
|
| 47 |
## Training Details
|