Skip to content

KeyError: 'TEST_SRCDIR' #191

Description

@UestcJay

I follow the instruction, pip tf1.12 on ubuntu16.04, cuda9.0, using the precompiling binary file, but there is a error, can you give me some help?
Traceback (most recent call last):
File "demo.py", line 13, in
from face_decoder import Face3D
File "/root/shenzhen/lkq/Deep3DFaceReconstruction/face_decoder.py", line 10, in
from renderer import mesh_renderer
File "/root/shenzhen/lkq/Deep3DFaceReconstruction/renderer/mesh_renderer.py", line 23, in
import rasterize_triangles
File "/root/shenzhen/lkq/Deep3DFaceReconstruction/renderer/../renderer/rasterize_triangles.py", line 27, in
os.path.join(os.environ['TEST_SRCDIR'],
File "/root/anaconda3/envs/deep3d/lib/python3.6/os.py", line 669, in getitem
raise KeyError(key) from None
KeyError: 'TEST_SRCDIR'

Activity

  1. Liuxiaoan1 commented on Dec 22, 2021

    @Liuxiaoan1

    我最近也遇到了这个问题 我解决了 如果你是linux则把TEST_SRCDIR改成HOME,下一行改成你的.so文件路径即可,你可以试一下

  2. kun2001github commented on Apr 15, 2024

    @kun2001github

    I had the same problem, and here's my solution:export TEST_SRCDIR=/root/Deep3DFaceReconstruction/renderer
    If you want to make it permanent, you can write it to ~/.bashrc
    I hope this will help you

    Refer to :tensorflow/tensorflow#8921 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions