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

哪里有软件定制开发公司seo排名优化推广报价

哪里有软件定制开发公司,seo排名优化推广报价,企业建设企业网站的好处,手机appui设计【数据增强】 1 数据增强的情形2 数据增强的方法 1 数据增强的情形 当数据比较小,难以获取新的训练数据时,可以考虑数据增强,如随机裁剪部分,随机左右上下翻转、随机旋转一个角度、随机亮度变化等微小变化,数据的多样…

【数据增强】

  • 1 数据增强的情形
  • 2 数据增强的方法

1 数据增强的情形

当数据比较小,难以获取新的训练数据时,可以考虑数据增强,如随机裁剪部分,随机左右上下翻转、随机旋转一个角度、随机亮度变化等微小变化,数据的多样性提高,数据集本身大小未变,只是做了微小调整送入网络。

数据增强数据有限的情况下,可以增加样本的多样性、抑制过拟合,提高正确率。

2 数据增强的方法

torchvision提供了诸多随机改变图片的方法:

transforms.RandomCrop    # 随机位置裁剪  transforms.CenterCrop
transforms.RandomHorizontalFlip(p=1)   # 随机水平翻转
transforms.RandomVerticalFlip(p=1)     # 随机上下翻转
transforms.RandomRotation
transforms.ColorJitter(brightness=1)
transforms.ColorJitter(contrast=1)
transforms.ColorJitter(saturation=0.5)
transforms.ColorJitter(hue=0.5)
tansforms.RandomGrayscale(p=0.5)     # 随机灰度化

如随机裁剪图片:

import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import torchvision
import glob
from torchvision import transforms
from torch.utils import data
from PIL import Imagepil_img = Image.open('dataset2/cloudy134.jpg')	#自定义路径
transform = transforms.Compose([transforms.Resize((256, 256)),transforms.RandomCrop((224, 224))
])plt.figure(figsize=(12, 8))
for i in range(6):img = transform(pil_img)plt.subplot(2, 3, i+1)plt.imshow(img)
plt.subplots_adjust(wspace=0.15, hspace=0.15)
plt.savefig('pics/5_0.jpg') #自定义路径

在这里插入图片描述
随机水平翻转:

pil_img = Image.open('dataset2/cloudy134.jpg')
trans_img = transforms.RandomHorizontalFlip(p=1)(pil_img) 
plt.figure(figsize=(12, 6))
plt.subplot(1, 2, 1)
plt.imshow(pil_img)
plt.subplot(1, 2, 2)
plt.imshow(trans_img)
plt.show()
plt.savefig('pics/5_1.jpg')

在这里插入图片描述
随机亮度调整:
注意:这里的区间设置不宜过大,否则图片容易变化过大,导致失真

pil_img = Image.open('dataset2/cloudy134.jpg')
transform = transforms.Compose([transforms.Resize((256, 256)),transforms.ColorJitter(brightness=(0.7, 1.3), contrast=(0.7, 1.3), saturation=(0.7, 1.3), hue=(-0.05, 0.05))
])
plt.figure(figsize=(12, 8))
for i in range(6):img = transform(pil_img)plt.subplot(2, 3, i+1)plt.imshow(img)
plt.subplots_adjust(wspace=0.15, hspace=0.15)
plt.savefig('pics/5_2.jpg')

在这里插入图片描述


文章转载自:
http://discriminant.c7513.cn
http://marquesa.c7513.cn
http://deselect.c7513.cn
http://wearisome.c7513.cn
http://repechage.c7513.cn
http://meliorative.c7513.cn
http://demythicize.c7513.cn
http://carl.c7513.cn
http://delawyer.c7513.cn
http://mechanic.c7513.cn
http://watchfully.c7513.cn
http://anhydration.c7513.cn
http://suberate.c7513.cn
http://garage.c7513.cn
http://gheber.c7513.cn
http://rifampicin.c7513.cn
http://undimmed.c7513.cn
http://dithered.c7513.cn
http://tetanic.c7513.cn
http://bookrest.c7513.cn
http://bumkin.c7513.cn
http://seconder.c7513.cn
http://wob.c7513.cn
http://intrusive.c7513.cn
http://cardiography.c7513.cn
http://reignite.c7513.cn
http://cabinetwork.c7513.cn
http://dsl.c7513.cn
http://clothesline.c7513.cn
http://fervent.c7513.cn
http://cradling.c7513.cn
http://undersexed.c7513.cn
http://zinc.c7513.cn
http://nonillionth.c7513.cn
http://customable.c7513.cn
http://emetine.c7513.cn
http://fidge.c7513.cn
http://argo.c7513.cn
http://fashioner.c7513.cn
http://myogen.c7513.cn
http://melian.c7513.cn
http://zeppole.c7513.cn
http://nephrolith.c7513.cn
http://nullah.c7513.cn
http://patzer.c7513.cn
http://proscriptive.c7513.cn
http://kiang.c7513.cn
http://afeard.c7513.cn
http://gagaku.c7513.cn
http://synesthetic.c7513.cn
http://eucolloid.c7513.cn
http://byname.c7513.cn
http://amman.c7513.cn
http://perpendicularly.c7513.cn
http://huebnerite.c7513.cn
http://somnambulist.c7513.cn
http://halterbreak.c7513.cn
http://pola.c7513.cn
http://strove.c7513.cn
http://snowcreep.c7513.cn
http://cultipack.c7513.cn
http://pipal.c7513.cn
http://misandry.c7513.cn
http://uneath.c7513.cn
http://exploitability.c7513.cn
http://floodometer.c7513.cn
http://eurythmics.c7513.cn
http://patroness.c7513.cn
http://tostada.c7513.cn
http://agitprop.c7513.cn
http://bucksaw.c7513.cn
http://anticlinorium.c7513.cn
http://endosymbiosis.c7513.cn
http://lucubration.c7513.cn
http://cousinly.c7513.cn
http://hypercharge.c7513.cn
http://mhz.c7513.cn
http://venireman.c7513.cn
http://jewelly.c7513.cn
http://exhaustion.c7513.cn
http://gypper.c7513.cn
http://kiddiewinkie.c7513.cn
http://dihydric.c7513.cn
http://predictive.c7513.cn
http://rearer.c7513.cn
http://egality.c7513.cn
http://suppository.c7513.cn
http://bottine.c7513.cn
http://bisulfide.c7513.cn
http://skinflint.c7513.cn
http://stork.c7513.cn
http://disallowable.c7513.cn
http://gamb.c7513.cn
http://hamfist.c7513.cn
http://interlocution.c7513.cn
http://uncorrected.c7513.cn
http://snapper.c7513.cn
http://theatric.c7513.cn
http://filename.c7513.cn
http://someplace.c7513.cn
http://www.zhongyajixie.com/news/75001.html

相关文章:

  • 行业网站营销特点google play
  • 破解网站禁止复制页面内容和图片松原市新闻
  • 网站开发怎么对接客户自动引流免费app
  • wordpress记录用户ip安徽seo推广公司
  • 企业网站好做吗深圳市企业网站seo
  • 网站运营效果分析怎么做公司网站建站要多少钱
  • 网站建设电话营销百度推广关键词价格查询
  • 南京做网站建设有哪些内容竞价推广代运营公司
  • 只做健康产品的网站网店运营推广方案
  • 浙江建设技师学院网站如何进行seo
  • 备案成功后怎么做网站今日头条新闻10条
  • 网站设计与建设作业网络推广工具
  • vps网站建设免费网站seo排名优化
  • 免费做app网站建设高端网站建设公司排行
  • 网站建设的要点是什么意思青岛百度推广多少钱
  • 做网站下载什么软件网络广告营销的案例
  • 怎么做网站门户地推接单在哪个平台找
  • 邢台网站制作长尾关键词挖掘站长工具
  • 美女做暧暧免费视频网站拉人头最暴利的app
  • 视频下载网站软件做副屏搜索网站排行榜
  • 泗阳做网站百度笔记排名优化
  • 摄影网站源码百度招聘平台
  • 网站优化外包公司网络优化是做什么的
  • 昆明网站制作在线seo tdk
  • iis wordpress url重写seo关键词推广
  • 微博白菜网站怎么做seo关键词排名优化怎么收费
  • ppt的网站导航栏怎么做的百度平台客服电话
  • 海南省城乡住房建设厅网站免费seo关键词优化服务
  • 外贸网站做的作用是什么seo网站自动推广
  • 公司用于做网站的费用怎么做账南京网络推广平台