PAIR-code / what-if-tool

Source code/webpage/demos for the What-If Tool
https://pair-code.github.io/what-if-tool
Apache License 2.0
905 stars 169 forks source link

Can I build a TB plugin from this repo to replace the plugin in TB #33

Open mengban opened 4 years ago

mengban commented 4 years ago

If I can, is there any instruction? I did't found anything about this in the repo

mengban commented 4 years ago

Hi @jameswex I have read development.md, and follow the instruction. But after run:bazel run wit_tensorboard/pip_package:build_pip_package, the result listed below, and I can't find /tmp/wit-pip directory. My OS is macOs 10.15.1: python 2.7 tensorflow: tf-nightly

name@XX:~/myrepo/what-if-tool$ bazel run wit_tensorboard/pip_package:build_pip_package INFO: Analyzed target //wit_tensorboard/pip_package:build_pip_package (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //wit_tensorboard/pip_package:build_pip_package up-to-date: bazel-bin/wit_tensorboard/pip_package/build_pip_package INFO: Elapsed time: 4.430s, Critical Path: 0.02s INFO: 0 processes. INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action

mengban commented 4 years ago

Hi @jameswex . I read the script build_pip_package.sh carefully again and find sth may be wrong in my PC. I did some changes like this:
RUNFILES="/data00/home/my ccount/.cache/bazel/_bazel_myaccount/b85cc74e3bccef80ecfa2c6ec638b8dc/execroot/"

plugin_runfile_dir="${RUNFILES}/ai_google_pair_wit" cp "$plugin_runfile_dir/bazel-out/k8-fastbuild/bin/wit_tensorboard/pip_package/build_pip_package.runfiles/ai_google_pair_wit/wit_dashboard/wit_tb_bin.html " wit_tensorboard/static I think some path maybe wrong in my machine according to the script, but I don't know why. I just installed wit-tensorboard by pip after changed the build_pip_package.sh as above.

mengban commented 4 years ago

Hi @jameswex I have read development.md, and follow the instruction. But after run:bazel run wit_tensorboard/pip_package:build_pip_package, the result listed below, and I can't find /tmp/wit-pip directory. My OS is macOs 10.15.1: python 2.7 tensorflow: tf-nightly

name@XX:~/myrepo/what-if-tool$ bazel run wit_tensorboard/pip_package:build_pip_package INFO: Analyzed target //wit_tensorboard/pip_package:build_pip_package (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //wit_tensorboard/pip_package:build_pip_package up-to-date: bazel-bin/wit_tensorboard/pip_package/build_pip_package INFO: Elapsed time: 4.430s, Critical Path: 0.02s INFO: 0 processes. INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action

  • command -v virtualenv
  • command -v npm

sorry the OS is debian 8 not MacOS.

jameswex commented 4 years ago

We're still in the process of having the what-if tool show up in Tensorboard through this new code repo as a TensorBoard dynamic plugin. But, until that is complete, the best way to update the What-If Tool used in TensorBoard is to just git clone the TensorBoard repository and update the WIT code directly in the plugins/interactive_inference directory and rebuild Tensorboard from that code.