Coder Social home page Coder Social logo

psenet-libtorch's People

Contributors

whu-wxy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

psenet-libtorch's Issues

大佬,我求助你一下

大佬你好。最近在搞部署这一块。很幸运看到你的这个部署repo。大佬能把模型从pytorch代码转为torchscript完整的代码开源一下吗?小白感觉无从下手。感谢

Linking Pytorch C++FrontEnd with Qt GCC #49999

Hi @Whu-wxy
I wrote a simple program in C++ to use my PyTorch model in libtorch 1.7.1. I have CUDA 10.2 on my OS, thus I downloaded CUDA 10.2 prebuilt version of libtorch from this link :.link

This is my simple program :
image

This program works fine in CMake , but when i run it in Qt , it gives me this error :
image

This is my QMake file :

QT -= gui
CONFIG += c++14 console
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES +=
main.cpp
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
QMAKE_CXXFLAGS += -DGLIBCXX_USE_CXX11_ABI=0
CONFIG += no_keywords
QMAKE_CXXFLAGS += -Wno-unused-parameter
QMAKE_LFLAGS += -INCLUDE:?warp_size@cuda@at@@yahxz
INCLUDEPATH += /home/eaglesoft/libtorch/include/torch/csrc/api/include
INCLUDEPATH += /home/eaglesoft/libtorch/include
DEPENDPATH += /home/eaglesoft/libtorch/include/torch/csrc/api/include
DEPENDPATH += /home/eaglesoft/libtorch/include
LIBS += -L/home/eaglesoft/libtorch/lib -lc10
-lc10_cuda
-lcaffe2_module_test_dynamic
-lcaffe2_observers
-ltorch_cpu
-ltorch
-lc10d_cuda_test
-lcaffe2_detectron_ops_gpu
-lcaffe2_nvrtc
-lfmt
-lnvrtc-builtins
-lshm
-ltensorpipe
-ltorch_cuda

Any help would be appreciated.

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.