sloth安装使用

来源:互联网 发布:软件测试职位 编辑:程序博客网 时间:2024/06/06 06:40

1. 综述

sloth是一款开源的数据标注软件,可以用于深度学习中数据的标注。还可以以此为基础进行二次开发(我在这里增加了给不同类型label设置不同color的功能)。
项目地址: https://github.com/wanghao00/sloth/
原地址:https://github.com/cvhciKIT/sloth
开发者文档:http://sloth.readthedocs.org/
项目运行截图
(铁轨扣件标注)
(人脸标注)


2. 在Ubuntu16.04环境下安装sloth

进入项目主目录,终端中执行

sudo python setup.py install

安装完毕,可以通过下面2中方式启动

sloth result.json

or

sloth -c myconfig.py result.json

这里推荐后一种

软件安装完毕一般还缺少必要的依赖库,才可以运行;包括PyQt4、numpy、Pillow
PyQt4安装

apt-cache search pyqtsudo apt-get install python-qt4

numpy、Pillow库安装(pip方式)

pip install numpypip install Pillow

注:
pip在安装Python库时发现速度比较慢,可以改用国内的源,清华的源就不错,镜像每 5 分钟同步一次。
临时使用

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package

设为默认
修改~/.pip/pip.conf (没有就创建一个), 修改 index-url至tuna

[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple

参考:

  1. 关于linux下 Python PyQt4安装的种种坑
  2. Installing PIL with pip
  3. pypi 镜像使用帮助
原创粉丝点击