2 Star 46 Fork 18

天涯 / RobustVideoMattingGUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
GPL-3.0

RVM的GUI版本

Robust Video Matting 源码为基础,使用pyqt6以及qdarkstyle样式制作的RVM的GUI版本,并集成了其它工具,为二创作者和影视剪辑爱好者,提供一个集成工具库。
目前已经集成了Segmengt AnythingROOPBuzzSegment and Track AnythingAOTPyCameraListProjectMAMgroundingDINO 源代码,非常感谢RVM、SAM、ROOP、Segment and Track Anything、AOT、PySceneDetect、PyCameraListProject的作者团队,以及所有开源依赖库、字体的制作团队。
python环境:使用RVM_GUI建议3.10版本。且目录最好都是英文命名
使用方法:python gui.py

RVM GUI SCTOOL 自动/手动抠像效果

感谢B站@流云蕊,这里使用她的视频作为抠像素材。

           源视频                 自动抠像视频               手动抠像视频



RVM GUI SCTOOL v109界面

RVM GUI SCTOOL启动主界面
GUI_MAIN
RVM自动抠像界面
GUI_RUNRVM
RVM手动编辑界面
GUI_EDIT
RVM手动编辑-人像区域增加/消除工具
GUI_EDIT_HUMANZONE_EDIT
RVM手动编辑-人像区域增加工具演示动画

RVM手动编辑-人像区域消除减少工具演示动画

RVM手动编辑-源视频帧同步显示窗口
GUI_EDIT_OGIGION_VIDEO_FRAME_DISP
RVM手动编辑-源视频帧同步显示窗口演示动画

RVM手动编辑-SAM(切分任意对象)工具-设置标记点
GUI_EDIT_SAM
RVM手动编辑-SAM(切分任意对象)工具-分析出SAM区域
GUI_EDIT_SAM
RVM手动编辑-SAM(切分任意对象)工具演示动画

RVM手动编辑-AOT(运动追踪)工具
GUI_EDIT_AOT
RVM手动编辑-AOT(运动追踪)工具演示动画

RVM摄像头抠像工具
GUI_CAPTURE
RVM训练UI界面
GUI_TRAIN
人像换脸工具ROOP
GUI_ROOP
多国语言识别为文字工具BUZZ
GUI_BUZZ

Robust Video Matting GUI 下载地址

RVM GUI V1.0.10_newfix修正版(百度云盘):https://pan.baidu.com/s/1NSHgKr7W3Zo-oXhTjQALcg?pwd=47pt
RVM GUI V1.0.10_newfix_patch修正版补丁(百度云盘):https://pan.baidu.com/s/1ITunjpnVyM_dFxIUL37Hwg?pwd=c7k5
RVM GUI V1.0.10_newfix修正版(夸克网盘):https://pan.quark.cn/s/474d1146bb50
RVM GUI V1.0.10_newfix_patch修正版补丁(夸克网盘):https://pan.quark.cn/s/180af723cbc3
RVM GUI V1.0.10_newfix修正版(123云盘):https://www.123pan.com/s/iQvxjv-cu3Kd.html
RVM GUI V1.0.10_newfix_patch修正版补丁(123云盘):https://www.123pan.com/s/iQvxjv-Zu3Kd.html
SAM模型补充包链接(百度云盘):https://pan.baidu.com/s/1-vcviEDjR5wrDopArYuVXA?pwd=04o6
SAM模型补充包链接(夸克云盘):https://pan.quark.cn/s/01d17efaa271
whisper模型补充包链接(百度云盘):https://pan.baidu.com/s/1p0cyd-ZvCCRK1eSlz0nEdA?pwd=z8tu
whisper模型补充包链接(夸克云盘):https://pan.quark.cn/s/35a2521406eb

Robust Video Matting GUI 各版本视频

RVM GUI V1.0.10_newfix修正版及新增功能说明:https://www.bilibili.com/video/BV1AC411s75y
RVM GUI V1.0.10及新增功能说明:https://www.bilibili.com/video/BV1tp421R7Dc
RVM GUI V1.0.9及新增功能说明:https://www.bilibili.com/video/BV1MM41197fo
RVM GUI V1.0.8操作演示:https://www.bilibili.com/video/BV1dj411475d
RVM GUI V1.0.8及新增功能说明:https://www.bilibili.com/video/BV1ew411v76T
RVM GUI V1.0.7及新增功能说明:https://www.bilibili.com/video/BV1B94y1x7o8
RVM GUI V1.0.6及新增功能说明:https://www.bilibili.com/video/BV1tX4y177vK
RVM GUI V1.0.5及新增功能说明:https://www.bilibili.com/video/BV14X4y117AS
RVM GUI V1.0.4及新增功能说明:https://www.bilibili.com/video/BV18M4y1y7Wo
RVM GUI V1.0.3及新增功能说明:https://www.bilibili.com/video/BV1L84y1g7Pn
RVM GUI V1.0.2及采样比参数说明:https://www.bilibili.com/video/BV1pN411c7b1
RVM GUI V1.0.1介绍:https://www.bilibili.com/video/BV1EY411B7V5
RVM GUI V1.0.0及操作说明:https://www.bilibili.com/video/BV1W24y127MU

Robust Video Matting GUI 旧版本下载地址

RVM GUI V1.0.9(百度云盘)下载:https://pan.baidu.com/s/1M1YDvm1C2jbiOTk5GbeQVQ?pwd=ibgh
RVM GUI V1.0.9(123云盘)下载:https://www.123pan.com/s/iQvxjv-CcvKd.html
RVM GUI V1.0.9(夸克云盘)下载:https://pan.quark.cn/s/f05f0b397c85
RVM GUI V1.0.8整合包链接:链接:https://pan.baidu.com/s/1HIBpq8v6QDFaxSedoOiyog?pwd=3wjz
RVM GUI V1.0.7整合包链接:https://pan.baidu.com/s/1YEMj4OoRfPzqMlv8oQb7iw?pwd=8pgc
RVM GUI V1.0.7 SAM模型补充包链接(百度云盘):https://pan.baidu.com/s/1-vcviEDjR5wrDopArYuVXA?pwd=04o6
RVM GUI V1.0.7 whisper模型补充包链接(百度云盘):https://pan.baidu.com/s/1p0cyd-ZvCCRK1eSlz0nEdA?pwd=z8tu
RVM GUI V1.0.6 整合包文件打包地址(百度云):https://pan.baidu.com/s/1OP52r2NMFtSbs3ugvkpTzg?pwd=n3ww
RVM GUI V1.0.6 整合包文件打包地址(阿里云):https://www.aliyundrive.com/s/iDNz2jDrxuk
RVM GUI V1.0.5 EXE文件打包地址:https://pan.baidu.com/s/1erm3eTz00_OH6sv5Nr7scA?pwd=o93f
RVM GUI V1.0.5 整合包文件打包地址:https://pan.baidu.com/s/1cDju2lBlMrSF6jhOKVkkDQ?pwd=opbj
RVM GUI V1.0.4 EXE文件打包地址:https://pan.baidu.com/s/1lB2J1BcduDP2AZJpe3cuFA?pwd=9adc
RVM GUI V1.0.3 EXE文件打包地址:https://pan.baidu.com/s/11rtTs2NtFRlwzeokXjw1sA?pwd=kw53
RVM GUI V1.0.2 EXE文件打包地址:https://pan.baidu.com/s/16bNi5iSdipSq3b331_np9w?pwd=bwhy
RVM GUI V1.0.1 EXE文件打包地址:https://pan.baidu.com/s/1VbYTpZDt61U7KBoF7nWMeQ?pwd=5hhl
RVM GUI V1.0.0 EXE文件打包地址:https://pan.baidu.com/s/1vxBR0qOib6zX_b5XSJXbFg?pwd=s5jd

Robust Video Matting GUI 更新

  • [2024年04月07日] 抽时间修复了对32位PNG进行抠像时跳出的BUG,修正了ONNX模型抠像后输出为图片序列时输出多张黑白图片的BUG。
  • [2024年03月17日] 时隔一月,UP开始了新的征程(其实就是离职换公司了o(╥﹏╥)o),目前准备先整合CUTIE的功能。
  • [2024年02月17日] 修复智能切分场景功能只能切分为一个文件时无文件输出的BUG,修复定长切分文件无时间戳重置导致切分MP4文件时出0000文件其它文件无法正常播放的BUG。
  • [2024年02月11日] 使用动态调用替代了python310.dll及nvml.dll的静态调用,修复了一键包在未装有python3.10及nvidia显卡驱动的电脑上无法启动的问题(应该是,条件有限,使用虚拟机验证)。
  • [2024年02月10日] 修复了由于无法连接huggingface.co无法下载bert-base-uncased模型导致无法启动的BUG。
  • [2024年02月06日] 修复了更新pytorch等模块后BUZZ模块不能正常运行的bug,更新了buzz模块使用的whisper-large-v3模型。
  • [2024年02月06日] 修正了手动编辑界面下自动切分为ptz文件时,如果无法切分为2个镜头以上会导致无ptz文件的BUG。
  • [2024年02月03日] 完善基于AOT区域的MAM分析功能,修复了先打开ptz文件,再进行抠像会继承标记点数据的BUG。
  • [2024年02月01日] 增加了基于多帧AOT区域进行MAM分析的功能,基于无边缘变化的AOT区域获得具有alpha边缘变化的人像抠除区域,但同时也会引入部分多余的抠像区域,可以通过后续的多帧SAM操作进行区域,可以获得更好的人像抠像效果。
  • [2024年01月11日] 继续更新修改了svg图标,调整了图标的显示风格,获得更好的显示效果,主界面增加了开源许可和关于按钮,从RVM GUI界面中移除了关于按钮。
  • [2024年01月11日] 增加了固定时长切分场景功能,专为长视频准备,可以根据设置以秒为单位进行切分;改进了收缩腐蚀和扩展膨胀算法,提高了区域运算的速度;更新修改了svg图标,获得更好的显示效果。
  • [2024年01月10日] 增加了SAM模式下多帧文字标签分析功能
  • [2023年12月29日] 增加了SAM标记模式下的背景标记点功能、SAM模式下仅保留SAM模型功能。
  • [2023年12月28日] 增加了SAM模型文字标签模式,缩小了RVM GUI界面,抠像过程显示隐藏掉之后可以把尺寸调整的更小了。
  • [2023年12月27日] 增加了MAM模型文字标签模式。
  • [2023年12月24日] 开始升级到v1.0.10版本,增加了抠像分割模式下的MAM标记分析模式,与SAM相比,分析出来的抠像区域相对人像头发等部分有了虚化边界,取得了更好的抠像效果,但是对于部分物品还是无法准确分离,UP会继续考虑其它路线和方案。
  • [2023年12月20日] 使用IMgui撰写了RUNGUI.EXE,可以实现启动环境的检 测,以及程序本体占用物理内存/虚拟内存的情况和历史曲线,如果调用NVIDIA显卡,还可以查看程序本体对各个显卡核心及显存的使用情况。
  • [2023年12月13日] 增加基于C/C++编写的启动程序,以后可以使用rungui.exe启动程序了,并且增加了一体化python以及系统内置python的检测,以及中文目录名的提醒。
  • [2023年10月25日] 修复各种自己测试使用时遇到的BUG。
  • [2023年10月25日] 改进了源视频帧对比显示功能,增加了同步缩放和放大状态下的移动功能,修复了高斯模糊参数输入窗口的输入BUG。
  • [2023年10月24日] 为摄像头模式增加了摄像头列表及选择功能。
  • [2023年10月22日] 为AOT增加了当前帧区域扩展膨胀、区域收缩腐蚀、区域边缘高斯模糊功能,帧区间重置区域、区域扩展膨胀、区域收缩腐蚀、区域边缘高斯模糊功能。
  • [2023年10月20日] 为SAM区域增加了区域处理菜单,增加了重置区域、区域扩展膨胀、区域收缩腐蚀、区域边缘高斯模糊功能。
  • [2023年10月19日] 增加了AOT的CPU模式,没有NVIDIA显卡的小伙伴也可以使用AOT运动追踪功能了,该模式在未找到cuda支持是将自动切换,不过速度比较慢,请使用的小伙伴有点耐心。
  • [2023年10月15日] 增加左键移动画面功能,增加mp4视频切分为mp4场景文件功能,修复抠像区域增加/扣除功能中圆形区域bug,增加手动编辑后输出为视频文件功能,增加了源视频帧同步对比显示功能。
  • [2023年10月13日] 修复大小值为奇数时圆形区域崩溃BUG,修复大小值为奇数时方形区域偏移1像素BUG,修复AOT帧数+当前帧序号超过总帧数时崩溃BUG,修复圆形区域边缘残留BUG,修复手动编辑界面关闭后抠像区域内存残留BUG。
  • [2023年10月09日] 修复BUG,增加SAM区域AOT运动追踪功能,AOT区域扣除功能。
  • [2023年09月20日] 最近是在出差过程中挤出时间,进行的更新,这次主要是增加了AOT抠像区域追踪功能,同时增加了SAM功能中的SAM区域抠除功能,并修复了一些BUG。
  • [2023年08月22日] 最近工作累的够呛,干了两天通宵,好几天了都没缓过劲来,所以这两天主要是在休养,外加修正了手动编辑界面的界面,输出图片序列功能里增加了源视频图片,以便于后期编辑。另外PS一下,作为一个单身狗,讨厌七夕节,o( ̄ヘ ̄o#)。
  • [2023年08月15日] 补充了buzz工具并再次整理了软件框架,将RVM_GUI进一步补充ROOP和BUZZ后,作为二次创作的工具库使用。
  • [2023年08月12日] 应小伙伴的要求,补充了roop的功能。
  • [2023年08月11日] 开始更新至v1.0.7版本,为手动编辑模式增加了SAM功能,可以通过多点标记更快的补全人像区域,进一步减少手动编辑的工作量。
  • [2023年08月08日] 应小伙伴的要求,补充了一个简单的实时摄像头抠像功能。
  • [2023年08月01日] 前一段时间各种出差,缓了好一段时间才缓过劲来,最近几天自己利用手动编辑功能修正了几段视频,根据自己的体验改善了手动编辑界面的一些别扭操作,同时也修正了一些RVMGUI和手动编辑界面的BUG,希望后面几天可以顺利的把视频给剪辑好,能发到B站上,自己给自己加油ヾ(◍°∇°◍)ノ゙。
  • [2023年07月20日] 修正了rvm算法界面中读取ini文件中中文路径会导致界面崩溃的bug。
  • [2023年07月19日] 补充requirements_rvmgui.txt使用pipreqs生成的依赖文件,但未经过测试,希望有人使用的话可以反馈一下,我可以及时处理。 同时,建议使用python版本为3.10版本。
  • [2023年06月21日] 修正1.0.6版本功能BUG
  • [2023年06月20日] 距离上次大更新有一个多月了,这次应该就是1.0.6版本了,修改了软件整体架构,增加了启动界面,并切分了RVM抠像以及RVM训练两个模块,制作了RVM训练GUI,可以通过该GUI实现4个阶段的训练。同时在RVM抠像GUI中增加了简单的抠像后alpha通道编辑功能,可以对逐帧对抠像进行再编辑和调整,实现更好的抠像效果,不过该功能纯手动操作,目前主要目的是为后期有针对性的对RVM抠像模型训练提供素材,每次编辑完一帧要点击保存,可以把连续多帧保存成为ptz文件,后面可以通过编辑ptz功能读取后再进行编辑,由于ptz就是把保存的tensor的pt文件压缩一下,所以文件极大,1920x1080的大概一帧100多MB,建议一次保存不超过100帧。 PS:训练对硬件要求极高,我的4080LAPTOP,12G显存,16GB内存+200GB虚拟内存,跑stage1差不多十几个小时跑完了epoch1,然后我缩减了训练集,差不多4个小时一个epoch,跑到了epoch6,就实在跑不下去了;stage2我的12GB显存不够,验证不了;stage3初步跑了一下应该可以;stage4我没有找到imagemate的数据集,验证不了,如果谁的硬件够,可以验证一下,遇到问题可以一起交流一下。
  • [2023年05月13日] 更新了gui界面提示,进一步优化了抠像流程,稍微提高了抠像速度(只输出合成抠像,不开启抠像过程显示),修正了ONNX框架下缩放出错导致的bug,改进了抠像过程的print内容和信息。
  • [2023年05月01日] 终于结束出差回家了,这段时间根据小伙伴的要求,我废寝忘食、呕心沥血,终于增加了抠像视频fgr、pha和com输出时缩小并移动位置的功能,应该可以适应纯色背景、图片背景和视频背景(后两个还没有详细试验,时间比较紧张,可能存在bug,后续会根据反馈修正)。
  • [2023年04月30日] 完善GUI,再次统一整理了框架,补充模型框架参数,在pytorch的基础上,增加了ONNX_FP32和ONNX_FP16参数的选择和设置,简单测试下,CPU计算模式下,ONNX_FP32比pytorch明显更快,ONNX_FP16无运行,CUDA模式下,三种模型框架的速度都差不多。
  • [2023年04月29日] 整理了inference.py的调用接口,将模型调用、读取都统一放到了inference.py里。出差近十天,期间尝试使用ONNX模型框架进行加速,发现onnxruntime使用CUDA模式加速不明显,使用TENSORRT模式由于downsample_ratio类型和动态轴输入的原因,一直无法成功使onnxruntime得tensorrt模式加速,后续准备直接用python调用tensorrt模型动态shape看看能不能提高速度。
  • [2023年04月19日] 增加了对ONNX框架模型的支持,增加了ONNX-FP32和ONNX-FP16两个模型框架,但GUI界面还未修改,后面准备增加GUI相关设置项。
  • [2023年04月16日] 增加了开始抠像判断,如果没有勾选com输出图像并且选择抠像过程显示,则会进行提示。
  • [2023年03月30日] 增加了抠像过程中,显示源视频图像和com输出图像的功能,对界面启动进行了改进,使窗口可以居中显示了。
  • [2023年03月25日] 修正了中断抠像后,再次抠像一帧就中断的BUG。
  • [2023年03月18日] 向源文件中补充了部分注释,在GUI中增加输出抠像内容的选择,可以在com合成抠像、fgr前景抠像、alpha透明度抠像三者中任意组合。
  • [2023年03月15日] 修正已发现的BUG,增加停止抠像按钮和中途停止抠像功能,修改inference.py并在GUI中增加任意背景颜色设置功能。
  • [2023年02月24日] 增加下采样比设置功能及说明,增加了窗口图标显示,使用的是ByteDance IconPark的资源,补充了一部分控件的tooltips。
  • [2023年02月23日] 增加抠像模型选择功能,可以在官方给出的mobilenetv3或resnet50两个模型之间进行选择,同时增加了NVIDIA CUDA设备是否存在的判断,补充了一部分注释,并重新整理一下代码,改进了调用方式,通过import之后运行run函数,应该可以调用了。
  • [2023年02月06日] 在关于窗口中增加了使用开源模块的说明,修复了图片序列输出类型下,抠像完毕弹出输出目录不正确的bug。
  • [2023年02月05日] 增加了图片序列输出功能,输出的图片序列将分别放在输出目录的com、fgr和pha子目录中,并修改了读取默认参数文件时,如果参数不存在会跳出的bug。
  • [2023年01月30日] RVM GUI代码以 GPL-3.0 许可发布。

后续更新计划

最近没少出差,我抽空根据小伙伴们的想法进行了一些更新,也在构思一些新的功能想法,至于训练模型的想法,目前还是没办法排上日程,主要是电脑硬件不行,只能等再攒攒预算,看看啥时候能弄个好点的显卡,在试试了,不过放弃是不会放弃的,继续当做梦想吧。

  • 鉴于RVM抠像对于汉服等细节还不够好,想在后续增加手动调节和校正的功能,这个也放到计划里面吧。
  • 至今为止已经有好几个小伙伴提议增加视频流和摄像头输入的抠像,我不知道能否成功,先放到计划里面吧。
  • 最近出了SAM,了解了之后,准备把SAM和RVM结合一下,想使用SAM分割人像之后和RVM的抠像结合一下,取个并集,看看是否可以得到更好的抠像结果。
  • 后续想把tensorrt的模型给弄出来,看看到底能不能实现提高速度的目的,前段时间,出差的时候抽时间尝试了一下,使用onnxruntime通过TENSORRT模式加速,遇到了各种问题,各种困难,关键是在bing和baidu上都没有解决方案,直到最后,好不容易通过去掉downsample_ratio输入和动态轴输入,初步实现了onnxruntime的tensorrt推理,但是在运行时又卡住了,感觉一步一坎,太痛苦了,不过后续想用pth->onnx->tensorrt模型,通过python的tensorrt模块直接利用动态shape调用rvm的tensorrt模型,看看能不能实现rvm的tensorrt加速。(再努力试试吧,感觉难度好大)
  • 如果时间允许,会增加一个简单的将源视频缩小为原始大小1/N,并放置在任意位置的功能(这个功能已经兑现了,就准备去掉了)。
  • ~~如果时间和条件允许,会尝试进行训练,如果可行,后续会建立汉服人像的抠像训练集,并最终实现汉服人像的稳定抠像,但是这个目标过于远大,而且感觉如果没有稳定的支持和支撑,大概率会凉凉,不过不耽误现在想一想嘛。
  • 准备在AOT功能中,对抠像区域的运动跟踪之外增加SAM区域的跟踪功能,实现对SAM标记识别之后的特定物体区域进行跟踪,并增加AOT的差集合成功能,用来从抠像区域中移除掉AOT区域(主要用于对AOT跟踪的SAM物品区域的移除),进一步提高效率。
  • 准备应小伙伴要求,在手动编辑功能中增加视频片段输出功能,在主gui或者rvmgui界面中增加图片序列合成视频mp4功能。
  • 准备应小伙伴要求,在主gui界面增加傻瓜式一键抠像功能(就是使用默认参数直接对mp4抠像,比较方便,但后续估计不会针对此功能进行改进,主要是没有改进的手段)。
  • 准备基于SAM和AOT增加一个不经过RVM直接对视频/图片序列/图片进行半手动抠像的功能(还在思考)。
  • 之前有小伙伴反应无法移动画面,考虑按下鼠标滚轮移动可能不太好用,在手动编辑GUI中增加了鼠标左键移动画面的功能,作为按下鼠标滚轮移动画面的补充,不过在SAM标记点编辑模式中,只有在标记点区域外才能移动移动画面,按下鼠标滚轮移动的操作方式也并未去掉,依旧可以使用。
  • 准备修复抠像区域增加/消除功能中,使用圆形区域工具边缘存在痕迹并导致程序崩溃的BUG。
  • 准备增加RVMGUI界面下直接对视频进行切分的功能。
  • 在手动编辑界面增加一个源视频图片的对照窗口,并增加鼠标位置的同步显示。
  • 后续想把AOT增加一个cpu可以运行的版本,这样可以增加一下适用性,就是不知道能不能实现,感觉改起来挺麻烦的,可能改完运行起来还非常慢。
  • 增加基于C/C++的启动器。
  • 在手动编辑模式下,增加基于标记点的单帧MAM分割模式。
  • 通过groundingdino实现文字对象的识别。
  • 取消RVM抠像界面的界面尺寸锁定,进一步减小界面。
  • 为摄像头抠像界面增加CUDA模式,在摄像头抠像界面如果检测到CUDA加速,则自动切换为CUDA模式。
  • 使用MAM/SAM进行多帧跟踪和自动抠像(单一人类抠像效果应该还可以??)。
  • 结合参考帧标记点以及后续AOT区域进行判断,实现多帧的SAM/MAM抠像(一个新的思路?)
  • 对关键帧进行运动追踪之后的AOT区域进行核心抽点采样/边框区域计算,再进行SAM/MAM模型抠像,从而获得比AOT区域更好的分割区域。
  • 尝试整合CUTIE的抠像功能。
  • 尝试将抠像时视频解码替换为PyNvCodec,提高抠像时对GPU的使用效率。
  • 进一步进行优化,减少内存占用(尽量)。
  • 复现并修正V1.0.10版本中图片背景跳出bug。
  • 结合controlnet等实现线稿边缘提取,提供边缘提取对比窗口,便于手动抠像。
  • 增加对目录下所有图片的离散图片抠像功能。

项目成员

第三方资源

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: <program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/licenses/why-not-lgpl.html>.

简介

RobustVideoMatting的GUI版本,利用pyqt6搭建了简单的RobustVideoMatting的GUI界面,在此分享,分享依据GPL V3,希望能对各位有所帮助 展开 收起
GPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/ymfjly/RobustVideoMatting.git
git@gitee.com:ymfjly/RobustVideoMatting.git
ymfjly
RobustVideoMatting
RobustVideoMattingGUI
RVMGUI.SCTOOL

搜索帮助