Comments (3)
我们的code里没有提供直接可视化的代码。
你可以在test.py
Line47 加上一行代码将预测结果results_segm
保存为json文件,再用cocoapi中的方式可视化结果。(我们生成的结果与coco的格式是一致的)
from pose2seg.
您好 ,我按这种方法可视化。代码如下:
imgIds.append(image_id)
filename = "./seg_images/annotations/" + "instances_val2017.json"
f_obj = open(filename, 'w')
json.dump(results_segm, f_obj)
这样生成json文件后,json部分显示如下:
[{"category_id": 1, "segmentation": {"counts": "hX]52V=3N1O1O1O100O2N1O1O1O1O1iNC^E?_:I[E9d:IVE<i:GQE=n:EmD?S;l001N3N3N3L2N2OO10O1001O1l0UO<D7H3MO0O2N2N1O101N3M4L5K7I5K5J7J4L4K7VOgDeN86W;f0S1DQmV2", "size": [426, 640]}, "image_id": 139, "score": 1.0}, {"category_id": 1, "segmentation": {"counts": "cQf31U=5K5L3N2N2O1N2O0O2OO10O10000O010000O010O010O010O01O00100O0010O010O10O10O010O0100O010O10OO2O001O1O010O1O1N1O2O1O001M3M2O2O1L3K6L4M3N1N3iNSNoFP2n8[NgFg1W9bNaF`1Z9Z1L4N101O1eIdLh2\3SMmLh2V3SMQMi2P3TMUMi2l2VMVMh2k2VMYMh2g2VM]Mg2d2VMbMg2^2XMfMe2[2XMiMe2X2ZMlMc2U2
但是我看您生成的 ochuman.json文件内容显示 不是这样的 ,我不知道 哪里出了问题。我现在想生成json文件,然后可视化。
from pose2seg.
您好 ,我按这种方法可视化。代码如下:
imgIds.append(image_id)
filename = "./seg_images/annotations/" + "instances_val2017.json"
f_obj = open(filename, 'w')
json.dump(results_segm, f_obj)
这样生成json文件后,json部分显示如下:
[{"category_id": 1, "segmentation": {"counts": "hX]52V=3N1O1O1O100O2N1O1O1O1O1iNC^E?_:I[E9d:IVE<i:GQE=n:EmD?S;l001N3N3N3L2N2OO10O1001O1l0UO<D7H3MO0O2N2N1O101N3M4L5K7I5K5J7J4L4K7VOgDeN86W;f0S1DQmV2", "size": [426, 640]}, "image_id": 139, "score": 1.0}, {"category_id": 1, "segmentation": {"counts": "cQf31U=5K5L3N2N2O1N2O0O2OO10O10000O010000O010O010O010O01O00100O0010O010O10O10O010O0100O010O10OO2O001O1O010O1O1N1O2O1O001M3M2O2O1L3K6L4M3N1N3iNSNoFP2n8[NgFg1W9bNaF`1Z9Z1L4N101O1eIdLh2\3SMmLh2V3SMQMi2P3TMUMi2l2VMVMh2k2VMYMh2g2VM]Mg2d2VMbMg2^2XMfMe2[2XMiMe2X2ZMlMc2U2但是我看您生成的 ochuman.json文件内容显示 不是这样的 ,我不知道 哪里出了问题。我现在想生成json文件,然后可视化。
Were you able to solve this ?
from pose2seg.
Related Issues (20)
- The instance segmentation performance rely heavily on keypoints performance HOT 2
- coco 关键点修改 HOT 3
- Got wrong test results about AP(area=medium)
- Request the dataset address
- about the train error
- Can we give the network only the RGB image? If we don't have a pose model? HOT 1
- Testing with Openpose Keypoints HOT 2
- Combination with Human pose detection HOT 1
- Data Augmentation
- 测试的模型效果很好,如果想提升实例分割的速度,可以给一些建议吗?
- Some problems after using alphapose and then use pose2seg?
- What's the environment setup and requirement? HOT 1
- RuntimeError: CUDA out of memory in training HOT 1
- Training on smaller dataset HOT 1
- This repo need to have "inference.py/ipynb"
- Posture alignment
- pose point
- What is in this work's COCO dataset
- Reproducing results without GT Keypoints HOT 10
- Ski2DPose dataset
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 pose2seg.