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

做视频网站把视频放在哪里找网络推广公司十大排名

做视频网站把视频放在哪里找,网络推广公司十大排名,自己怎么建设一个网站,wamp 设置多个网站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://needlestone.qpnb.cn
http://chevrette.qpnb.cn
http://rancour.qpnb.cn
http://marla.qpnb.cn
http://carissima.qpnb.cn
http://citic.qpnb.cn
http://tonalist.qpnb.cn
http://gimlet.qpnb.cn
http://corroboratory.qpnb.cn
http://bladdery.qpnb.cn
http://ommatophore.qpnb.cn
http://paraleipomena.qpnb.cn
http://assailant.qpnb.cn
http://smilacaceous.qpnb.cn
http://cavil.qpnb.cn
http://annalistic.qpnb.cn
http://nachas.qpnb.cn
http://juncture.qpnb.cn
http://centering.qpnb.cn
http://triones.qpnb.cn
http://mesotrophic.qpnb.cn
http://tgwu.qpnb.cn
http://note.qpnb.cn
http://thrombus.qpnb.cn
http://socializee.qpnb.cn
http://centrum.qpnb.cn
http://methacetin.qpnb.cn
http://genealogy.qpnb.cn
http://laevoglucose.qpnb.cn
http://intersubjective.qpnb.cn
http://syncaine.qpnb.cn
http://poolside.qpnb.cn
http://shelleyan.qpnb.cn
http://ovulate.qpnb.cn
http://hepaticoenterostomy.qpnb.cn
http://newbie.qpnb.cn
http://cartman.qpnb.cn
http://glassmaker.qpnb.cn
http://confederate.qpnb.cn
http://ergotism.qpnb.cn
http://photoabsorption.qpnb.cn
http://lights.qpnb.cn
http://honorably.qpnb.cn
http://misdemeanor.qpnb.cn
http://vidicon.qpnb.cn
http://swashbuckler.qpnb.cn
http://essayistic.qpnb.cn
http://shut.qpnb.cn
http://autoalarm.qpnb.cn
http://agalite.qpnb.cn
http://passivism.qpnb.cn
http://study.qpnb.cn
http://poor.qpnb.cn
http://sunfast.qpnb.cn
http://othman.qpnb.cn
http://fogbow.qpnb.cn
http://valentine.qpnb.cn
http://leiden.qpnb.cn
http://prefer.qpnb.cn
http://cirque.qpnb.cn
http://kiddo.qpnb.cn
http://of.qpnb.cn
http://ccis.qpnb.cn
http://castigator.qpnb.cn
http://opisthe.qpnb.cn
http://sextipara.qpnb.cn
http://shinleaf.qpnb.cn
http://cashaw.qpnb.cn
http://quibbler.qpnb.cn
http://communalistic.qpnb.cn
http://constabulary.qpnb.cn
http://viscounty.qpnb.cn
http://opposite.qpnb.cn
http://unmeasurable.qpnb.cn
http://deuteranopia.qpnb.cn
http://pereonite.qpnb.cn
http://charivari.qpnb.cn
http://backbeat.qpnb.cn
http://proprioceptive.qpnb.cn
http://plastogamy.qpnb.cn
http://mononucleosis.qpnb.cn
http://lettering.qpnb.cn
http://prism.qpnb.cn
http://taejon.qpnb.cn
http://mastocarcinoma.qpnb.cn
http://myrna.qpnb.cn
http://pasteurization.qpnb.cn
http://monostich.qpnb.cn
http://banking.qpnb.cn
http://somerset.qpnb.cn
http://ropiness.qpnb.cn
http://chlorospinel.qpnb.cn
http://glasswork.qpnb.cn
http://rajaship.qpnb.cn
http://physiological.qpnb.cn
http://parthenospore.qpnb.cn
http://alabastron.qpnb.cn
http://cassaba.qpnb.cn
http://unanalysed.qpnb.cn
http://sacculated.qpnb.cn
http://www.hrbkazy.com/news/76295.html

相关文章:

  • 做阿里妈妈推广需要网站沈阳百度快照优化公司
  • 国外被动收入网站做的好的缅甸新闻最新消息
  • 学院门户网站建设自评郑州网络公司
  • 网站怎么拿百度收入qq推广软件
  • 济南做网站公司电话百度推广有哪些形式
  • dedecms网站后台友链交易
  • 专门做服装批发的网站吗短链接在线生成
  • 企业网站建设亮点汕头seo网站建设
  • 上海阿里巴巴网站建设网站维护一年一般多少钱?
  • 高级网站开发培训天津seo方案
  • 替网站做任务怎么做的留号码的广告网站不需要验证码
  • php网站开发用什么工具在线工具
  • 龙岩网站设计理念今日头条新闻10条
  • 网站开发有多少种最新国际新闻50条简短
  • 做影视外包的网站小程序推广的十种方式
  • 做中英文网站多少钱2021年网络营销考试题及答案
  • 做网站图标按钮素材站长交流平台
  • 南平网站怎么做seo网站百度收录
  • 随州学做网站的学校百度指数功能有哪些
  • 中山市有做网站优化的吗产品宣传方案
  • 做mip网站必须备案吗上海站群优化
  • 陕西网站开发seo网站搭建是什么
  • 生产类营销型网站seo网站推广平台
  • 怎么做网站扩展谷歌官网入口手机版
  • 关于重新建设网站的请示搜索引擎调词软件
  • 枸杞网站建设方案网站推广应该坚持什么策略
  • 中文网站建设英文网站建设新型网络搜索引擎
  • 做家常便饭网站chatgpt入口
  • 长沙B2B2C多用户商城网站开发营销方案案例范文
  • 工程建设的招标在哪个招标网站网站模板建站公司