ImportError: cannot import name 'gen_rasterizer_op' when trying to import tensorflow_graphics.rendering.opengl.triangle_rasterizer
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- python
- Domaine
- computer-graphics, machine-learning
Piste de recherche
Reproduisez l’importation de tensorflow_graphics.rendering.opengl.triangle_rasterizer.py en utilisant les versions indiquées d’Ubuntu, de TensorFlow 2.2.0 et de tensorflow-graphics 2020.5.20. Examinez pourquoi l’importation de gen_rasterizer_op échoue ; le problème est résolu lorsque l’importation de triangle_rasterizer réussit sans cette ImportError.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hi, I am new in tensorflow, and when I trying to import tensorflow_graphics.rendering.opengl.triangle_rasterizer, the following error shows:
import tensorflow as tf
import tensorflow_graphics.rendering.opengl.triangle_rasterizer as tr
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in ()
1 import tensorflow as tf
----> 2 import tensorflow_graphics.rendering.opengl.triangle_rasterizer as tr
/home/linfang/.local/lib/python3.6/site-packages/tensorflow_graphics/rendering/opengl/triangle_rasterizer.py in ()
26 import tensorflow.compat.v2 as tf
27
---> 28 from tensorflow_graphics.rendering.opengl import gen_rasterizer_op as render_ops
29 from tensorflow_graphics.rendering.opengl import math as glm
30 from tensorflow_graphics.util import export_api
ImportError: cannot import name 'gen_rasterizer_op'
I am using Ubuntu 18.04, and version info:
tensorflow-gpu 2.2.0
tensorflow-graphics 2020.5.20
How can I solve it? Thanks a lot
- Langage dominant
- Python
- Étoiles
- 2.8k
- Forks
- 374
- Merge moyen
- 5 j 9 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tensorflow/graphics
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
tensorflow/graphics#468 ·
-
Missing TFRecord Generation Script/Instructions for projects/points_to_3Dobjects (CVPR 2021)Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
tensorflow/graphics#5337 ·
-
Attribute Error in the models.pyOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
tensorflow/graphics#730 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
tensorflow/graphics#729 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 10/100
tensorflow/graphics#724 ·
Toutes les issues de tensorflow/graphics
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
SACGF/variantgrid#2791 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
bot-triaged oncall: cpu inductor
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
kubescape/cel-admission-library#141 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour