Changed model_type in config.json and MusheffConfig class to musheff
Browse files- README.md +1 -1
- config.json +4 -1
- configuration_musheff.py +1 -1
README.md
CHANGED
|
@@ -58,7 +58,7 @@ Here is how to use this model to classify a mushroom image into one of the 12 Ru
|
|
| 58 |
```python
|
| 59 |
import torch
|
| 60 |
from datasets import load_dataset
|
| 61 |
-
from transformers import AutoImageProcessor
|
| 62 |
|
| 63 |
|
| 64 |
dataset = load_dataset("SoFa325/12_popular_russia_mushrooms_edible_poisonous")
|
|
|
|
| 58 |
```python
|
| 59 |
import torch
|
| 60 |
from datasets import load_dataset
|
| 61 |
+
from transformers import AutoModel, AutoImageProcessor
|
| 62 |
|
| 63 |
|
| 64 |
dataset = load_dataset("SoFa325/12_popular_russia_mushrooms_edible_poisonous")
|
config.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
| 2 |
"_name_or_path": "blasisd/musheff",
|
| 3 |
"architectures": ["Musheff"],
|
| 4 |
"dropout_rate": 0.3,
|
| 5 |
-
"model_type": "
|
|
|
|
|
|
|
|
|
|
| 6 |
"num_classes": 12,
|
| 7 |
"label2id": {
|
| 8 |
"Agaricus_bisporus_edible": "0",
|
|
|
|
| 2 |
"_name_or_path": "blasisd/musheff",
|
| 3 |
"architectures": ["Musheff"],
|
| 4 |
"dropout_rate": 0.3,
|
| 5 |
+
"model_type": "musheff",
|
| 6 |
+
"backbone_config": {
|
| 7 |
+
"model_type": "efficientnet_b3"
|
| 8 |
+
},
|
| 9 |
"num_classes": 12,
|
| 10 |
"label2id": {
|
| 11 |
"Agaricus_bisporus_edible": "0",
|
configuration_musheff.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import PretrainedConfig
|
|
| 3 |
|
| 4 |
|
| 5 |
class MusheffConfig(PretrainedConfig):
|
| 6 |
-
model_type = "
|
| 7 |
|
| 8 |
def __init__(self, num_classes=12, dropout_rate=0.3, **kwargs):
|
| 9 |
self.num_classes = num_classes
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
class MusheffConfig(PretrainedConfig):
|
| 6 |
+
model_type = "musheff"
|
| 7 |
|
| 8 |
def __init__(self, num_classes=12, dropout_rate=0.3, **kwargs):
|
| 9 |
self.num_classes = num_classes
|