Giter Site home page Giter Site logo

Comments (2)

InhwanBae avatar InhwanBae commented on September 24, 2024

Hi @chenjx1005,

Thank you for showing interest in my paper. In the EigenTrajectory model, the anchor is created once before the training phase, and the network selects a trajectory with a minimal difference to learn how to refine it (because the ground truth is not multimodal and only provides one real path). During testing, all 20 trajectories included in the anchor are refined and evaluated, following standard benchmarks.

I am organizing the code for release, and it will be made public soon. It will probably be easier to understand when you see the code.

from eigentrajectory.

InhwanBae avatar InhwanBae commented on September 24, 2024

Hi @chenjx1005, I just released the code. Checking the ./utils/trainer.py will be helpful in understanding the evaluation method.

@torch.no_grad()
def test(self):
self.model.eval()
self.reset_metric()
for batch in tqdm(self.loader_test, desc=f"Test {self.hyper_params.dataset.upper()} scene"):
obs_traj, pred_traj = [tensor.cuda(non_blocking=True) for tensor in batch[:2]]
output = self.model(obs_traj)
# Evaluate trajectories
for metric in self.stats_func.keys():
value = self.stats_func[metric](output["recon_traj"], pred_traj)
self.stats_meter[metric].extend(value)
return {x: self.stats_meter[x].mean() for x in self.stats_meter.keys()}

from eigentrajectory.

Related Issues (6)

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.