Update README.md
Browse files
README.md
CHANGED
|
@@ -1,20 +1,19 @@
|
|
| 1 |
-
<h1>
|
| 2 |
finetuned from PyTorch ResNet18
|
| 3 |
|
| 4 |
-
<h2>
|
| 5 |
-
0:
|
| 6 |
-
1:
|
| 7 |
-
2:
|
| 8 |
-
3:
|
| 9 |
-
4:
|
| 10 |
-
5: Lions Mane Jellyfish<br>
|
| 11 |
|
| 12 |
<h2>How to Use:</h2>
|
| 13 |
<pre><code class="python">
|
| 14 |
import torchvision
|
| 15 |
from torchvision.models import resnet18
|
| 16 |
model = resnet18(weights=None)
|
| 17 |
-
model_weights_path = '
|
| 18 |
model.load_state_dict(torch.load(model_weights_path))
|
| 19 |
model.eval()
|
| 20 |
</pre>
|
|
|
|
| 1 |
+
<h1>Flower Classifier</h1>
|
| 2 |
finetuned from PyTorch ResNet18
|
| 3 |
|
| 4 |
+
<h2>Flower Label</h2>
|
| 5 |
+
0: Lotus<br>
|
| 6 |
+
1: Orchid<br>
|
| 7 |
+
2: Tulip<br>
|
| 8 |
+
3: Sunflower<br>
|
| 9 |
+
4: Lilly<br>
|
|
|
|
| 10 |
|
| 11 |
<h2>How to Use:</h2>
|
| 12 |
<pre><code class="python">
|
| 13 |
import torchvision
|
| 14 |
from torchvision.models import resnet18
|
| 15 |
model = resnet18(weights=None)
|
| 16 |
+
model_weights_path = 'resnet18_flower_classification.pth'
|
| 17 |
model.load_state_dict(torch.load(model_weights_path))
|
| 18 |
model.eval()
|
| 19 |
</pre>
|