Commit Graph

2 Commits

Author SHA1 Message Date
Ping Yu ec3a14472b
[security] update all package.json for security patches (#753)
* update all package.json for security patches

* fixed tests
2022-03-21 14:34:49 -07:00
Shanqing Cai 4c02b542a4
[visualize-convnet] Add new example: visualize-convnet (#201)
This TensorFlow.js example demonstrates some techniques of visualizing
the internal workings of a convolutional neural network (convnet), including:

- Finding what convolutional layers' filters are sensitive to after
  training: calculating maximally-activating input image for
  convolutional filters through gradient ascent in the input space.
- Getting the internal activation of a convnet by uisng the
  functional model API of TensorFlow.js
- Finding which part of an input image is most relevant to the
  classification decision made by a convnet (VGG16 in this case),
  using the gradient-based class activation map (CAM) approach.

Example screenshots:
![image](https://user-images.githubusercontent.com/16824702/50791933-5826b380-1291-11e9-82ec-feb883078dc7.png)
![image](https://user-images.githubusercontent.com/16824702/50791951-61b01b80-1291-11e9-9fe7-6e0534cdf7ba.png)
![image](https://user-images.githubusercontent.com/16824702/50791966-6f65a100-1291-11e9-9941-aaf6fe59902b.png)
2019-01-23 23:30:34 -05:00