|
Download README.md from Mehriddin1997/EMNIST-Letters-CNN: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/Mehriddin1997/EMNIST-Letters-CNN/resolve/main/README.md
- Command line
-
hf download hf://Mehriddin1997/EMNIST-Letters-CNN/README.md
-
curl -L -o README.md https://huggingface.co/Mehriddin1997/EMNIST-Letters-CNN/resolve/main/README.md
739 Bytes
| # EMNIST Letters CNN (A–Z) | |
| This model classifies 28x28 grayscale images into Latin letters A–Z. | |
| ## Files | |
| - letter_cnn_state_dict.pt : model weights | |
| - model.py : model architecture | |
| ## Load (example) | |
| ```python | |
| import torch, string | |
| from model import LetterCNN | |
| letters = string.ascii_uppercase | |
| m = LetterCNN() | |
| m.load_state_dict(torch.load("letter_cnn_state_dict.pt", map_location="cpu")) | |
| m.eval() | |
| --- | |
| ## 5) Repo’dagi fayldan localda ishlatish (download qilgandan keyin) | |
| Siz repo’dan `letter_cnn_state_dict.pt` va `model.py` ni yuklab olasiz, keyin: | |
| ```python | |
| import torch | |
| from model import LetterCNN | |
| m = LetterCNN() | |
| m.load_state_dict(torch.load("letter_cnn_state_dict.pt", map_location="cpu")) | |
| m.eval() | |
| print("Model ready!") |