惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
C
Check Point Blog
GbyAI
GbyAI
博客园 - 司徒正美
爱范儿
爱范儿
N
Netflix TechBlog - Medium
H
Hacker News: Front Page
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Security Latest
Security Latest
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园 - Franky
Recent Announcements
Recent Announcements
P
Privacy International News Feed
T
Tor Project blog
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
G
GRAHAM CLULEY
The Hacker News
The Hacker News
N
News and Events Feed by Topic
I
Intezer
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
T
Threat Research - Cisco Blogs
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
DataBreaches.Net
Hacker News - Newest:
Hacker News - Newest: "LLM"
Last Week in AI
Last Week in AI
H
Help Net Security
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
Help Net Security
Help Net Security
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Google Online Security Blog
Google Online Security Blog
Cyberwarzone
Cyberwarzone
T
Tailwind CSS Blog
V
Vulnerabilities – Threatpost
Forbes - Security
Forbes - Security
Apple Machine Learning Research
Apple Machine Learning Research
O
OpenAI News
AWS News Blog
AWS News Blog
月光博客
月光博客

daliy on 打工人日志

iStoreOS(旁路由)使用openclash实现dns劫持 异常流量分析:图片库服务黑客入侵 openwrt 硬盘扩容 搭建ip地址检索服务 通知:《打工人日报》迁移到独立板块 KyBook 3 | calibre-web - IOS系统最佳图书伴侣 iOS 17 「待机显示」适配普通 iPhone(非 Pro/Max),屏幕在充电时常亮 【福利】埃隆·马斯克传 [沃尔特·艾萨克森] 在线下载 【破解】小鹏P5和小鹏G9开启adb和网络adb 3D Gaussian Splatting:3D模型渲染 2023亚运会电竞门票民购买指南(报名+抽签) 大麦抢票辅助软件(福利 TFBOYS十年之约演唱会 2023 全机位 视频) 最好的微信朋友圈集赞神器-福利推荐 2010年的天涯神贴聊房价 github 国内代理访问下载 逆境和成长-2022年终总结 优雅的使用Conda管理python环境 shell功能脚本集合 headscale 部署使用 羊了个羊小程序 破解通关 logrotate 日志滚动的使用 rsync 文件同步 163企业邮箱设置教程 2021年第50周记 优秀英语教材的选择
【福利】免费!本地部署!去除视频中移动的物体
2024-07-22 · via daliy on 打工人日志

分享一款 去除视频中移动的物体。的本地部署软件,完全免费!

效果

物体移除

物体移除1
物体移除2

水印去除

水印去除1
水印去除2

下载地址

国内下载

代码仓库

ProPainter

安装

1git clone https://github.com/sczhou/ProPainter.git
1conda create -n propainter python=3.8 -y
2conda activate propainter
3cd ProPainter
4pip3 install -r requirements.txt

版本要求

  • CUDA >= 9.2
  • PyTorch >= 1.7.1
  • Torchvision >= 0.8.2

开始使用

准备预训练模型

预训练模型从版本 V0.1.0 下载到 weights 文件夹。
https://github.com/sczhou/ProPainter/releases/tag/v0.1.0

1weights
2   |- ProPainter.pth
3   |- recurrent_flow_completion.pth
4   |- raft-things.pth
5   |- i3d_rgb_imagenet.pt (for evaluating VFID metric)
6   |- README.md

快速测试

1# The first example (object removal)
2python inference_propainter.py --video inputs/object_removal/bmx-trees --mask inputs/object_removal/bmx-trees_mask 
3# The second example (video completion)
4python inference_propainter.py --video inputs/video_completion/running_car.mp4 --mask inputs/video_completion/mask_square.png --height 240 --width 432

内存高效推理

视频修复通常需要大量 GPU 内存。在这里,我们提供了各种有助于内存高效推理的功能,有效避免内存不足(OOM)错误。您可以使用以下选项进一步减少内存使用量:

  • 通过减少 --neighbor_length (默认 10)来减少本地邻居的数量。
  • 通过增加 --ref_stride (默认 10)来减少全局引用的数量。
  • 设置 --resize_ratio (默认1.0)以调整处理视频的大小。
  • 通过指定 --width--height 设置较小的视频大小。
  • 设置 --fp16 在推理过程中使用 fp16(半精度)。
  • 减少子视频 --subvideo_length 的帧数(默认80),有效解耦GPU内存消耗和视频长度。

训练

1 # For training Recurrent Flow Completion Network
2 python train.py -c configs/train_flowcomp.json
3 # For training ProPainter
4 python train.py -c configs/train_propainter.json

web端

Hugging Face 在线演示
OpenXLab 在线演示