tensorflow / graphics

TensorFlow Graphics: Differentiable Graphics Layers for TensorFlow
Apache License 2.0
2.75k stars 366 forks source link

No chamfer distance in the installed tensorflow-graphics-gpu 1.0.0 package #473

Open Enigma-li opened 3 years ago

Enigma-li commented 3 years ago

Hi,

I installed the tensorflow-graphics-gpu as instructed here, but this version does not contain the chamfer distance.

How to resolve this?

johanesmikhael commented 3 years ago

Hello, I had the same problem too. I am using tf 2.4 python 3.6 in Windows 10 with gpu enabled. I installed tfgbut I realized in tfg.nn module only layer module installed, both metric and loss modules are missing. Do I miss something?

melhousni commented 3 years ago

Same problem here. Any fix??

alimoeeny commented 3 years ago

exact same problem here, any solutions?

msokoloff1 commented 3 years ago

Use:

from tensorflow.graphics.nn.loss import loss fn

Amruta-kabade commented 3 years ago

Yeah! the problem still persists. How can I access chamfer distance in tensorflow-gpu windows 10? Any suggestions appreciated..

I have attached the screenshot of the error: it says 'tensorflow_graphics.nn' has no attribute 'loss' Thank you .

git

dvbuntu commented 3 years ago

The loss module was only added in early 2020, so it's not in the prebuilt pip version (dated May 2019). You can try to install the most recent version with pip install tensorflow-graphics==2021.10.21. I had to muck around a bit to make it importable (apparently it wants some environment variable set, but I just overrode it), but it seems to run ok.

Eastmanmd commented 2 years ago

Was this problem fully resolved ? I tried installing the most recent version and I am still having the same problem when trying to use chamfer distance.

DoubangoTelecom commented 2 months ago
from tensorflow_graphics.nn.loss import chamfer_distance
loss = chamfer_distance.evaluate(p1, p2)