Comments (15)
@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>
from psenet.
问题已经解决。在用python3编译的时候,需要确定自己的python是具体哪个版本。python3.5,还是python3.6。具体可以查看路径:/usr/include/ 在这个文件夹内找python的文件(python2.7或者python3.5)。然后按照下面方法修改:
修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <python3.5/Python.h>
#include <python3.5/frameobject.h>
#include <python3.5/pythread.h>
因为我的python是3.5版本。具体可以根据自己的版本修改。需要用到的"Python.h"、“frameobject.h”、“pythread.h”都在/usr/include/python3.5/ 这个文件夹里面。改完之后编译就ok了。
from psenet.
py2没问题
from psenet.
有用python3遇到这个错该怎么解决,求助呀
from psenet.
参考这个makefile
https://github.com/WenmuZhou/PSENet.pytorch/blob/master/author_pse/Makefile
from psenet.
@whai362 @WenmuZhou
Hello, I met also make error, I can compile the adaptor.so alone successsfully, However when I want to import the .so file into python file, it throw the error.
ImportError: /opt/intel/mkl/lib/intel64/libmkl_sequential.so: undefined symbol: mkl_sparse_s_a dd_ker1_i8
Environment:
python2.7
pytorch 0.4.1
from psenet.
@zzdang 请问最后解决了吗?我也遇到这个问题
from psenet.
@tangsipeng ,按照rkshuai 说的,可以解决问题
from psenet.
@zzdang 谢谢,我也解决了。测试速度只有1fps,你呢?
from psenet.
@zzdang 谢谢,我也解决了。测试速度只有1fps,你呢?
我的fps才0.65呢 GPU K40c 12G
from psenet.
请问你python3编译成功了吗?我的一直报错啊。可以有空帮忙看一下吗
#88
@zzdang @tangsipeng @WenmuZhou @WeihongM
from psenet.
@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>
我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题
from psenet.
@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题
同样的问题,解决了吗?
from psenet.
@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题
请问你解决了吗?我也遇到Python.h: No such file or directory的问题。请问怎么解决?
from psenet.
@zzdang 修改pse/include/pybind11/detail/common.h中的第112~114:
#include <python2.7/Python.h>
#include <python2.7/frameobject.h>
#include <python2.7/pythread.h>
为:
#include <Python.h>
#include <frameobject.h>
#include <pythread.h>我改完之后,遇到了include/pybind11/detail/common.h:116:20: fatal error: Python.h: No such file or directory的问题
同样的问题,解决了吗?
请问你解决了嘛
from psenet.
Related Issues (20)
- pretrained_model
- Acc rec一值为0? HOT 11
- 测试没有图像输出 HOT 9
- 训练时 出现异常C
- Training a new model
- Convert to ONNX
- 训练loss一直为1 HOT 1
- 你好,模型权重的Google网盘链接失效了
- PreTrained model HOT 1
- can not find path ./data/ICDAR2015/Challenge4/' HOT 1
- 这里结果不对吧? kernels大于0判断,为啥去大于0的,这里的kernels阈值怎么会是0呢 HOT 1
- 画mask图不对
- 训练过程中怎么显示检测的acc HOT 1
- 验证精度始终为0 HOT 1
- No module named 'models.post_processing.pa.pa' HOT 1
- The sample 3924 not present in GT
- _pickle.UnpicklingError: invalid load key, \xef .
- OSS License compatibility question
- Checkpoint archives are damaged HOT 1
- 为什么ctw和tt进行test.py输出的txt数值不能直接可视化 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psenet.