aleo1 commited on
Commit
3d7c0b1
1 Parent(s): 16a6a3f

Upload 23 files

Browse files
cisen/model/builder.py CHANGED
@@ -1,25 +1,25 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
-
4
- # Copyright (c) 2022, Huawei Technologies Co., Ltd. All rights reserved.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- from mmcv import Registry
18
- from mmcv import build_from_cfg
19
-
20
- MODELS = Registry('model')
21
-
22
-
23
- def build_model(config):
24
-
25
- return build_from_cfg(config, MODELS)
 
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ # Copyright (c) 2022, Huawei Technologies Co., Ltd. All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ from mmcv import Registry
18
+ from mmcv import build_from_cfg
19
+
20
+ MODELS = Registry('model')
21
+
22
+
23
+ def build_model(config):
24
+
25
+ return build_from_cfg(config, MODELS)
cisen/utils/bpe_simple_vocab_16e6.txt.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b74bc90eaf4e663f1c0a9a01ffae52a90b2d22af1e733d15b2a1ea049b45ad37
3
- size 132
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:924691ac288e54409236115652ad4aa250f48203de50a9e4722a6ecd48d6804a
3
+ size 1356917