Giter Club home page Giter Club logo

Comments (11)

yzcjtr avatar yzcjtr commented on August 11, 2024

Hi, can you confirm if your python and tensorflow versions are consistent with ours?

from geonet.

ravikt avatar ravikt commented on August 11, 2024

Python version is 2.7.12 and tensorflow is 1.1.0

from geonet.

yzcjtr avatar yzcjtr commented on August 11, 2024

Can you post your test command here? Please make sure the seq_length is consistent between data preparation and test stage. Also, try to run the code within a single GPU.

from geonet.

ravikt avatar ravikt commented on August 11, 2024

The full command is as follows python geonet_main.py --mode=test_pose --dataset_dir=/ravikt/geonet_data/processed/ --init_ckpt_file=/ravikt/geonet/geonet_posenet/model --batch_size=1 --seq_length=5 --pose_test_seq=8 --output_dir=/ravikt/geonet_data/predictions/
The code ran error free on the processed data on a single gpu with --seq_length=5. However, I did not get any output predictions. The image loading part in geonet_test_pose.py assumes the directory structure to be of the form sequences/08/image_2, but the after running prepare_train_data.py we do not obtain the data in that format. I am doubtful if the code is able to read the images at all. Do I need to to put all the images in separate image_2 folder ?

The processed data is in jpg, After I changed .png in

N = len(glob(img_dir + '/*.png'))
to .jpg. I go the following
inputs[b] = image_seq ValueError: could not broadcast input array from shape (128,416,5) into shape (128,416,15)

from geonet.

yzcjtr avatar yzcjtr commented on August 11, 2024

I guess the data preprocessing is incorrect. Can you post your data preprocessing command here as well? Also, check your formatted data storage. If these files are generated properly, I'm pretty sure you will get reasonable results.

from geonet.

ravikt avatar ravikt commented on August 11, 2024

python prepare_train_data.py --dataset_dir=/home/ravikt/geonet_data/original/ --dataset_name=kitti_odom --dump_root=/home/ravikt/geonet_data/processed/ --seq_length=5 --img_height=128 --img_width=416 --num_threads=16 --remove_static

the processed data has the following directory structure

├── sequences
│   ├── 00
│   ├── 01
│   ├── 02
│   ├── 03
│   ├── 04
│   ├── 05
│   ├── 06
│   ├── 07
│   └── 08
├── train.txt
└── val.txt

The directory structure inside 08 is as follows. times.txt is from the original KITTI odom dataset

.
├── image_0
│   ├── 000002_cam.txt
│   ├── 000002.jpg
│   ├── 000003_cam.txt
│   ├── 000003.jpg
 .    .
 .    .
│   ├── 004068_cam.txt
│   ├── 004068.jpg
└── times.txt

from geonet.

yzcjtr avatar yzcjtr commented on August 11, 2024

You should pass the original KITTI odometry dataset to the --data_dir argument instead of the processed dataset. This was clarified in the readme file.

from geonet.

ravikt avatar ravikt commented on August 11, 2024

I did pass the originals. The first post in this issue has output error messages for both seq_length of 3 and 5. Those errors are encountered at

inputs[b] = image_seq

However, your readme clearly states "For replicating our results in all of the three tasks (monocular depth, camera pose and optical flow), you need to download the following datasets, and preprocess them into certain formats"

Are you suggesting that preprocessed data is only for training phase and the original data for testing ?

from geonet.

yzcjtr avatar yzcjtr commented on August 11, 2024

Yes, please read the test part of our readme file more carefully. Your last posted command suggests the usage of the formatted dataset. There also exists inconsistency between different commands you posted. Again, use a single GPU and the original dataset for test.

from geonet.

ravikt avatar ravikt commented on August 11, 2024

Ok, The last posted command is only for data preprocessing, since you asked if the formatted data is generated correctly.
I am running the test on original dataset using the following
python geonet_main.py --mode=test_pose --dataset_dir=/ravikt/geonet_data/original/ --init_ckpt_file=/ravikt/geonet/geonet_posenet/model --batch_size=1 --seq_length=5 --pose_test_seq=9 --output_dir=/ravikt/geonet_data/predictions/
it gives
File "/ravikt/geonet/GeoNet/geonet_test_pose.py", line 60, in test_pose inputs[b] = image_seq ValueError: could not broadcast input array from shape (128,416,5) into shape (128,416,15)

from geonet.

ravikt avatar ravikt commented on August 11, 2024

Hi @yzcjtr . Thank you for the patient answers. I will have look again on the codes and readme.

from geonet.

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.