Giter Club home page Giter Club logo

Comments (14)

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Sorry for the late reply, I was on vacation.

Can you show the output of:
ldconfig -p | grep onnx

and:
ldd libavfilter/libavfilter.so

Thanks

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

Thank for the reply.
I have solved that issue, however, there is another issue which I couldn't solve yet.

/usr/bin/ld: libavfilter/libavfilter.so: undefined reference to `c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: libavfilter/libavfilter.so: undefined reference to `c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char collect2: error: ld returned 1 exit status
const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:124: ffprobe_g] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:124: ffmpeg_g] Error 1

Do you have any idea why this is happening? I have rebuilt the torchvision with different versions and adding
-D_GLIBCXX_USE_CXX11_ABI=0 as suggested as a solution, however, it doesn't help here.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Is your libtorch built with -D_GLIBCXX_USE_CXX11_ABI=0?

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

Yes, I have built it as you suggested.
It also shows that the flag is not set (as I have configured it during the built)

>>> import torch
>>> print(torch._C._GLIBCXX_USE_CXX11_ABI)
False

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Yes, I have built it as you suggested. It also shows that the flag is not set (as I have configured it during the built)

>>> import torch
>>> print(torch._C._GLIBCXX_USE_CXX11_ABI)
False

My suggestion in the readme is use libtorch/torchvision with cxx11 ABI, which means using libtorch/torchvision built with -D_GLIBCXX_USE_CXX11_ABI=1, that's why I didn't add this flag to the config script. Sorry for the misunderstanding. If you do not want to use cxx11 ABI, you will also need to pass -D_GLIBCXX_USE_CXX11_ABI=0 to ffmpeg during configuration.

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

It will very much help if you can provide me with a docker file so that it builds all dependencies and the libraries you specified. It can be based on a generic x86 CUDA 11+ desktop configuration.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

It will very much help if you can provide me with a docker file so that it builds all dependencies and the libraries you specified. It can be based on a generic x86 CUDA 11+ desktop configuration.

Thanks for your suggestion. We are preparing a docker image which contains all the dependencies. It will be ready this week.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

The Dockerfile has been uploaded to the repo, can you give it a try? docker build instructions are provided in the new README and documentations.

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

Thanks for the Docker file.

It seems that one dependency is still missing since I get this error:

MAN	doc/ffmpeg-filters.1
MAN	doc/libavutil.3
MAN	doc/libswscale.3
MAN	doc/libswresample.3
MAN	doc/libavcodec.3
MAN	doc/libavformat.3
MAN	doc/libavdevice.3
MAN	doc/libavfilter.3
LD	libswscale/libswscale.so.5
LD	libswresample/libswresample.so.3
STRIP	libavcodec/x86/vp9itxfm.o
GEN	libavcodec/libavcodec.ver
LD	libavcodec/libavcodec.so.58
LD	libavformat/libavformat.so.58
LD	libavfilter/libavfilter.so.7
gcc: error: libavfilter/cnpy.o: No such file or directory
make: *** [ffbuild/library.mak:103: libavfilter/libavfilter.so.7] Error 1

PS: On line 31 of the Dockerfile there is "&&" missing.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Thanks for the heads up. Can you try
git submodule update --init
Looks like the cnpy submodule is missing.

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

Thanks.
The build was successful.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Hi @hmdtb ,

We found that onnxruntime 1.11 may cause segfault, so we changed onnxruntime back to 1.8.1, the Dockerfile has been updated. You can download the onnxruntime 1.8.1 and manually install it if you do not want to rebuild the docker image.

If you do not have further questions, I will close this issue. Thanks!

from gmat.

hmdtb avatar hmdtb commented on May 29, 2024

Thanks for informing me regarding this update.

I will rebuild the image and in case of any new problem, I will open a new issue ticket.

from gmat.

xiaoweiw-nv avatar xiaoweiw-nv commented on May 29, 2024

Thanks. Closing the issue

Thanks for informing me regarding this update.

I will rebuild the image and in case of any new problem, I will open a new issue ticket.

from gmat.

Related Issues (9)

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.