issues
search
urakubo
/
UNI-EM
A unified environment for DNN-based automated segmentation of neuronal EM images
Other
35
stars
11
forks
source link
tensorflow系のライブラリをpyinstaller上で手動コピーしていた挙動を修正。
#1
Closed
tamutamu
closed
5 years ago
tamutamu
commented
5 years ago
起きていた問題
train.exe実行時にtensorflow.contribのライブラリが見つからないというエラーが発生していた。
Pyinstallerのimport文の自動解析ではtensorflow.contribが拾われなかった模様。
調査
実際、tensorflowの_
import
.pyを見ると
https://github.com/tensorflow/tensorflow/blob/53dd73a538916cbfd96877c95dfd42eb6b92ed1c/tensorflow/__init__.py#L27
Layzloaderというモノでロードされていることから、Pyinstallerが標準では対応していなかったのではと思われる。
参考
https://stackoverflow.com/questions/50628915/pyinstaller-tensorflow-contrib-lazy-loader-error-at-runtime
起きていた問題
調査
実際、tensorflowの_import.pyを見ると
参考