質問編集履歴
1
追記を記入しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -187,3 +187,49 @@
|
|
187
187
|
|
188
188
|
|
189
189
|
ここにより詳細な情報を記載してください。
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
### 追記
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
_________________________________________________________________
|
198
|
+
|
199
|
+
Model: "model_115"
|
200
|
+
|
201
|
+
_________________________________________________________________
|
202
|
+
|
203
|
+
Layer (type) Output Shape Param #
|
204
|
+
|
205
|
+
=================================================================
|
206
|
+
|
207
|
+
efficientnet-b7_input (Input (None, 224, 224, 3) 0
|
208
|
+
|
209
|
+
_________________________________________________________________
|
210
|
+
|
211
|
+
efficientnet-b7 (Model) (None, 2560) 64097680
|
212
|
+
|
213
|
+
=================================================================
|
214
|
+
|
215
|
+
Total params: 64,097,680
|
216
|
+
|
217
|
+
Trainable params: 63,786,960
|
218
|
+
|
219
|
+
Non-trainable params: 310,720
|
220
|
+
|
221
|
+
_________________________________________________________________
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
以下の方法により
|
226
|
+
|
227
|
+
```
|
228
|
+
|
229
|
+
activation_model = Model(inputs=model.input,
|
230
|
+
|
231
|
+
outputs=model.get_layer(layer_name).get_output_at(-1))
|
232
|
+
|
233
|
+
```
|
234
|
+
|
235
|
+
efficientnet_b7の層は取り出せましたがConvolutional層の取り出しができず、根本の解決策になっておりません
|