whu-wxy / psenet-libtorch Goto Github PK
View Code? Open in Web Editor NEWText detection network psenet deployed by libtorch and Qt.
Text detection network psenet deployed by libtorch and Qt.
大佬你好。最近在搞部署这一块。很幸运看到你的这个部署repo。大佬能把模型从pytorch代码转为torchscript完整的代码开源一下吗?小白感觉无从下手。感谢
jit.trace自己训练的模型,总是失败 请问怎么回事?
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 program works fine in CMake , but when i run it in Qt , it gives me this error :
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.