logo
Browse Source

modify features

Signed-off-by: gexy5 <xinyu.ge@zilliz.com>
main
gexy5 3 years ago
parent
commit
c6ec91eee7
  1. 3
      movinet.py
  2. BIN
      result1.png
  3. BIN
      result2.png

3
movinet.py

@ -106,7 +106,8 @@ class Movinet(NNOperator):
self.model.clean_activation_buffers()
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)
post_act = torch.nn.Softmax(dim=1)

BIN
result1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 70 KiB

BIN
result2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Loading…
Cancel
Save