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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
The Last Watchdog
The Last Watchdog
Cyberwarzone
Cyberwarzone
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The Cloudflare Blog
V
V2EX
博客园_首页
博客园 - 聂微东
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
GRAHAM CLULEY
T
Tenable Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
SecWiki News
SecWiki News
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
A
About on SuperTechFans
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
D
DataBreaches.Net
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
D
Docker
P
Proofpoint News Feed

福利 on 打工人日志

KyBook 3 | calibre-web - IOS系统最佳图书伴侣 iOS 17 「待机显示」适配普通 iPhone(非 Pro/Max),屏幕在充电时常亮 【福利】埃隆·马斯克传 [沃尔特·艾萨克森] 在线下载 【破解】小鹏P5和小鹏G9开启adb和网络adb 3D Gaussian Splatting:3D模型渲染 2023亚运会电竞门票民购买指南(报名+抽签) 大麦抢票辅助软件(福利 TFBOYS十年之约演唱会 2023 全机位 视频) 最好的微信朋友圈集赞神器-福利推荐
【福利】免费!本地部署!去除视频中移动的物体
2024-07-22 · via 福利 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 在线演示