Code Monkey home page Code Monkey logo

Comments (7)

lkeab avatar lkeab commented on September 27, 2024 1

How about trying pytorch 1.3 or 1.4 and using the setup.py here, and using "python3 setup.py build develop" to install.

from gsnet.

YangLyu-123 avatar YangLyu-123 commented on September 27, 2024 1

How about trying pytorch 1.3 or 1.4 and using the setup.py here, and using "python3 setup.py build develop" to install.

Thanks for your reply :) Downgrading pytorch from 1.5 to 1.4 works for me about the following error!

ImportError: /home/Test/code/gsnet/reference_code/GSNet-release/detectron2/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

from gsnet.

lkeab avatar lkeab commented on September 27, 2024

The FCOS error is becuase this line not being excuted.

from gsnet.

YangLyu-123 avatar YangLyu-123 commented on September 27, 2024

The FCOS error is becuase this line not being excuted.

Yes, in https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html each version for py36, FCOS is removed.

from gsnet.

meassinal avatar meassinal commented on September 27, 2024

Hi,
I have the same problem with FCOS, and after downgrading to pytorch 1.4 I have the following error:

Traceback (most recent call last):
  File "demo/demo.py", line 11, in <module>
    from detectron2.data.detection_utils import read_image
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/data/__init__.py", line 4, in <module>
    from .build import (
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/data/build.py", line 12, in <module>
    from detectron2.structures import BoxMode
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/structures/__init__.py", line 6, in <module>
    from .keypoints import Keypoints, heatmaps_to_keypoints
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/structures/keypoints.py", line 6, in <module>
    from detectron2.layers import interpolate
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/layers/__init__.py", line 3, in <module>
    from .deform_conv import DeformConv, ModulatedDeformConv
  File "/home/azureuser/.virtualenvs/py36/lib/python3.6/site-packages/detectron2/layers/deform_conv.py", line 10, in <module>
    from detectron2 import _C
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

I really appreciate if you can help point out how I should do to make it work successfully. Thanks in advance.

from gsnet.

lkeab avatar lkeab commented on September 27, 2024

Hi, you could refer to the solutions here.

from gsnet.

meassinal avatar meassinal commented on September 27, 2024

Hi, you could refer to the solutions here.

After checking, libtorch_cpu.so does exists in pytorch 1.5 but not in version 1.4. However, there is an issue of FCOS in version 1.5 so that I could not run the demo successfully.

What else could you advice? Thanks in advance for your answer :)

from gsnet.

Related Issues (19)

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.