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

网站定做wordpress酷站

网站定做,wordpress酷站,哪个网站可以做ppt模板,seo网站服务公司Urban3D数据集内容简介 Urban3D数据集图像为正摄RGB影像#xff0c;分辨率为50cm。 从SpaceNet上使用aws下载数据#xff0c;文件夹结构为#xff1a; |- 01-Provisional_Train|- GT|- GT中包含GTC#xff0c;GTI#xff0c;GTL.tif文件#xff0c;GTL为ground truth b…Urban3D数据集内容简介 Urban3D数据集图像为正摄RGB影像分辨率为50cm。 从SpaceNet上使用aws下载数据文件夹结构为 |- 01-Provisional_Train|- GT|- GT中包含GTCGTIGTL.tif文件GTL为ground truth building footprint。|- Inputs|- Inputs中包含DSMDTMRGB.tif文件DSM为Digital Surface ModelsDTM为Digital Terrain Modelsnormalized DSM (nDSM DSM - DTM) |- 02-Provisional_Test |- 03-Sequestered_Test |- 04-Unused_Data |- AOI_polygons |- Pretrained_Models|- 包含前6名参赛团队的模型每一块.tif大小为2048*2048。 Urban3D数据集读取 from torchvision import transforms import numpy as np from PIL import Image import matplotlib.pyplot as plt import sys rgb Image.open(/01-Provisional_Train/Inputs/JAX_Tile_016_RGB.tif) dsm Image.open(/01-Provisional_Train/Inputs/JAX_Tile_016_DSM.tif) gtl Image.open(/01-Provisional_Train/GT/JAX_Tile_016_GTL.tif) print(rgb.size, dsm.size, gtl.size) (2048, 2048) (2048, 2048) (2048, 2048) print(np.array(rgb).shape, np.array(dsm).shape, np.array(gtl).shape) (2048, 2048, 3) (2048, 2048) (2048, 2048) print(np.array(rgb).dtype, np.array(dsm).dtype, np.array(gtl).dtype) uint8 float32 uint8fig plt.figure() plt.subplot(131) plt.imshow(np.array(rgb)) plt.subplot(132) plt.imshow(np.array(dsm)) plt.subplot(133) plt.imshow(np.array(gtl))print(np.max(gtl), np.min(gtl)) 6, 2Urban3D数据集Pytorch处理 使用深度学习需要对Urban3D数据进行裁剪这里采用torchvision.transforms.RandomCrop进行裁剪。RandomCrop可以直接作用于PIL.Image打开的文件和torch类型的数据上但不能作用于numpy数组。具体内容可以参考numpy, PIL, tensor类型在torchvision.transforms时使用 def type_convert(x):x_ np.array(x).astype(np.float32)return x_ def to_tensor(x):x_ np.expand_dims(x, axis0)x_ torch.from_numpy(x_)return x_ trans transforms.Compose([transforms.RandomCrop(size256),transforms.Lambda(type_convert),transforms.Lambda(to_tensor) ])torch.random.manual_seed(16) rgb_crop trans(rgb) torch.random.manual_seed(16) dsm_crop trans(dsm) torch.random.manual_seed(16) gtl_crop trans(gtl) print(rgb_crop.size(), dsm_crop.size(), gtl_crop.size()) fig plt.figure() plt.subplot(131) plt.imshow(rgb_crop[0,:,:,0]) plt.subplot(132) plt.imshow(dsm_crop[0,:,:]) plt.subplot(133) plt.imshow(gtl_crop[0,:,:])同时还需要注意的一点是为了保证RandomCrop后data和label的一致性需要设置随机数种子。对于GTL需要改变label的值。 def type_convert_gtl(x):x_ np.array(x).astype(np.float32)x_[x_6]1x_[x_2]0return x_
http://www.hkea.cn/news/14435619/

相关文章:

  • 房山青岛网站建设珠海做网站开发
  • 宜昌做网站公司html网站开发中的应用
  • 额尔古纳网站建设wordpress用户中心界面
  • 克拉玛依建设局网站互联网运营推广是做什么的
  • 机械外贸网站建设男生十大好就业专业
  • 请网站建设的人多少钱合肥网站开发需要多
  • discuz网站编码wordpress 备案 域名
  • title 镇江网站建设怎么样做兼职网站
  • 衡水电子商务网站建设免费论坛建站系统
  • 天津网站建设首选 津坤科技全国十大物联网平台公司
  • 西宁做网站君博解决好的企业网站建设
  • 做网站卖房写标题网页动态效果
  • 六安市城乡和建设局官方网站互联网营销师考试内容
  • 学院网站建设策划书wordpress 显示标签代码
  • 做微网站需要什么国内精美网站
  • 自己做的网站添加交费功能南通网站建设方案服务
  • 亚马逊官方网站怎么做vue网页模板免费
  • 做网站需要什么设备受欢迎的模板网站建设
  • 怎么给网站搭建后台app应用网站html5模板
  • 网站在哪里搜索wordpress 前台多余代码
  • 万网域名管理网站右翼网站
  • 国学大师网站是哪里做的网站下载的网页修改下面版权所有
  • 网站开发图片加载过慢如何优化xampp 查看wordpress模板
  • 合肥网站建设公司加盟代理网页在线
  • 四川住房和城乡建设部网站官网房地产网站开发
  • 佛山用户网站建设建立网站要钱吗?
  • 优良网站it外包公司为什么不能去
  • 张家界网站制作公司重庆专业网站开发服务
  • 深圳住房和建设局网站登录界面seo免费优化工具
  • 国外做免费的视频网站火车头wordpress发布模块制作