Upload model
Browse files- config.json +2 -3
- model.safetensors +2 -2
- modeling_resnet.py +2 -1
config.json
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
{
|
2 |
"architectures": [
|
3 |
-
"
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "configuration_resnet.ResnetConfig",
|
7 |
-
"AutoModel": "modeling_resnet.ResnetModel"
|
8 |
-
"AutoModelForImageClassification": "modeling_resnet.ResnetModelForImageClassification"
|
9 |
},
|
10 |
"id2label": {
|
11 |
"0": "tench",
|
|
|
1 |
{
|
2 |
"architectures": [
|
3 |
+
"ResnetModel"
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "configuration_resnet.ResnetConfig",
|
7 |
+
"AutoModel": "modeling_resnet.ResnetModel"
|
|
|
8 |
},
|
9 |
"id2label": {
|
10 |
"0": "tench",
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b072267afe3d6da983e3e98aeb7222257736d592046d442a42197e223d6b6fc6
|
3 |
+
size 44755968
|
modeling_resnet.py
CHANGED
@@ -9,7 +9,8 @@ from dataclasses import dataclass
|
|
9 |
from typing import Optional, Tuple, List
|
10 |
from transformers.modeling_outputs import ModelOutput
|
11 |
from transformers import PretrainedConfig, PreTrainedModel
|
12 |
-
from resnet_model.configuration_resnet import ResnetConfig
|
|
|
13 |
|
14 |
@dataclass
|
15 |
class BaseModelOutputWithCls(ModelOutput):
|
|
|
9 |
from typing import Optional, Tuple, List
|
10 |
from transformers.modeling_outputs import ModelOutput
|
11 |
from transformers import PretrainedConfig, PreTrainedModel
|
12 |
+
#from resnet_model.configuration_resnet import ResnetConfig
|
13 |
+
from .configuration_resnet import ResnetConfig
|
14 |
|
15 |
@dataclass
|
16 |
class BaseModelOutputWithCls(ModelOutput):
|