Giter Site home page Giter Site logo

about validation on nuscenes about mapmos HOT 2 CLOSED

Terminal-K avatar Terminal-K commented on August 21, 2024
about validation on nuscenes

from mapmos.

Comments (2)

Terminal-K avatar Terminal-K commented on August 21, 2024 1

Many thanks!! You really help me a lot!

from mapmos.

benemer avatar benemer commented on August 21, 2024

The sequence parameter refers to the sequence ID in nuscenes. For example, for sequence scene-0271, you have to pass the sequence ID 271. You can find the IDs for the validation set here or get it via Python:

from nuscenes.utils.splits import val
sequences = [v.split("-")[1] for v in val]

Note that you have to modify these lines in the Nuscenes data loader to load the correct database. Be aware that calling the NuScenes function in the data loader takes some time for the "v1.0-trainval" data and you have to do it for each sequence of the validation set. To mitigate this, you can modify the pipeline to iterate over all sequences and modify the data loader to create the NuScenes object once on import:

[..]
import nuscenes
from nuscenes.nuscenes import NuScenes

__nusc_dataroot__ = "/path/to/nuScenes"
__nusc_version__: str = "v1.0-trainval"
 __nusc__ = NuScenes(dataroot=__nusc_dataroot__, version=__nusc_version__)

class MOSNuscenesDataset(NuScenesDataset):
[...]

And then you set self.nusc = __nusc__ in the __init__.

from mapmos.

Related Issues (9)

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.