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

网站建设应重视后期的服务和维护怎么做班级网站

网站建设应重视后期的服务和维护,怎么做班级网站,用自己的手机做网站,秦皇岛吧 百度贴吧目录 1. 下载dataset 2. 读取并做可视化 3. 源码阅读 3.1 读取点云数据-bin格式 3.2 读取标注数据-.label文件 3.3 读取配置 3.4 test 3.5 train 1. 下载dataset 以SemanticKITTI为例。下载链接#xff1a;http://semantic-kitti.org/dataset.html#download 把上面三…目录 1. 下载dataset 2. 读取并做可视化 3. 源码阅读 3.1 读取点云数据-bin格式 3.2 读取标注数据-.label文件 3.3 读取配置 3.4 test 3.5 train 1. 下载dataset 以SemanticKITTI为例。下载链接http://semantic-kitti.org/dataset.html#download 把上面三个下载下来。 同级目录下解压 unzip data_odometry_labels.zip unzip data_odometry_velodyne.zip unzip data_odometry_calib.zip 解压后文件夹形式 2. 读取并做可视化 import open3d.ml.torch as ml3d # or open3d.ml.tf as ml3d# construct a dataset by specifying dataset_path dataset ml3d.datasets.SemanticKITTI(dataset_path/home/zxq/data/kitti)# get the all split that combines training, validation and test set all_split dataset.get_split(all)# print the attributes of the first datum print(all_split.get_attr(0))# print the shape of the first point cloud print(all_split.get_data(0)[point].shape)# show the first 100 frames using the visualizer vis ml3d.vis.Visualizer() vis.visualize_dataset(dataset, all, indicesrange(100)) 点云分割数据集SemanticKITTI 3. 源码阅读 3.1 读取点云数据-bin格式 SemanticKITTI的点云和标注数据都是二进制文件。 datatsets/utils/dataprocessing.py  staticmethoddef load_pc_kitti(pc_path): # ./000000.binscan np.fromfile(pc_path, dtypenp.float32) # (num_pt*4,)scan scan.reshape((-1, 4)) # # (num_pt,4)# points scan[:, 0:3] # get xyzpoints scanreturn points 3.2 读取标注数据-.label文件 def load_label_kitti(label_path, remap_lut):label np.fromfile(label_path, dtypenp.uint32)label label.reshape((-1))sem_label label 0xFFFF # semantic label in lower half inst_label label 16 # instance id in upper halfassert ((sem_label (inst_label 16) label).all())sem_label remap_lut[sem_label]return sem_label.astype(np.int32) 3.3 读取配置 模型数据集流程配置都保存在ml3d/configs/*.yaml文件中。读取方式 import open3d.ml as _ml3d import open3d.ml.torch as ml3d # or open3d.ml.tf as ml3dframework torch # or tf cfg_file ml3d/configs/randlanet_semantickitti.yml cfg _ml3d.utils.Config.load_from_file(cfg_file)# fetch the classes by the name Pipeline _ml3d.utils.get_module(pipeline, cfg.pipeline.name, framework) Model _ml3d.utils.get_module(model, cfg.model.name, framework) Dataset _ml3d.utils.get_module(dataset, cfg.dataset.name)# use the arguments in the config file to construct the instances cfg.dataset[dataset_path] /home/zxq/data/kitti dataset Dataset(cfg.dataset.pop(dataset_path, None), **cfg.dataset) model Model(**cfg.model) pipeline Pipeline(model, dataset, **cfg.pipeline) 3.4 test import os import open3d.ml as _ml3d import open3d.ml.torch as ml3dcfg_file ml3d/configs/randlanet_semantickitti.yml cfg _ml3d.utils.Config.load_from_file(cfg_file)model ml3d.models.RandLANet(**cfg.model) cfg.dataset[dataset_path] /home/zxq/data/kitti dataset ml3d.datasets.SemanticKITTI(cfg.dataset.pop(dataset_path, None), **cfg.dataset) pipeline ml3d.pipelines.SemanticSegmentation(model, datasetdataset, devicegpu, **cfg.pipeline)# download the weights. ckpt_folder ./logs/ os.makedirs(ckpt_folder, exist_okTrue) ckpt_path ckpt_folder randlanet_semantickitti_202201071330utc.pth randlanet_url https://storage.googleapis.com/open3d-releases/model-zoo/randlanet_semantickitti_202201071330utc.pth if not os.path.exists(ckpt_path):cmd wget {} -O {}.format(randlanet_url, ckpt_path)os.system(cmd)# load the parameters. pipeline.load_ckpt(ckpt_pathckpt_path)test_split dataset.get_split(test)# run inference on a single example. # returns dict with predict_labels and predict_scores. data test_split.get_data(0) result pipeline.run_inference(data)# evaluate performance on the test set; this will write logs to ./logs. pipeline.run_test() 3.5 train import open3d.ml.torch as ml3dfrom ml3d.torch import RandLANet, SemanticSegmentation# use a cache for storing the results of the preprocessing (default path is ./logs/cache) dataset ml3d.datasets.SemanticKITTI(dataset_path/home/zxq/data/kitti/, use_cacheTrue)# create the model with random initialization. model RandLANet()pipeline SemanticSegmentation(modelmodel, datasetdataset, max_epoch100)# prints training progress in the console. pipeline.run_train()
http://www.dnsts.com.cn/news/158722.html

相关文章:

  • 网站建设制作设计开发怎么查域名的注册人
  • 三网合一网站开发北京网站备案要求吗
  • 高端网站建设 企业网站建站吾爱上云小程序制作
  • 今天建设银行网站无法登录阳城seo排名
  • 网页的网站建设在哪里湖南有线郴州网络有限公司
  • 云主机做网站网站怎样做收录会更好
  • 生产企业网站欣赏淘宝网店的seo主要是
  • 淘宝网站推广方案怎样做网站收录
  • 用服务器建立网站吗如何创作个人网站
  • 最牛的科技网站建设利用高权重网站做关键词
  • 大兴网站制作农八师建设兵团社保网站
  • 七台河建设网站鞍山58同城最新招聘信息
  • 网站视频大全中企动力全球邮企业邮箱
  • 北京做网站的工作室小程序怎么开发自己的小程序
  • 网站流量统计主要指标包括手机免费代理ip网站
  • 济南网站推广徽hyhyk1济南网站开发公司排名
  • 自己制作的网站怎么做分页网站开发网页
  • 个人博客网站的建设结构图网页升级转跳大通知
  • 网站建设案例精粹做3d打印网站
  • 江苏省职业建设注册管理中心网站网站建设需要做哪些工作
  • 欧美网站设计特点昆明做网站建设的公司哪家好
  • 深圳做网站哪里好现在去北京政策最新
  • html5做网站济南百度seo排名公司
  • 优化文章对网站的重要性网站建设制作费用预算表
  • 海南住建部建设网站的网站泰安网络网站
  • php网站开发基础教程网站怎么做域名实名认证吗
  • 网站开发的经费预算企业所得税怎么算公式
  • 一般网站开发用什么语言wordpress lms
  • 五莲网站建设网站导航设计
  • 明年做哪个网站能致富学习做网站可以吗