chenyilun95 / tf-cpn

Cascaded Pyramid Network for Multi-Person Pose Estimation (CVPR 2018)
MIT License
792 stars 197 forks source link

memoryview underlying buffer is no c-contiguous #65

Closed mathpopo closed 5 years ago

mathpopo commented 5 years ago

i can use code to test the coco2014(mptest.py),but when i try the network(train mode),when load json,show "memoryview underlying buffer is no c-contiguous",but the log show need "joint" info,but mini2014_keypoint_json donot include,is that lead to ?

mathpopo commented 5 years ago

File "msgpack/_packer.py"

mathpopo commented 5 years ago

just in pycharm show this error,terminal can run without error.

mathpopo commented 5 years ago

使用COCO2017数据集的修改点:

data/COCO/COCOAllJoints.py 读取数据未使用config.py的配置,而是内部硬编码的。 models/COCO.res101.384x288.CPN/network.py -> Network构造函数传入cfg,同时需要调用父类的构造函数:super().init() 将cfg传入COCOJoints()的构造函数 data/COCO/COCOAllJoints.py-> COCOJoints() 生成image路径时,强依赖2014年数据集,需要修改成:train2017/xxxx.jpg模式 models/COCO.res101.384x288.CPN/config.py,多进程会导致GPU内存分配错误,关闭:dpflow_enable = False