You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,13 +77,47 @@ model = resnet34(num_classes=10)
77
77
78
78
</div>
79
79
80
+
</div>
81
+
<divclass="codecell"markdown="1">
82
+
<divclass="input_area"markdown="1">
83
+
84
+
```python
85
+
model = resnet50(num_classes=10)
86
+
```
87
+
88
+
</div>
89
+
90
+
</div>
91
+
92
+
# Predefined Xresnet from fastai 1.
93
+
94
+
This ie simplified version from fastai v1. I did refactoring for better understand and experime with models. For example, change activation funtions, different stems, batchnorm and activation order etc. In v2 much powerfull realisation.
95
+
<divclass="codecell"markdown="1">
96
+
<divclass="input_area"markdown="1">
97
+
98
+
```python
99
+
from model_constructor.xresnet import*
100
+
```
101
+
102
+
</div>
103
+
104
+
</div>
105
+
<divclass="codecell"markdown="1">
106
+
<divclass="input_area"markdown="1">
107
+
108
+
```python
109
+
model = xresnet50()
110
+
```
111
+
112
+
</div>
113
+
80
114
</div>
81
115
82
116
# Some examples
83
117
84
118
We can experiment with models by changing some parts of model. Here only base functionality, but it can be easily extanded.
85
119
86
-
Here some examples:
120
+
Here is some examples:
87
121
88
122
89
123
## Custom stem
@@ -93,7 +127,7 @@ Stem with 3 conv layers
93
127
<divclass="input_area"markdown="1">
94
128
95
129
```python
96
-
model = Net(stem=partial(Stem, sizes=[32, 32]))
130
+
model = Net(stem=partial(Stem, stem_sizes=[32, 32]))
0 commit comments