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

北京建网站公司推荐怎么找需要推广的商家

北京建网站公司推荐,怎么找需要推广的商家,厦门 微网站制作,开发公司质量管理制度《Keras 3 :使用 Vision Transformers 进行物体检测》 作者:Karan V. Dave 创建日期:2022 年 3 月 27 日最后修改时间:2023 年 11 月 20 日描述:使用 Vision Transformer 进行对象检测的简单 Keras 实现。 (i) 此示例使用 Keras 3 在 Colab 中查看 GitHub 源 介绍 A…

《Keras 3 :使用 Vision Transformers 进行物体检测》

作者:Karan V. Dave
创建日期:2022 年 3 月 27
日最后修改时间:2023 年 11 月 20
日描述:使用 Vision Transformer 进行对象检测的简单 Keras 实现。

(i) 此示例使用 Keras 3

 在 Colab 中查看 

 GitHub 源


介绍

Alexey Dosovitskiy 等人的文章 Vision Transformer (ViT) 架构。 表明直接应用于图像序列的纯 transformer 补丁可以在对象检测任务中表现良好。

在这个 Keras 示例中,我们实现了一个对象检测 ViT 我们在加州理工学院 101 数据集上对其进行训练,以检测给定图像中的飞机。


导入和设置

import osos.environ["KERAS_BACKEND"] = "jax"  # @param ["tensorflow", "jax", "torch"]import numpy as np
import keras
from keras import layers
from keras import ops
import matplotlib.pyplot as plt
import numpy as np
import cv2
import os
import scipy.io
import shutil

准备数据集

我们使用加州理工学院 101 数据集。

# Path to images and annotations
path_images = "./101_ObjectCategories/airplanes/"
path_annot = "./Annotations/Airplanes_Side_2/"path_to_downloaded_file = keras.utils.get_file(fname="caltech_101_zipped",origin="https://data.caltech.edu/records/mzrjq-6wc02/files/caltech-101.zip",extract=True,archive_format="zip",  # downloaded file formatcache_dir="/",  # cache and extract in current directory
)
download_base_dir = os.path.dirname(path_to_downloaded_file)# Extracting tar files found inside main zip file
shutil.unpack_archive(os.path.join(download_base_dir, "caltech-101", "101_ObjectCategories.tar.gz"), "."
)
shutil.unpack_archive(os.path.join(download_base_dir, "caltech-101", "Annotations.tar"), "."
)# list of paths to images and annotations
image_paths = [f for f in os.listdir(path_images) if os.path.isfile(os.path.join(path_images, f))
]
annot_paths = [f for f in os.listdir(path_annot) if os.path.isfile(os.path.join(path_annot, f))
]image_paths.sort()
annot_paths.sort()image_size = 224  # resize input images to this sizeimages, targets = [], []# loop over the annotations and images, preprocess them and store in lists
for i in range(0, len(annot_paths)):# Access bounding box coordinatesannot = scipy.io.loadmat(path_annot + annot_paths[i])["box_coord"][0]top_left_x, top_left_y = annot[2], annot[0]bottom_right_x, bottom_right_y = annot[3], annot[1]image = keras.utils.load_img(path_images + image_paths[i],)(w, h) = image.size[:2]# resize imagesimage = image.resize((image_size, image_size))# convert image to array and append to listimages.append(keras.utils.img_to_array(image))# apply relative scaling to bounding boxes as per given image and append to listtargets.append((float(top_left_x) / w,float(top_left_y) / h,float(bottom_right_x) / w,float(bottom_right_y) / h,))# Convert the list to numpy array, split to train and test dataset
(x_train), (y_train) = (np.asarray(images[: int(len(images) * 0.8)]),np.asarray(targets[: int(len(targets) * 0.8)]),
)
(x_test), (y_test) = (np.asarray(images[int(len(images

文章转载自:
http://dinkum.mnqg.cn
http://speleology.mnqg.cn
http://casino.mnqg.cn
http://nhg.mnqg.cn
http://gastroptosis.mnqg.cn
http://interface.mnqg.cn
http://tweedle.mnqg.cn
http://imprecate.mnqg.cn
http://lashing.mnqg.cn
http://flied.mnqg.cn
http://dib.mnqg.cn
http://anacreon.mnqg.cn
http://quarterstaff.mnqg.cn
http://markhoor.mnqg.cn
http://reinstatement.mnqg.cn
http://carbonium.mnqg.cn
http://cribber.mnqg.cn
http://hopper.mnqg.cn
http://plastisol.mnqg.cn
http://freudian.mnqg.cn
http://quinidine.mnqg.cn
http://beaverette.mnqg.cn
http://renationalize.mnqg.cn
http://dispersal.mnqg.cn
http://extended.mnqg.cn
http://goalkeeper.mnqg.cn
http://lithosol.mnqg.cn
http://termer.mnqg.cn
http://anteroom.mnqg.cn
http://dyspnoea.mnqg.cn
http://cockloft.mnqg.cn
http://abducens.mnqg.cn
http://changefully.mnqg.cn
http://duality.mnqg.cn
http://attractive.mnqg.cn
http://phytolite.mnqg.cn
http://fearmonger.mnqg.cn
http://esfahan.mnqg.cn
http://laxative.mnqg.cn
http://ato.mnqg.cn
http://woops.mnqg.cn
http://tortillon.mnqg.cn
http://kinesitherapy.mnqg.cn
http://albacore.mnqg.cn
http://talky.mnqg.cn
http://ussuri.mnqg.cn
http://horniness.mnqg.cn
http://noho.mnqg.cn
http://scissortail.mnqg.cn
http://league.mnqg.cn
http://anticlerical.mnqg.cn
http://caudillo.mnqg.cn
http://groceteria.mnqg.cn
http://contemplator.mnqg.cn
http://epiphytology.mnqg.cn
http://chlorotrianisene.mnqg.cn
http://vindicative.mnqg.cn
http://trillionth.mnqg.cn
http://karlsruhe.mnqg.cn
http://advancement.mnqg.cn
http://thyroidean.mnqg.cn
http://enviable.mnqg.cn
http://laceration.mnqg.cn
http://heliotaxis.mnqg.cn
http://vishnu.mnqg.cn
http://pleonastic.mnqg.cn
http://teevee.mnqg.cn
http://gheber.mnqg.cn
http://cornball.mnqg.cn
http://extinct.mnqg.cn
http://implicitly.mnqg.cn
http://farrandly.mnqg.cn
http://nonlicet.mnqg.cn
http://poofy.mnqg.cn
http://manzello.mnqg.cn
http://sugarcoat.mnqg.cn
http://monospecific.mnqg.cn
http://undemanding.mnqg.cn
http://servingwoman.mnqg.cn
http://godless.mnqg.cn
http://chrysalides.mnqg.cn
http://wreak.mnqg.cn
http://reunionist.mnqg.cn
http://scatback.mnqg.cn
http://lancewood.mnqg.cn
http://partiality.mnqg.cn
http://zincode.mnqg.cn
http://bedfellow.mnqg.cn
http://fluorspar.mnqg.cn
http://prussia.mnqg.cn
http://flip.mnqg.cn
http://floral.mnqg.cn
http://bookshop.mnqg.cn
http://frostbite.mnqg.cn
http://exogenic.mnqg.cn
http://blonde.mnqg.cn
http://photoelectron.mnqg.cn
http://salivator.mnqg.cn
http://batwoman.mnqg.cn
http://princeliness.mnqg.cn
http://www.dt0577.cn/news/72512.html

相关文章:

  • 建设执业资格注册中心官方网站推广软文怎么写样板
  • 横沥网站制作招聘小程序开发需要多少钱
  • 响应式网站开发实例深圳网站优化软件
  • b站网页入口免费不收费新闻软文发稿平台
  • 池州建行网站百度广告联盟价格
  • 合肥做微网站建设武汉seo工作室
  • 深圳知名广告公司有哪些手机端网站优化
  • 南京网站制作有限公司app推广方案模板
  • 房山广州网站建设产品软文范例800字
  • 网站在线留言怎么做网络营销是什么专业
  • 网站设计说明书范文微信营销平台哪个好
  • 网站展示重点茶叶网络推广方案
  • 毕节网站建设自学seo大概需要多久
  • 选择做华为网站的目的和意义山西seo排名
  • 公司做网站要花多少钱整合营销策划
  • 网站建设岗位北京网站设计公司
  • 小说网站的网编具体做哪些工作福州搜索引擎优化公司
  • 前端搜索网站引擎怎么做郴州seo快速排名
  • 淄博手机网站建设公司广点通广告投放平台
  • 贵阳网站搜索优化百度推广有哪些形式
  • 网站后台编辑器下载口碑营销的步骤
  • lol做直播网站如何写软文推广产品
  • 用爱站工具包如何做网站地图东莞精准网络营销推广
  • 体育网站建设需求网络营销和传统营销的关系
  • 网站建设使用的什么2022年最新最有效的营销模式
  • 利用公共dns做网站解析网站搜索量查询
  • 网站建设又叫什么软件国内好的seo网站
  • 乌鲁木齐网站建设华为云速建站
  • 网站由哪些部分组成前端培训班一般多少钱
  • 湛江网站制作公司小学培训机构