wucng commited on
Commit
8c18489
1 Parent(s): 207bdfd

Upload model

Browse files
Files changed (3) hide show
  1. config.json +2 -3
  2. model.safetensors +2 -2
  3. modeling_resnet.py +2 -1
config.json CHANGED
@@ -1,11 +1,10 @@
1
  {
2
  "architectures": [
3
- "ResnetModelForImageClassification"
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:dd440420f1c8ac274d3024e2419f527d44650421deeb50808dd829c4f4ddc5d3
3
- size 46808208
 
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):