facebookresearch / facebookresearch/pytorch3d

Add "forward chamfer distance" in pytorch3d.loss.chamfer

Open
#502 3 comments 1 reaction 1 assignee Claimed by @gkioxari View on GitHub
enhancement question
Dominant language
Python
Stars
10k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature

Forward chamfer distance (chamfer distance only from source to target)

## Motivation

Currently, in pytorch3d.loss.chamfer, the chamfer_distance function can returns "cham_dist = cham_x + cham_y". However, in many cases, we only need "forward chamfer distance", i.e., "cham_x" in the code.

## Pitch

It would be great to have a parameter (i.e., direction = "forward" or "bidirectional") to choose which to return (cham_x or cham_x + cham_y).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.