vatic—视频标注工具安装出现error及注意事项
1.安装参考:(主要看的CSDN博客)
博客 https://blog.csdn.net/baidu_26788951/article/details/80053760
官网 Github:https://github.com/cvondrick/vatic
2.安装注意:
两个一起参考,有时候博客里面的细节没有官网多,但官网是英文,有时候理解不到位,所以多方结合最好。
注意:这里的.sh文件,直接去下载了博主的.sh文件。(PS:安装前先仔细阅读一遍安装教程,反正自己被自己坑死,总是不知道遗漏了什么,装了好几遍,尤其注意执行中遇到权限问题Permission denied,就用sudo再来一遍)
.sh文件里面52/54/71-74行注意下,例如:
52 DocumentRoot /home/mou/vatic/public
54 WSGIScriptAlias /server /home/mou/vatic/server.py
改成“ vatic/public”、“vatic/server.py” 所在文件夹路径
3.出现的error
error1
root@mou:~# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
(我是猪吗!!!天那,真的,被自己蠢哭,都不知道登录mysql,说出去都丢人,而且博主自己都说了密码是:root,还是。。。不说了,毕竟你是小白)
注意:进入root模式
解决方法:
root@mou:~# mysql -u root -p
Enter password: root
显示如下:
感谢博主提供的思路https://blog.csdn.net/keepd/article/details/77151006
error2
/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py:1298: UserWarning: /home/suker/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
解决办法
$
cd /home/mou/
$
chmod g-wx,o-wx .python-eggs/
还不行的话:
$
sudo usermod -a -G mou www-data
$
sudo mkdir /var/www/.python-eggs/
$
sudo chown www-data:www-data /var/www/.python-eggs/
$
sudo apache2ctl graceful
注意:
- .python-eggs是隐藏文件,‘ctrl+H'可以查看,在按一次隐藏。我的.python-eggs里面没有东西,我删除了home下的三个文件夹pyvision/turkic/vatic重装一遍。
- 'mou'是你的主机名(如我的是mou@mou,@后面‘mou'是我的主机名)
error3
实现例子
:
$ wget http://techslides.com/demos/sample-videos/small.mp4 -O /home/mou/vagrant_data/small.mp4
$ turkic extract /home/mou/vagrant_data/small.mp4 /home/mou/vagrant_data/example/
$ turkic load example_id /home/mou/vagrant_data/example/ example_label1 example_label2 example_label3 –offline
打开网址
,进行标注,
instructions
有说明,认真看。。。最后
save
可以正常出现web
,但是load时出现问题:
(一万只草泥马在心中奔腾...)(自己不会用,还好意思...)(你,你,你说的对)(你怕不是个演员)(哈哈...这你都知道)(博君一笑,胜过千言)
( 2018.11.8更新 注意turkic load identifier 中的“identifier”是你的项目名,通俗点讲就是你的标注视频在数据库中的名字,后面dump时也要用这个名字哦)
别着急,这是建立过程有问题。
慢慢来。。。12342234。。。
参考:https://github.com/cvondrick/vatic/issues/56
$ turkic
setup –database –reset //
重新重启数据库:(不过你之前的标注就没有了,谨慎使用)
$ mkdir -p /home/mou/vagrant_data/example
$ wget http://techslides.com/demos/sample-videos/small.mp4 -O /home/mou/vagrant_data/small.mp4
(这2,3行你之前执行了的话就不要执行了)
$ turkic extract /
home/mou
/
vagrant_data/video.mp4 /
home/mou
/
vagrant_data
/example
$turkic load identifier /
home/mou
/
vagrant_data/output example_label1 example_label2 example_label3
--offline
$ turkic publish --offline
$ turkic dump identifier -o /
home/mou
/
vagrant_data/output --pascal --pascal-skip 1
(注意Permission denied时,要加sudo)
example_label1
表示你的第一个标签,以此类推,具体还可以加属性
,
,参见官网。。
文件夹下产生:
bingo !!!
2018.11.19更新 紧密输出。txt文件
turkic dump identifier1 -o /home/mou/vagrant_data/output1/output1.txt --merge --merge-threshold 0.5
txt文件内容
1 Track ID. All rows with the same ID belong to the same path.
2 xmin. The top left x-coordinate of the bounding box.
3 ymin. The top left y-coordinate of the bounding box.
4 xmax. The bottom right x-coordinate of the bounding box.
5 ymax. The bottom right y-coordinate of the bounding box.
6 frame. The frame that this annotation represents.
7 lost. If 1, the annotation is outside of the view screen.
8 occluded. If 1, the annotation is occluded.
9 generated. If 1, the annotation was automatically interpolated.
10 label. The label for this annotation, enclosed in quotation marks.
11+ attributes. Each column after this is an attribute.
终于搞定
。
更新2019.3.8
重装Vatic:不知道什么原因(可能系统环境被破坏),mysql登录时密码正确也被拒绝登录,只能重装,重装过程并不顺利,但比起第一次顺利多了
注意:重新找没有配置过vatic的电脑,下次准备试试docker
之前看得博客:https://blog.csdn.net/baidu_26788951/article/details/80053760
在mysql改为无密码时,操作不对,正确操作如下:
选择mysql之后再
更新mysql root为无密码
update user set authentication_string=PASSWORD("") where User='root';
update user set plugin="mysql_native_password";
flush privileges; #更新所有操作权限
quit;
---------------------
原文:https://blog.csdn.net/baidu_26788951/article/details/80053760
其次,修改Apache配置
sudo gedit /etc/apache2/sites-enabled/000-default.conf
添加
WSGIDaemonProcess www-data
WSGIProcessGroup www-data
<VirtualHost
*:80> ServerName localhost
DocumentRoot /home/calabrese/vatic/public
WSGIScriptAlias /server /home/calabrese/vatic/server.py
<Directory /home/calabrese/vatic>
<Files server.py>
Require all granted
</Files>
</Directory>
<Directory /home/calabrese/vatic/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
参考:
https://github.com/cvondrick/vatic/issues/37
2019.4.16更新
注意 https://blog.csdn.net/baidu_26788951/article/details/80053760 博客上下载的vatic-install.sh
其中pyvision下载时出现问题,请对照官网的更改为:git clone https://github.com/cvondrick/pyvision.git
error1:mysql mysqld.sock文件丢失问题
Mysql -- connect MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
https://blog.csdn.net/ydm19891101/article/details/81665037
2019.5.9 更新
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
出先这个情况,只需要在执行的时候加 sudo
2019.5.20
Exception: As of version 1.1.0, this munkres package no longer supports Python 2. Either upgrade to Python 3.5 or better, or use an older version of munkres (e.g., 1.0.12).
sudo pip install munkres==1.0.12
2019.8.3 更新tips:
当标注过多的视频时,会输出很多网址,如何找到某一个你想要的视频对应网址呢?ide2是我要找的视频对应的id,这个id1在turkic load ide2...时定义
turkic find --id ide2
vatic—视频标注工具安装出现error及注意事项相关推荐
- vatic标注工具安装步骤(非docker安装)以及错误解决办法
Vatic标注工具安装步骤(非docker安装)以及错误解决 1.安装参考 2.安装步骤 2.1.环境介绍 2.2.下载Vatic 2.3.配置Apache 2.4.配置MySQL 2.5.配置/安装 ...
- 超级!超级!超级好用的视频标注工具
VATIC视频标注工具(下载见文末) 安装(基于Ubuntu16.04) $ sudo pip install cython==0.20 $ wget http://mit.edu/vondrick/ ...
- yolov3学习笔记-labelImg数据标注工具安装
labelImg数据标注工具 本文主要内容分为以下两大类: a.配置安装: b.安装出现的一些问题:(问题千奇百怪,若出现其他问题,可以一起交流探讨) 安装环境:Ubuntu/Linux下的安装: ( ...
- python标注工具_Python labelImg 图像标注工具安装及使用教程windows版(亲测有效)
1.首先先下载这个工具的源代码(此处贴一个github上面的源代码) 地址:https://github.com/tzutalin/labelImg 2.安装 QT5 tools 看到如上图,表示安装 ...
- Topaz Video AI 视频修复工具 安装教程
Topaz视频增强AI是一款功能强大且易于使用的视频分辨率增强软件.该软件的主要功能是无损放大视频的分辨率,最高可达8K分辨率,它可以将您的所有低分辨率视频转换为8K分辨率的高质量视频,还支持批处理. ...
- 深度学习数据集标注工具、图像语料数据库等资源
NLP+VS︱深度学习数据集标注工具.图像语料数据库.实验室搜索ing... 2017年02月07日 12:12:01 阅读数:27032 ~~因为不太会使用opencv.matlab工具,所以在找一 ...
- 深度学习(DL) /人工智能(AI)数据集标注工具、图像语料数据库
一.NLP标注工具BRAT BRAT是一个基于web的文本标注工具,主要用于对文本的结构化标注,用BRAT生成的标注结果能够把无结构化的原始文本结构化,供计算机处理.利用该工具可以方便的获得各项NLP ...
- NLP+VS︱深度学习数据集标注工具、图像语料数据库、实验室搜索ing..
一.NLP标注工具 来源:<构想:中文文本标注工具(附开源文本标注工具列表)> Chinese-Annotator 来源:https://github.com/crownpku/Chi ...
- NLP+VS︱深度学习数据集标注工具、图像语料数据库、实验室搜索ing....
from: https://blog.csdn.net/sinat_26917383/article/details/54908389 一.NLP标注工具 来源:<构想:中文文本标注工具(附开源 ...
最新文章
- Android抓包方法(一)之Fiddler代理
- 离开时自动提示设为首页
- 在.NET里用XSLT时怎么使用msxsl:script
- iOS---A valid provisioning profile for this executable was not found
- 因为银行过度授信导致信用卡逾期还不上,可以拒绝还款吗?
- linux module原理,NodeJS的模块原理
- VMware Workstation虚拟机窗口小,无法显示内部系统全部桌面
- solaris10下vim安装
- Qt学习 QVariant类(转)
- jquery 发送验证码60s倒计时,后重新发送
- paddle2.0实现DNN(minst数据集)
- Day2:数据类型介绍及相关使用方法
- 计算机桌面背景一直自动更换,电脑的桌面自动变换即自动更换桌面背景
- 为了让机器听懂“长篇大论”,阿里工程师构建了新模型
- 什么是递归查询,迭代查询?
- winform进度条的实现
- 阿里云实时计算产品经理李佳林:基于 Flink 构建大规模风控系统的技术实战
- 数据库常用的几种引擎,区别和比较
- 简单ELT ( 内含系统计算器)
- CF #80 Cthulhu