3dpose_gan
3dpose_gan copied to clipboard
cv2.error when using demo.py
When I run demo.py I met this error.Can you give me some advices to deal with it? python3 bin/demo.py test.jpg --lift_model sample/gen_epoch_500.npz --model pose_iter_440000.caffemodel --proto2d openpose_pose_coco.prototxt
MODEL: generator, N_OUT: 17, N_UNIT: 1024
[mjpeg @ 0x55f4839aa660] mjpeg: invalid TIFF header in EXIF data
[mjpeg @ 0x55f4839aa220] mjpeg: invalid TIFF header in EXIF data
[ INFO:0] Initialize OpenCL runtime...
OpenCV Error: Assertion failed (output_slice.isContinuous() && output_slice.size == curr_output.size) in fuseLayers, file /io/opencv/modules/dnn/src/dnn.cpp, line 1430
Traceback (most recent call last):
File "bin/demo.py", line 201, in
You have to re-build the openCV3.4 with python3.6 by yourself. Please do not forget this. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
for example, (sorry Japanese) https://qiita.com/clerk67/items/ef0ccd94a966284b2e6e
Thank you for your example.I have solved this problem.But there's another one.Do you know how to solve it?
MODEL: generator, N_OUT: 17, N_UNIT: 1024 [ INFO:0] Initialize OpenCL runtime... Traceback (most recent call last): File "/home/nanfei/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 52, in _wrapfunc return getattr(obj, method)(*args, **kwds) TypeError: 'tuple' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bin/demo.py", line 203, in
How did you solve the previous problem?
@singhketan @yenanfei you can also install OpenCV 3.4 for Python 3.6 from a pip wheel: https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv