Skip to main content

Posts

Showing posts from May, 2022

TF 1.13.1 Inference From Model Frozen in Python [Working]

 In Visual Studio 2017: Download contents from: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-windows-x86_64-1.13.1.zip This has the prebuilt binaries for C - doesn't work for C++: We use the one with GPU support but you can download cpu only as well. We extract it in C:\libtensorflow-gpu-windows-x86_64-1.13.1 Then: Set Debug mode to x64 Then go to Project >> Properties and: In VC++ Directories add path: C:\libtensorflow-gpu-windows-x86_64-1.13.1 in Include Directories and Library Directories In Linker >> Input add: tensorflow.lib in Additional Dependencies By default the project creates cpp file, so go to Source Files and rename the main file to *.c For example: catdogtest.cpp to catdogtest.c If you get library missing error make sure you've added correct paths in VC++ Directories and Linker You should copy tensorflow.dll from C:\libtensorflow-gpu-windows-x86_64-1.13.1 to project source files directory and add it to source files by right

Compile TF 1.13.1 with Bazel - Windows 10 - CPU [ Working ]

Bazel Version: 0.20.0 Python Version: 3.6.7 Visual Studio 2015 Setup Python, MYS2, Bazel, Visual Studio  See: https://algidus.blogspot.com/2022/05/compile-tf-1131-bazel-windows-10.html git clone --recursive https://github.com/tensorflow/tensorflow Good Guide: https://github.com/guikarist/tensorflow-windows-build-script - for idea but his powershell script didn't work Info: Make sure you run command prompt as admin Make sure you replace checksum of icu: For TF1.13.1, change the sha256 to 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 in file tensorflow/third_party/icu/workspace.bzl from e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 All Logs just in case: F:\_ML\tensorflow_windows_build_script\tensorflow-windows-build-script\source>python configure.py WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files: nul WARNING: Running Bazel server needs to be kille