Browse Source
modify features
Signed-off-by: gexy5 <xinyu.ge@zilliz.com>
main
gexy5
3 years ago
3 changed files with
2 additions and
1 deletions
-
movinet.py
-
BIN
result1.png
-
BIN
result2.png
|
@ -106,7 +106,8 @@ class Movinet(NNOperator): |
|
|
|
|
|
|
|
|
self.model.clean_activation_buffers() |
|
|
self.model.clean_activation_buffers() |
|
|
feats = self.model.forward_features(inputs) |
|
|
feats = self.model.forward_features(inputs) |
|
|
features = feats.to('cpu').squeeze(0).detach().numpy() |
|
|
|
|
|
|
|
|
features = feats.flatten(1) |
|
|
|
|
|
features = features.to('cpu').squeeze(0).detach().numpy() |
|
|
|
|
|
|
|
|
outs = self.model.head(feats) |
|
|
outs = self.model.head(feats) |
|
|
post_act = torch.nn.Softmax(dim=1) |
|
|
post_act = torch.nn.Softmax(dim=1) |
|
|
Width:
|
Height:
|
Size: 62 KiB
Width:
|
Height:
|
Size: 70 KiB
|
Width:
|
Height:
|
Size: 72 KiB
Width:
|
Height:
|
Size: 67 KiB
|