Giter VIP home page Giter VIP logo

Comments (6)

peisun1115 avatar peisun1115 commented on May 22, 2024
  1. Can you upgrade to tensorflow 1.14.0?
  2. does it work if you do "bazel ...."?

from waymo-open-dataset.

MartinHahner avatar MartinHahner commented on May 22, 2024

I realized that last time, something with my conda environment went wrong, so I set up my conda environment from scratch again, now I am on Python 3.7.4 and Tensorflow 1.14.0, but unfortunatelly, it still doesn't work :(

any suggestions?

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.9 (stretch)
Release:	9.9
Codename:	stretch

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ conda info

     active environment : pytorch
    active env location : ****/apps/anaconda3/envs/pytorch
            shell level : 1
       user config file : ~/.condarc
 populated config files : ~/.condarc
          conda version : 4.7.11
    conda-build version : 3.18.8
         python version : 3.7.3.final.0
       virtual packages : __cuda=9.1
       base environment : ****/apps/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : ****/apps/anaconda3/pkgs
                          ~/.conda/pkgs
       envs directories : ****/apps/anaconda3/envs
                          ~/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.11 requests/2.22.0 CPython/3.7.3 Linux/4.9.0-9-amd64 debian/9.9 glibc/2.24
                UID:GID : 183945:210598
             netrc file : None
           offline mode : False

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ python
Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> print(tf.__version__)
1.14.0
>>> 

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ ./configure.sh

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ cat .bazelrc 
build -c opt
build --cxxopt="-std=c++11"
build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
build --auto_output_filter=subpackages
build --copt="-Wall" --copt="-Wno-sign-compare"
build --incompatible_bzl_disallow_load_after_statement=false
query --incompatible_bzl_disallow_load_after_statement=false
build --action_env TF_HEADER_DIR="****/apps/anaconda3/envs/pytorch/lib/python3.7/site-packages/tensorflow/include"
build --action_env TF_SHARED_LIBRARY_DIR="****/anaconda3/envs/pytorch/lib/python3.7/site-packages/tensorflow"
build --action_env TF_SHARED_LIBRARY_NAME="libtensorflow_framework.so.1"
build --action_env TF_NEED_CUDA="0"

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ bazel clean
$TEST_TMPDIR defined: output root default is '****//apps/bazel/tmp/' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ bazel test waymo_open_dataset/metrics:all
$TEST_TMPDIR defined: output root default is '****/apps/bazel/tmp/' and max_idle_secs default is '15'.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 test targets...
INFO: Deleting stale sandbox base *****/7949466ed62fa6a3ae0dd7b5ff840d35/sandbox
INFO: Elapsed time: 0.385s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action

(pytorch) ***/repositories/waymo-open-dataset (master) 
$ bazel build waymo_open_dataset/metrics/tools/compute_detection_metrics_main
$TEST_TMPDIR defined: output root default is '****/apps/bazel/tmp/' and max_idle_secs default is '15'.
WARNING: Usage: bazel build <options> <targets>.
Invoke `bazel help build` for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
INFO: Elapsed time: 0.046s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 22, 2024

You are building an empty target.

Try:
bazel build ...?

Can you list your directory structure (ls -R)?

from waymo-open-dataset.

MartinHahner avatar MartinHahner commented on May 22, 2024
(pytorch) ***/repositories/waymo-open-dataset (r1.0) 
$ ls -R
.:
bazel-bin       bazel-out       bazel-waymo-open-dataset  CONTRIBUTING.md  LICENSE    tf           tutorial            WORKSPACE
bazel-genfiles  bazel-testlogs  configure.sh              docs             README.md  third_party  waymo_open_dataset

./docs:
docker.md  images  labeling_specifications.md  quick_start.md

./docs/images:
cyclist-2D-labeling-example.png     pedestrian-3D-labeling-example.png  vehicle-3D-labeling-example.png
cyclist-3D-labeling-example.png     sign-3D-labeling-example.png
pedestrian-2D-labeling-example.png  vehicle-2D-labeling-example.png

./tf:
BUILD  build_config.bzl  BUILD.tpl  tf_configure.bzl

./third_party:
BUILD  glog.BUILD  __init__.py  six.BUILD  zlib.BUILD

./tutorial:
3d_point_cloud.png  BUILD  cpu-jupyter.Dockerfile  frames  jupyter_kernel.py  tutorial.ipynb

./waymo_open_dataset:
BUILD  common  dataset_pb2.py  dataset.proto  __init__.py  label_pb2.py  label.proto  math  metrics  protos  __pycache__  utils

./waymo_open_dataset/common:
BUILD  integral_types.h

./waymo_open_dataset/math:
aabox2d.h        box2d.h        exactfloat.cc       math_util.h   polygon2d_test.cc  vec2d.h
aabox2d_test.cc  box2d_test.cc  exactfloat.h        polygon2d.cc  segment2d.cc       vec2d_test.cc
box2d.cc         BUILD          exactfloat_test.cc  polygon2d.h   segment2d.h

./waymo_open_dataset/metrics:
breakdown_generator.cc       detection_metrics.h        iou.h             metrics_utils_test.cc  test_utils.h
breakdown_generator.h        detection_metrics_test.cc  iou_test.cc       mot.cc                 tools
breakdown_generator_test.cc  hungarian.cc               matcher.cc        mot.h                  tracking_metrics.cc
BUILD                        hungarian.h                matcher.h         mot_test.cc            tracking_metrics.h
config_util.cc               hungarian_test.cc          matcher_test.cc   ops                    tracking_metrics_test.cc
config_util.h                __init__.py                metrics_utils.cc  python
detection_metrics.cc         iou.cc                     metrics_utils.h   test_utils.cc

./waymo_open_dataset/metrics/ops:
BUILD  detection_metrics_ops.cc  detection_metrics_ops_test.py  __init__.py  metrics_ops.cc  py_metrics_ops.py  utils.cc  utils.h

./waymo_open_dataset/metrics/python:
BUILD  config_util_py.py  config_util_test.py  detection_metrics.py  detection_metrics_test.py  __init__.py

./waymo_open_dataset/metrics/tools:
BUILD  compute_detection_metrics_main.cc  fake_ground_truths.bin  fake_predictions.bin

./waymo_open_dataset/protos:
breakdown.proto  BUILD  metrics.proto

./waymo_open_dataset/__pycache__:
dataset_pb2.cpython-37.pyc  __init__.cpython-37.pyc  label_pb2.cpython-37.pyc

./waymo_open_dataset/utils:
box_utils.py       BUILD        __pycache__           range_image_utils_test.py  transform_utils.py
box_utils_test.py  __init__.py  range_image_utils.py  test_utils.py              transform_utils_test.py

./waymo_open_dataset/utils/__pycache__:
__init__.cpython-37.pyc  range_image_utils.cpython-37.pyc  transform_utils.cpython-37.pyc


(pytorch) ***/repositories/waymo-open-dataset (r1.0) 
$ bazel build ...
$TEST_TMPDIR defined: output root default is '****/apps/bazel/tmp/' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
WARNING: Usage: bazel build <options> <targets>.
Invoke `bazel help build` for full description of usage and options.
Your request is correct, but requested an empty set of targets. Nothing will be built.
INFO: Analyzed 0 targets (0 packages loaded, 0 targets configured).
INFO: Found 0 targets...
INFO: Deleting stale sandbox base *****/7949466ed62fa6a3ae0dd7b5ff840d35/sandbox
INFO: Elapsed time: 1.104s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 22, 2024

I've found the following related issue under tensorflow github issues:

tensorflow/tensorflow#28824

Maybe give it a try?

If you can tell me how to reproduce, i can help more

from waymo-open-dataset.

MartinHahner avatar MartinHahner commented on May 22, 2024

I read through the issue you mentioned, but I don't think it is related.

But now I also know why it didn't work, it was my mistake, I created this helper function in my .bashaliases

function bazel 
{
/path/to/bazel/executable/bazel-0.28.0-linux-x86_64 $1
}

instead of an alias like this

alias bazel='/path/to/bazel/executable/bazel-0.28.0-linux-x86_64'

So now it works, sorry that I bothered you.

from waymo-open-dataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.