This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:npu:demos:vgg16 [2023/09/17 22:49] sravan [Get source code] |
products:sbc:vim4:npu:demos:vgg16 [2024/01/04 21:24] (current) louis old revision restored (2023/09/20 01:13) |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> | ~~tag> | ||
- | ====== VGG16 Tensorflow | + | ====== VGG16 TensorFlow |
{{indexmenu_n> | {{indexmenu_n> | ||
Line 13: | Line 13: | ||
```shell | ```shell | ||
- | git clone https:// | + | $ git clone https:// |
``` | ``` | ||
Line 20: | Line 20: | ||
==== Build virtual environment ==== | ==== Build virtual environment ==== | ||
- | Follow Docker official | + | Follow Docker official |
- | Get Docker. | + | Then fetch the prebuilt NPU Docker |
```shell | ```shell | ||
Line 34: | Line 34: | ||
==== Get convert tool ==== | ==== Get convert tool ==== | ||
- | Download Tool from [[gl> | + | Download Tool from [[gl> |
```shell | ```shell | ||
Line 42: | Line 42: | ||
==== Convert ==== | ==== Convert ==== | ||
- | Keras model can convert rknn model directly. But this demo is to convert tensorflow | + | We first need to convert the Keras model('' |
```shell | ```shell | ||
- | git clone https:// | + | $ git clone https:// |
``` | ``` | ||
- | Enter '' | + | Then we need to convert the TensorFlow model to an ADLA model ('' |
+ | |||
+ | Enter '' | ||
```sh convert_adla.sh | ```sh convert_adla.sh | ||
Line 76: | Line 78: | ||
``` | ``` | ||
- | Run '' | + | Run '' |
```shell | ```shell | ||
Line 118: | Line 120: | ||
<WRAP tip > | <WRAP tip > | ||
- | If your **vgg16** model classes | + | If your **VGG16** model classes |
</ | </ | ||