Code Monkey home page Code Monkey logo

Comments (8)

holger-motional avatar holger-motional commented on July 17, 2024

Hi. It seems like you did not install nuScenes properly. Please see how to download the dataset and install it here. Let me know if you have any questions.

from nuscenes-devkit.

shahram95 avatar shahram95 commented on July 17, 2024

I followed the instructions but still can't get it to work. I am sharing step by step procedure I followed, could you go over it and let me know what mistake I am committing.

`Step-by-step method for setting up the virtual environment for running the nuscenes-devkit.

  1. Update and Upgrade the packages and install python3.7 (the notebook is tested on python 3.7 and it is recommended to install python 3.7 for seamless and error free execution of the tutorial jupyter notebook)

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.7
sudo apt install python-pip

  1. Install the virtual environment wrapper:
    sudo apt-get install
    pip install virtualenvwrapper

  2. Open .bashrc using nano:

nano ~/.bashrc

and add these two lines in the bottom:

export WORKON_HOME=$HOME/.virtualenvs
source ~/.local/bin/virtualenvwrapper.sh

press ctrl+x-----> press y -----> press

exit the terminal to make the changes effective

  1. Create the virtual environment:

sudo pip install -U virtualenv
mkvirtualenv <name_of_Virtual_environment> --system-site-packages -p python3.7

  1. Activate the virtual environment:

workon <name_of_Virtual_environment>

  1. Make the proper file structure:

a) Place the nuscenes-devkit in the home folder
b) The structure should be as follows:

home
|_nuscenes-devkit
|_instructions.md
|_license.txt
|_README.md
|_requirements.txt
|_schema.md
|_setup.py
|_python-sdk
|_tutorial.ipynb
|
|_nuscenes
| |_nuscenes.py
| |init.py
| |_evals
| | |_create_split_logs.py
| | |eval_utils.py
| | |
init.py
| | |_nuscenes_eval.py
| | |_README.md
| | |_test_eval.py
| |_export
| | |_export_egoposes_on_map.py
| | |_export_pointclouds_as_obj.py
| | |export_scene_videos.py
| | |
int.py
| |_pycache
| | |_init.cpython-35.pyc
| | |___init.cpython-37.pyc
| | |_nuscenes.cpython-37.pyc
| |_utils
| |_data_classes.py
| |_geometry_utils.py
| |_init.py
| |_map_mask.py
| |_pycache
| |_data_classes.cpython-37.pyc
| |_geometry_utils.cpython-37.pyc
| |___init.cpython-37.pyc
| |_map_mask.cpython-37.pyc
|
|_data
|_nuscenes
|_README.pdf
|_README2.txt
|_maps
|_samples
| |_CAM_BACK
| |_CAM_BACK_LEFT
| |_CAM_BACK_RIGHT
| |_CAM_FRONT
| |_CAM_FRONT_LEFT
| |_CAM_FRONT_RIGHT
|_sweeps
| |_CAM_BACK
| |_CAM_BACK_LEFT
| |_CAM_BACK_RIGHT
| |_CAM_FRONT
| |_CAM_FRONT_LEFT
| |_CAM_FRONT_RIGHT
|_v0.1
|_attribute.json
|_calibrated_sensor.json
|_category.json
|_ego_pose.json
|_instance.json
|_log.json
|_map.json
|_sample.json
|_sample_annotation.json
|_sample_data.json
|_scene.json
|_sensor.json
|_visibility.json

*NOTE: It is necessary that the file structure should match otherwise the tutorial.ipynb won't execute.

  1. In the home directory execute the following command:

cd && git clone https://github.com/nutonomy/nuscenes-devkit.git

  1. Installing the required packages:

a)navigate to home/nuscenes-devkit using cd nuscenes-devkit (from the home directory)

b) Install the requirements by executing the following command:

pip install -r requirements.txt

  1. Add the python-sdk directory to PYTHONPATH environment varible by adding the following line to the bottom of BOTH ~/.virtualenvs/nuscenes/bin/postactivate (virtual environment) or ~/.bashrc (global):

a) type nano ~/.bashrc
add [export PYTHONPATH="${PYTHONPATH}:$HOME/nuscenes-devkit/python-sdk"] (excluding the []) to the bottom-most line press ctrl+x-->press y-->press

b) type nano ~/.virtualenvs/nuscenes/bin/postactivate (virtual environment)
add [export PYTHONPATH="${PYTHONPATH}:$HOME/nuscenes-devkit/python-sdk"] (excluding the []) to the bottom-most line press ctrl+x-->press y-->press

  1. Deactivate the virtual environment and exit the terminal to make the changes effective.

  2. Enter the virtual environment using the follow command:

workon <name_of_Virtual_environment>`

from nuscenes-devkit.

holger-motional avatar holger-motional commented on July 17, 2024

When unpacking the nuScenes data it seems that you flattened the folder structure:

|_data
|_nuscenes
|_maps
|_samples

These folders should not be on the same level. It should be /data/nuscenes/maps, /data/nuscenes/samples, etc.

from nuscenes-devkit.

shahram95 avatar shahram95 commented on July 17, 2024

The nuscenes-devkit is present in the home folder, inside the nuscenes-devkit, there are python-sdk, setup.py, requirements.txt, instructions.md, license.txt, README.md, scehma.md.

Inside python-sdk there is tutorial.ipynb, nuscenes(folder) and data(folder)
inside the data(folder) there is a nuscenes(folder). I am attaching a series of pictures of my file structure, let me know if there is an error in the structure.

screenshot from 2019-02-13 09-34-43
screenshot from 2019-02-13 09-35-04
screenshot from 2019-02-13 09-35-10
screenshot from 2019-02-13 09-35-14

from nuscenes-devkit.

holger-motional avatar holger-motional commented on July 17, 2024

The devkit should reside in ~/nuscenes-devkit (which is correct).
The data should reside in /data/nuscenes (which it doesn't for you).

from nuscenes-devkit.

shahram95 avatar shahram95 commented on July 17, 2024

could you please define the exact location from the home directory where should I place it?
Would really appreciate it.

from nuscenes-devkit.

shahram95 avatar shahram95 commented on July 17, 2024

Could you please tell me is this okay now?

screenshot from 2019-02-13 09-51-36
screenshot from 2019-02-13 09-51-41
screenshot from 2019-02-13 09-51-47

from nuscenes-devkit.

holger-motional avatar holger-motional commented on July 17, 2024

The devkit should reside in ~/nuscenes-devkit (which is correct).
The data should reside in /data/nuscenes (which it doesn't for you).

The suggested location of the data is not in the home directory. It's at /data/nuscenes.
But if you need to put it in the home folder, you can create the NuScenes object as:

nusc = NuScenes(dataroot='/home/username/nuscenes-devkit/data/nuscenes')

from nuscenes-devkit.

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.