摘要: 关于性,自古以来争论不休的莫属于性善性恶的问题了,从《告子篇》中公都子问孟子的话中可以看到,关于性善恶的三种判断,或曰:‘性无善无不善’;或曰:‘性可以为善,可以为不善’;或曰:‘有性善,有性不善’。那么在分析一个问题时首先就要明确问题内容是什么,然后才能分析。那么就要先搞明白什么是性? 关于性的定 阅读全文
posted @ 2019-12-30 18:38 AnswerThe 阅读(494) 评论(0) 推荐(0) 编辑
摘要: from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals f 阅读全文
posted @ 2019-12-30 18:26 AnswerThe 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 1.创建如下目录 2.将train_annotations中的xml文件转成json文件 # coding=utf-8 import xml.etree.ElementTree as ET import os import json import collections coco = dict() 阅读全文
posted @ 2019-12-30 17:38 AnswerThe 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/comway_Li/article/details/85163607 本博客介绍了如何安装Detectron,其依赖项(包括Caffe2)和COCO数据集。 安装前所需知道的知识: a、Detectron运营商目前没有CPU实施; 需要GPU系统。 阅读全文
posted @ 2019-12-30 17:30 AnswerThe 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 1.本机环境ubuntu18 自带python3.6,建议先删除自带的python3.6 慎重:如果是TLS版本的,切勿删除python,本人删除后桌面就进不去了,如果没装桌面就随意了。 1.卸载python3.6 $sudo apt-get remove python3.6 2.卸载python3 阅读全文
posted @ 2019-12-19 10:07 AnswerThe 阅读(1642) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://www.learnopencv.com/deep-learning-based-human-pose-estimation-using-opencv-cpp-python/ COCO输出格式: 鼻子– 0,脖子– 1,右肩– 2,右肘– 3,右腕– 4,左肩– 5,左肘– 阅读全文
posted @ 2019-12-09 17:22 AnswerThe 阅读(7795) 评论(0) 推荐(0) 编辑
摘要: python来读写ini的配置文件 读取文件: 写文件: 阅读全文
posted @ 2019-09-28 17:20 AnswerThe 阅读(770) 评论(0) 推荐(0) 编辑
摘要: .编写setput.py文件: setup.py文件内容如下: 整个工程中包括多少个py文件,就写多少个Extension,并把需要调用的其他库路径在include_dirs、libraries、library_dirs中进行设置。 编译so文件,执行以下命令: python setup.py bu 阅读全文
posted @ 2019-09-27 21:34 AnswerThe 阅读(6007) 评论(1) 推荐(0) 编辑
摘要: 原图 1. 2. 3. 4. 由上面四种旋转可以组合出, 顺时针旋转90度 逆时针旋转90度 阅读全文
posted @ 2019-09-26 20:58 AnswerThe 阅读(1285) 评论(0) 推荐(0) 编辑
摘要: json某块是python的一个模块,jsonify是flask框架中的一个扩展包 1.字符串转json对象,通过json.loads()方法 2.json对象转字符串,通过json.dumps()方法 3.通过jsonify()方法也是将字典转成json字符串 而区别在于,通过jsonify()方 阅读全文
posted @ 2019-09-26 15:29 AnswerThe 阅读(3934) 评论(1) 推荐(1) 编辑