Volcomix / virtual-background

Demo on adding virtual background to a live video stream in the browser
https://volcomix.github.io/virtual-background
Apache License 2.0
487 stars 124 forks source link

Failure to Build a particular version (2.5.0-rc3) #8

Closed dipankadas closed 3 years ago

dipankadas commented 3 years ago

Hi,

I am trying to build version 2.5.0-rc3 and Docker file looks like this

FROM tensorflow/tensorflow:devel
RUN git clone https://github.com/google/mediapipe.git /mediapipe_src
RUN git -C /tensorflow_src checkout refs/tags/v2.5.0-rc3 -b v2.5.0-rc3
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

And added the following line in entrypoint.sh

sed -i '/":tvos_arm64": COMMON_SRCS + MACH_SRCS + MACH_ARM_SRCS,/a ":emscripten_wasm": COMMON_SRCS + EMSCRIPTEN_SRCS,' /tensorflow_src/third_party/cpuinfo/BUILD.bazel

But I am getting this error:

ERROR: Analysis of target '//:tflite' failed; build aborted: /root/.cache/bazel/_bazel_root/00533da95dbcbd49bca844bdfd8d02a4/external/XNNPACK/BUILD.bazel:4433:26: Configurable attribute "deps" doesn't match this configuration (would a default condition help?).
Conditions checked:
 @XNNPACK//:linux_k8
 @XNNPACK//:linux_arm
 @XNNPACK//:linux_armeabi
 @XNNPACK//:linux_armhf
 @XNNPACK//:linux_armv7a
 @XNNPACK//:linux_aarch64
 @XNNPACK//:macos_x86_64
 @XNNPACK//:macos_arm64
 @XNNPACK//:windows_x86_64_clang
 @XNNPACK//:windows_x86_64_mingw
 @XNNPACK//:windows_x86_64_msys
 @XNNPACK//:windows_x86_64
 @XNNPACK//:android_armv7
 @XNNPACK//:android_arm64
 @XNNPACK//:android_x86
 @XNNPACK//:android_x86_64
 @XNNPACK//:ios_armv7
 @XNNPACK//:ios_arm64
 @XNNPACK//:ios_arm64e
 @XNNPACK//:ios_x86
 @XNNPACK//:ios_x86_64
 @XNNPACK//:watchos_armv7k
 @XNNPACK//:watchos_arm64_32
 @XNNPACK//:watchos_x86
 @XNNPACK//:watchos_x86_64
 @XNNPACK//:tvos_arm64
 @XNNPACK//:tvos_x86_64
 @XNNPACK//:emscripten_wasm
 @XNNPACK//:emscripten_wasmsimd
INFO: Elapsed time: 73.625s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (74 packages loaded, 1523 targets configured)
    Fetching @nodejs_linux_amd64; fetching 12s
    Fetching @emscripten_npm_linux; Restarting. 10s
    Fetching ...8d02a4/external/nodejs_linux_amd64/bin/nodejs; Extracting /root/.cache/bazel/_bazel_root/00533da95dbcbd49bca844bdfd8d02a4/external/nodejs_linux_amd64/bin/nodejs/temp1554428458845878867/node-v12.13.0-linux-x64.tar.xz 9s
error Command failed with exit code 1.

Can you please let me know what I am missing here?

Thanks,

Dipankar.

Volcomix commented 3 years ago

Hi @dipankadas, it looks like master branch has not been rebased yet in v2.5.0-rc3 tag of tensorflow. Hence besides the sed, you also need to revert from the remote emscripten toolchain to the old local one.

You can find the required changes in this commit: 381c82b7c5441d12be5edf093f6e2a6273504d39

dipankadas commented 3 years ago

Thanks for your help. Using the local emscripten toolchain worked. Closing the ticket.