|
1 | 1 | __all__ = [ |
2 | | - # "ice_mobilenetv2_100", |
3 | | - # "ice_mobilenetv2_110d", |
4 | | - # "ice_mobilenetv2_120d", |
5 | | - # "ice_mobilenetv2_140", |
6 | | - "ice_mobilenetv3_large_075", |
7 | | - "ice_mobilenetv3_large_100", |
8 | | - "ice_mobilenetv3_rw", |
9 | | - "ice_mobilenetv3_small_075", |
10 | | - "ice_mobilenetv3_small_100", |
11 | | - "ice_tf_mobilenetv3_large_075", |
12 | | - "ice_tf_mobilenetv3_large_100", |
13 | | - "ice_tf_mobilenetv3_large_minimal_100", |
14 | | - "ice_tf_mobilenetv3_small_075", |
15 | | - "ice_tf_mobilenetv3_small_100", |
16 | | - "ice_tf_mobilenetv3_small_minimal_100", |
| 2 | + # "mobilenetv2_100", |
| 3 | + # "mobilenetv2_110d", |
| 4 | + # "mobilenetv2_120d", |
| 5 | + # "mobilenetv2_140", |
| 6 | + "mobilenetv3_large_075", |
| 7 | + "mobilenetv3_large_100", |
| 8 | + "mobilenetv3_rw", |
| 9 | + "mobilenetv3_small_075", |
| 10 | + "mobilenetv3_small_100", |
| 11 | + "tf_mobilenetv3_large_075", |
| 12 | + "tf_mobilenetv3_large_100", |
| 13 | + "tf_mobilenetv3_large_minimal_100", |
| 14 | + "tf_mobilenetv3_small_075", |
| 15 | + "tf_mobilenetv3_small_100", |
| 16 | + "tf_mobilenetv3_small_minimal_100", |
17 | 17 | ] |
18 | 18 |
|
19 | 19 | from icevision.soft_dependencies import SoftDependencies |
20 | 20 |
|
21 | 21 | from timm.models.mobilenetv3 import * |
22 | 22 |
|
23 | 23 |
|
24 | | -# def ice_mobilenetv2_100(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 24 | +# def mobilenetv2_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
25 | 25 | # return mobilenetv2_100( |
26 | 26 | # pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
27 | 27 | # ) |
28 | 28 |
|
29 | 29 |
|
30 | | -# def ice_mobilenetv2_110d(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 30 | +# def mobilenetv2_110d(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
31 | 31 | # return mobilenetv2_110d( |
32 | 32 | # pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
33 | 33 | # ) |
34 | 34 |
|
35 | 35 |
|
36 | | -# def ice_mobilenetv2_120d(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 36 | +# def mobilenetv2_120d(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
37 | 37 | # return mobilenetv2_120d( |
38 | 38 | # pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
39 | 39 | # ) |
40 | 40 |
|
41 | 41 |
|
42 | | -# def ice_mobilenetv2_140(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 42 | +# def mobilenetv2_140(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
43 | 43 | # return mobilenetv2_140( |
44 | 44 | # pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
45 | 45 | # ) |
46 | 46 |
|
47 | 47 |
|
48 | | -def ice_mobilenetv3_large_075(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 48 | +def mobilenetv3_large_075(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
49 | 49 | return mobilenetv3_large_075( |
50 | 50 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
51 | 51 | ) |
52 | 52 |
|
53 | 53 |
|
54 | | -def ice_mobilenetv3_large_100(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 54 | +def mobilenetv3_large_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
55 | 55 | return mobilenetv3_large_100( |
56 | 56 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
57 | 57 | ) |
58 | 58 |
|
59 | 59 |
|
60 | | -def ice_mobilenetv3_rw(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 60 | +def mobilenetv3_rw(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
61 | 61 | return mobilenetv3_rw( |
62 | 62 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
63 | 63 | ) |
64 | 64 |
|
65 | 65 |
|
66 | | -def ice_mobilenetv3_small_075(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 66 | +def mobilenetv3_small_075(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
67 | 67 | return mobilenetv3_small_075( |
68 | 68 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
69 | 69 | ) |
70 | 70 |
|
71 | 71 |
|
72 | | -def ice_mobilenetv3_small_100(pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs): |
| 72 | +def mobilenetv3_small_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
73 | 73 | return mobilenetv3_small_100( |
74 | 74 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
75 | 75 | ) |
76 | 76 |
|
77 | 77 |
|
78 | | -def ice_tf_mobilenetv3_large_075( |
79 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
80 | | -): |
| 78 | +def tf_mobilenetv3_large_075(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
81 | 79 | return tf_mobilenetv3_large_075( |
82 | 80 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
83 | 81 | ) |
84 | 82 |
|
85 | 83 |
|
86 | | -def ice_tf_mobilenetv3_large_100( |
87 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
88 | | -): |
| 84 | +def tf_mobilenetv3_large_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
89 | 85 | return tf_mobilenetv3_large_100( |
90 | 86 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
91 | 87 | ) |
92 | 88 |
|
93 | 89 |
|
94 | | -def ice_tf_mobilenetv3_large_minimal_100( |
95 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
96 | | -): |
| 90 | +def tf_mobilenetv3_large_minimal_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
97 | 91 | return tf_mobilenetv3_large_100( |
98 | 92 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
99 | 93 | ) |
100 | 94 |
|
101 | 95 |
|
102 | | -def ice_tf_mobilenetv3_small_075( |
103 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
104 | | -): |
| 96 | +def tf_mobilenetv3_small_075(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
105 | 97 | return tf_mobilenetv3_small_075( |
106 | 98 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
107 | 99 | ) |
108 | 100 |
|
109 | 101 |
|
110 | | -def ice_tf_mobilenetv3_small_100( |
111 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
112 | | -): |
| 102 | +def tf_mobilenetv3_small_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
113 | 103 | return tf_mobilenetv3_small_100( |
114 | 104 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
115 | 105 | ) |
116 | 106 |
|
117 | 107 |
|
118 | | -def ice_tf_mobilenetv3_small_minimal_100( |
119 | | - pretrained=True, out_indices=(0, 1, 2, 3, 4), **kwargs |
120 | | -): |
| 108 | +def tf_mobilenetv3_small_minimal_100(pretrained=True, out_indices=(2, 3, 4), **kwargs): |
121 | 109 | return tf_mobilenetv3_small_100( |
122 | 110 | pretrained=pretrained, features_only=True, out_indices=out_indices, **kwargs |
123 | 111 | ) |
0 commit comments