Coder Social home page Coder Social logo

Comments (5)

Steve-Tod avatar Steve-Tod commented on July 19, 2024 2

Hi guys, I found the cause of the problem.
I'm sharing the machine with others. Another person used JIT to compile a torch extension and created the directory /tmp/torch_extensions/. He has the ownership of this directory while I don't, so I don't have the permission to write into it. On another machine where /tmp/torch_extensions/ hasn't been created, everything goes on smoothly.

from chamferdistancepytorch.

ThibaultGROUEIX avatar ThibaultGROUEIX commented on July 19, 2024

Hi @Steve-Tod,
Did you run the tests?
Cheers,
Thibault

from chamferdistancepytorch.

Steve-Tod avatar Steve-Tod commented on July 19, 2024

Hi, I run the unit_test.py and get the following results:

Jitting Chamfer 2D
Traceback (most recent call last):
  File "unit_test.py", line 2, in <module>
    import chamfer2D.dist_chamfer_2D
  File "/orion/u/jiangthu/projects/DeformationNet/code/model/loss/ChamferDistancePytorch/chamfer2D/dist_chamfer_2D.py", line 15, in <module>
    "/".join(os.path.abspath(__file__).split('/')[:-1] + ["chamfer2D.cu"]),
  File "/orion/u/jiangthu/anaconda3/envs/pytorch1.3_py3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 658, in load
    build_directory or _get_build_directory(name, verbose),
  File "/orion/u/jiangthu/anaconda3/envs/pytorch1.3_py3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1015, in _get_build_directory
    os.makedirs(build_directory)
  File "/orion/u/jiangthu/anaconda3/envs/pytorch1.3_py3/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/tmp/torch_extensions/chamfer_2D'

BTW I Googled and found the error might be caused by incompatibility between pytorch 1.3.1 and Tesla V100-DGX I'm using.

from chamferdistancepytorch.

jih189 avatar jih189 commented on July 19, 2024

@Steve-Tod
I think you can try this first. it may solve it.
#13

from chamferdistancepytorch.

Steve-Tod avatar Steve-Tod commented on July 19, 2024

Hi @jih189 , I use conda to create a new env with pytorch 1.3.1. I use cuda 10.0. In this new env, I clone this repo and run unit_test.py, and get 'PermissionError: [Errno 13] Permission denied: '/tmp/torch_extensions/' again.

from chamferdistancepytorch.

Related Issues (20)

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.