GithubHelp home page GithubHelp logo

Comments (2)

Haoran-SONG avatar Haoran-SONG commented on June 18, 2024

For convenience, I preprocessed the highD dataset to make it with the same format as NGSIM. Downsampling (25Hz ->10Hz) is made by simple interpolation. I just uploaded it to the highD-ngsim-format folder for your reference. Actually, I only use 5Hz in the network, so it's easier to directly downsample both datasets (25/10Hz) to 5Hz.

Another author helped with visualizing the results, so I didn't take the time to polish that part. I guess your interest lies in the colorline in my trajectory visualization? Here I provide the code snippet which you may require:

import matplotlib.pyplot as plt
import matplotlib.collections as mcoll
def colorline(self, x, y, ax,
                z=None, cmap=plt.get_cmap('rainbow'), norm=plt.Normalize(0.0, 1.0), linewidth=4, alpha=0.9, zorder=3):
      """
      http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb
      http://matplotlib.org/examples/pylab_examples/multicolored_line.html
      Plot a colored line with coordinates x and y
      Optionally specify colors in the array z
      Optionally specify a colormap, a norm function and a line width
      """
      # Default colors equally spaced on [0,1]:
      if z is None:
          z = np.linspace(0.0, 1.0, len(x))
      z = np.asarray(z)
      segments = self.make_segments(x, y)
      lc = mcoll.LineCollection(segments, array=z, cmap=cmap, norm=norm, zorder= zorder,
                                linewidth=linewidth, alpha=alpha)
      ax.add_collection(lc)
      return lc

from pip-planning-informed-prediction.

vinit-katariya avatar vinit-katariya commented on June 18, 2024

@Haoran-SONG Thank you for providing the repo. of your insightful work.

The folder link highD-ngsim-format folder provides HighD Dataset in NGSIM format. You have divided each track the HighD dataset into fwd and bck based on direction of motion mentioned in xx_trackMeta file.

Can you please share the source code used to convert the HighD dataset into NGSIM format in the reply or at [email protected]?

from pip-planning-informed-prediction.

Related Issues (16)

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.