File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
models/public/regnetx-3.2gf Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 15
15
import pycls .core .checkpoint
16
16
import pycls .models .model_zoo
17
17
18
- def regnetx_32gf (weights_path ):
19
- model = pycls .models .model_zoo .regnetx ("RegNetX-3.2GF" )
18
+ def regnet (config_path , weights_path ):
19
+ pycls .core .config .cfg .merge_from_file (config_path )
20
+ model = pycls .models .model_zoo .RegNet ()
20
21
pycls .core .checkpoint .load_checkpoint (weights_path , model )
21
22
return model
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ description: >-
21
21
Codebase for Image Classification Research <https://github.com/facebookresearch/pycls>.
22
22
task_type : classification
23
23
files :
24
+ - name : configs/dds_baselines/regnetx/RegNetX-3.2GF_dds_8gpu.yaml
25
+ size : 362
26
+ sha256 : 166491e53c668ecc181692dde27221b4358f1b889e7726396690c24547e53f5f
27
+ source : https://raw.githubusercontent.com/facebookresearch/pycls/ca89a79161e437deca8f39f31ceaef3b05873f30/configs/dds_baselines/regnetx/RegNetX-3.2GF_dds_8gpu.yaml
24
28
- name : pycls/__init__.py
25
29
size : 0
26
30
sha256 : e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
@@ -89,8 +93,9 @@ postprocessing:
89
93
conversion_to_onnx_args :
90
94
- --model-path=$config_dir
91
95
- --model-path=$dl_dir
92
- - --model-name=regnetx_32gf
96
+ - --model-name=regnet
93
97
- --import-module=model
98
+ - --model-param=config_path=r"$dl_dir/configs/dds_baselines/regnetx/RegNetX-3.2GF_dds_8gpu.yaml"
94
99
- --model-param=weights_path=r"$dl_dir/ckpt/regnetx-3.2gf.pyth"
95
100
- --input-shape=1,3,224,224
96
101
- --input-names=data
You can’t perform that action at this time.
0 commit comments