Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:keras [2019/12/09 18:05] – scipio | tips:keras [2019/12/17 15:48] (current) – [tensorflow] scipio | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== tensorflow ===== | ===== tensorflow ===== | ||
+ | * yay bazelisk | ||
+ | |||
+ | < | ||
+ | pip install -U pip six numpy wheel setuptools mock | ||
+ | pip install -U keras_applications --no-deps | ||
+ | pip install -U keras_preprocessing --no-deps | ||
+ | |||
+ | # tf 2 | ||
+ | git clone https:// | ||
+ | cd tensorflow | ||
+ | |||
+ | # tf 1.15 | ||
+ | wget https:// | ||
+ | tar zxvf v1.15.0.tar.gz | ||
+ | </ | ||
+ | |||
+ | only for tf 2 | ||
< | < | ||
- | git clone ... | + | wget https://git.archlinux.org/ |
+ | patch -Np1 -i Add-grpc-fix-for-gettid.patch | ||
</ | </ | ||
- | edit configure.py and modify | ||
< | < | ||
+ | export TF_IGNORE_MAX_BAZEL_VERSION=1 | ||
+ | export TF_NEED_CUDA=1 | ||
./configure | ./configure | ||
+ | </ | ||
+ | |||
+ | for atf 1.15 | ||
+ | < | ||
+ | echo 0.26.1 > .bazelversion | ||
</ | </ | ||
Line 38: | Line 62: | ||
< | < | ||
bazel build // | bazel build // | ||
+ | |||
+ | # ??? | ||
+ | bazelisk \ | ||
+ | build --config=opt \ | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | ./ | ||
+ | pip install / | ||
</ | </ | ||
+ | |||
+ | ===== from keras to opencv | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
===== Export protobuf ===== | ===== Export protobuf ===== |