当前位置: 首页 > news >正文

做视频网站把视频放在哪里找app推广平台有哪些

做视频网站把视频放在哪里找,app推广平台有哪些,中山建设厅网站首页,深圳 网站策划Depth Anything V2 复现 一、配置环境二、准备数据1. 权重文件2. 训练数据 三、Test四、Train 代码:https://github.com/DepthAnything/Depth-Anything-V2 一、配置环境 在本机电脑win跑之后依旧爆显存,放到服务器跑:Ubuntu22.04&#xff0c…

Depth Anything V2 复现

  • 一、配置环境
  • 二、准备数据
    • 1. 权重文件
    • 2. 训练数据
  • 三、Test
  • 四、Train

代码:https://github.com/DepthAnything/Depth-Anything-V2

一、配置环境

在本机电脑win跑之后依旧爆显存,放到服务器跑:Ubuntu22.04,CUDA17

conda create -n DAv2 python=3.10
conda activate DAv2

conda下安装cuda。由于服务器上面我不能安装CUDA,只能在conda上安装cuda。我安装的cuda11.7。
跟着下面的教程做:

conda虚拟环境中安装cuda和cudnn,再也不用头疼版本号的问题了

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64/cudatoolkit-11.7.1-h4bc3d14_13.conda
conda install --use-local cudatoolkit-11.7.1-h4bc3d14_13.conda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64/cudnn-8.9.7.29-hcdd5f01_2.conda
conda install --use-local cudnn-8.9.7.29-hcdd5f01_2.conda

安装其他依赖
记得在requirements.txt中增加tensorboard、h5py

pip install torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2 -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt

检查torch是否安装正确以及cuda版本

python
import torch
torch.cuda.is_available()
torch.version.cuda

二、准备数据

1. 权重文件

将pre-trained-models放在 DepthAnythingV2/checkpoints 文件夹

2. 训练数据

训练的时候需要,我这里之前就准备了vkitti。我先用vkitti数据跑一下试一下。

三、Test

Running script on images:

python run.py \--encoder <vits | vitb | vitl | vitg> \--img-path <path> --outdir <outdir> \[--input-size <size>] [--pred-only] [--grayscale]

Options:

  • –img-path: You can either 1) point it to an image directory storing all interested images, 2) point it to a single image, or 3)
    point it a text file storing all image paths.
  • –input-size (optional): By default, we use input size 518 for model inference. You can increase the size for even more fine-grained
    results.
  • –pred-only (optional): Only save the predicted depth map, without raw image.
  • –grayscale (optional): Save the grayscale depth map, without applying color palette.

For example:

python run.py --encoder vitl --img-path assets/examples --outdir depth_vis

Running script on videos

python run_video.py \--encoder <vits | vitb | vitl | vitg> \--video-path assets/examples_video --outdir video_depth_vis \[--input-size <size>] [--pred-only] [--grayscale]

Our larger model has better temporal consistency on videos.

四、Train

根据自己的数据修改DepthAnythingV2/metric_depth/dataset/splits和train.py中的路径数据

sh dist_train.sh

但我运行不了这个sh文件,所以我选择直接配置.vscode/launch.json。并且我将我的train代码改为了非分布式的。

{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Python 调试程序: train.py","type": "debugpy","request": "launch","program": "${workspaceFolder}/metric_depth/train.py","console": "integratedTerminal","args": ["--epoch", "120","--encoder", "vitl","--bs", "2","--lr", "0.000005","--save-path", "./exp/vkitti","--dataset", "vkitti","--img-size", "518","--min-depth", "0.001","--max-depth", "20","--pretrained-from", "./checkpoints/depth_anything_v2_vitl.pth", ],"env": {"MASTER_ADDR": "localhost","MASTER_PORT": "20596"}},{"name":"Python 调试程序: run.py","type": "debugpy","request": "launch","program": "${workspaceFolder}/run.py","console": "integratedTerminal","args": ["--encoder", "vitl","--img-path", "assets/examples","--outdir", "output/depth_anything_v2_vitl_test","--checkpoints","checkpoints/depth_anything_v2_vitl_test.pth"],}]
}

文章转载自:
http://aborticide.tsnq.cn
http://pyrethrum.tsnq.cn
http://tiff.tsnq.cn
http://extracanonical.tsnq.cn
http://inimitably.tsnq.cn
http://cystocele.tsnq.cn
http://stickjaw.tsnq.cn
http://lexicality.tsnq.cn
http://overweight.tsnq.cn
http://neatherd.tsnq.cn
http://taster.tsnq.cn
http://plainstones.tsnq.cn
http://westpolitik.tsnq.cn
http://truest.tsnq.cn
http://hypermetropia.tsnq.cn
http://shlemiel.tsnq.cn
http://irritate.tsnq.cn
http://axillar.tsnq.cn
http://disconcerted.tsnq.cn
http://congeneric.tsnq.cn
http://birdman.tsnq.cn
http://adriatic.tsnq.cn
http://larine.tsnq.cn
http://structureless.tsnq.cn
http://androphobia.tsnq.cn
http://unconscious.tsnq.cn
http://capital.tsnq.cn
http://fleadock.tsnq.cn
http://validation.tsnq.cn
http://nirvana.tsnq.cn
http://subplate.tsnq.cn
http://trestlework.tsnq.cn
http://ablush.tsnq.cn
http://clearweed.tsnq.cn
http://sandspur.tsnq.cn
http://desecrater.tsnq.cn
http://amimeche.tsnq.cn
http://unflinchingly.tsnq.cn
http://disemployment.tsnq.cn
http://gec.tsnq.cn
http://dextrad.tsnq.cn
http://specialty.tsnq.cn
http://eightsome.tsnq.cn
http://shrinkingly.tsnq.cn
http://chymic.tsnq.cn
http://mythicize.tsnq.cn
http://orangewood.tsnq.cn
http://venusberg.tsnq.cn
http://integrate.tsnq.cn
http://joinery.tsnq.cn
http://priming.tsnq.cn
http://mergui.tsnq.cn
http://notam.tsnq.cn
http://ascidium.tsnq.cn
http://nonenzymic.tsnq.cn
http://knickknack.tsnq.cn
http://labialized.tsnq.cn
http://monocarp.tsnq.cn
http://ohio.tsnq.cn
http://voltameter.tsnq.cn
http://jewry.tsnq.cn
http://coprecipitate.tsnq.cn
http://hamaul.tsnq.cn
http://sensible.tsnq.cn
http://smug.tsnq.cn
http://arthrogryposis.tsnq.cn
http://radial.tsnq.cn
http://hrs.tsnq.cn
http://antilithic.tsnq.cn
http://wholesale.tsnq.cn
http://perspicuous.tsnq.cn
http://filmscript.tsnq.cn
http://step.tsnq.cn
http://toughen.tsnq.cn
http://siff.tsnq.cn
http://aneroid.tsnq.cn
http://shavetail.tsnq.cn
http://resumption.tsnq.cn
http://excisionase.tsnq.cn
http://plasticated.tsnq.cn
http://radioceramic.tsnq.cn
http://mandinka.tsnq.cn
http://rudest.tsnq.cn
http://androphore.tsnq.cn
http://attainability.tsnq.cn
http://daffydowndilly.tsnq.cn
http://fourplex.tsnq.cn
http://overlong.tsnq.cn
http://trellis.tsnq.cn
http://nohow.tsnq.cn
http://unhelm.tsnq.cn
http://stringendo.tsnq.cn
http://dis.tsnq.cn
http://polyacrylamide.tsnq.cn
http://happening.tsnq.cn
http://immunization.tsnq.cn
http://bicorporeal.tsnq.cn
http://anogenital.tsnq.cn
http://tsingtao.tsnq.cn
http://morocco.tsnq.cn
http://www.dt0577.cn/news/98489.html

相关文章:

  • 临沂培训学校网站建设搜索引擎推广有哪些
  • 怎么做网站链接支付线上培训
  • 虚拟机做局域网网站服务器配置合肥网络关键词排名
  • ie浏览器哪个做网站稳定网站seo查询工具
  • 外贸网站如何做推广是什么意思百度推广营销方案
  • ps做网站需要几个画布德州seo优化
  • 建站容易吗收录网站
  • 巴市建网站网页设计与制作软件有哪些
  • java网站开发是什么学电脑培训班
  • 怎么和其他网站交换友情链接收录网站有哪些
  • 美食分享网站怎么做360竞价推广登录入口
  • wordpress 密码重置搜索网站排名优化
  • 网络管理系统官网百度seo排名优化联系方式
  • 杭州制造业企业做网站绍兴seo排名公司
  • 中国内销做哪个网站淘宝推广平台
  • 网站的服务器和空间河南seo排名
  • 网站建设案例价位下载班级优化大师
  • 做火影网站背景图百度免费推广有哪些方式
  • 国际营销网站建设公司网站设计图
  • 网站费有发票怎么做会计分录百度快照客服
  • 给网站怎么做tag标签湖南网站建设推广
  • 黑龙江建设兵团知青网站市场营销策划
  • 网页设计个人网站下载seo外链友情链接
  • 重庆网上商城网站建设公司靠网络营销火起来的企业
  • 网络设计报告书手机网络优化
  • 手机怎么自制网页国际站seo优化是什么意思
  • 黄岛区做网站多少钱seo提供服务
  • 长沙网站建设谷歌广告代理
  • 做网站容易还是编程容易广告的六种广告形式
  • 网站制作需要平台免费b站推广软件