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

济南微网站建设上海网站推广多少钱

济南微网站建设,上海网站推广多少钱,企业官网网站建设报价,wordpress 错误提示1、环境#xff1a;win10tensorflow-gpu1.14.0 2、下载代码#xff1a;到https://github.com/balancap/SSD-Tensorflow到本地 3、解压代码#xff0c;并将checkpoints下的ssd_300_vgg.ckpt.zip进行解压在checkpoints目录下。否则后果不堪设想 4、如果你的电脑装有jupyter…1、环境win10tensorflow-gpu1.14.0 2、下载代码到https://github.com/balancap/SSD-Tensorflow到本地 3、解压代码并将checkpoints下的ssd_300_vgg.ckpt.zip进行解压在checkpoints目录下。否则后果不堪设想 4、如果你的电脑装有jupyter notebook.则将此SSD-Tensorflow文件复制在jupyter文件目录下然后启动jupyter notebook。 打开notebooks下的ssd_notebook.ipynb文件运行每个cell。 也可以将此ipynb下的所有代码复制在SSD_Tensorflow目录新建的ssd_python.py中运行 也可以直接搜网上教程新建py文件复制代码然后运行。 这个附上我复制的代码切记修改路径ckpt_file # coding: utf-8 # In[1]:import os import math import randomimport numpy as np import tensorflow as tf import cv2slim tf.contrib.slim# In[2]: import matplotlib.pyplot as plt import matplotlib.image as mpimg# In[3]:import syssys.path.append(./)# In[4]:from nets import ssd_vgg_300, ssd_common, np_methods from preprocessing import ssd_vgg_preprocessing from notebooks import visualization# In[5]:# TensorFlow session: grow memory when needed. TF, DO NOT USE ALL MY GPU MEMORY!!! gpu_options tf.GPUOptions(allow_growthTrue) config tf.ConfigProto(log_device_placementFalse, gpu_optionsgpu_options) isess tf.InteractiveSession(configconfig)# ## SSD 300 Model # # The SSD 300 network takes 300x300 image inputs. In order to feed any image, the latter is resize to this input shape (i.e.Resize.WARP_RESIZE). Note that even though it may change the ratio width / height, the SSD model performs well on resized images (and it is the default behaviour in the original Caffe implementation). # # SSD anchors correspond to the default bounding boxes encoded in the network. The SSD net output provides offset on the coordinates and dimensions of these anchors.# In[6]:# Input placeholder. net_shape (300, 300) data_format NHWC img_input tf.placeholder(tf.uint8, shape(None, None, 3)) # Evaluation pre-processing: resize to SSD net shape. image_pre, labels_pre, bboxes_pre, bbox_img ssd_vgg_preprocessing.preprocess_for_eval(img_input, None, None, net_shape, data_format, resizessd_vgg_preprocessing.Resize.WARP_RESIZE) image_4d tf.expand_dims(image_pre, 0)# Define the SSD model. reuse True if ssd_net in locals() else None ssd_net ssd_vgg_300.SSDNet() with slim.arg_scope(ssd_net.arg_scope(data_formatdata_format)):predictions, localisations, _, _ ssd_net.net(image_4d, is_trainingFalse, reusereuse)# Restore SSD model. ckpt_filename E:\gitcode\ssd\chde222-SSD-Tensorflow-master\SSD-Tensorflow\checkpoints/ssd_300_vgg.ckpt # ckpt_filename ../checkpoints/VGG_VOC0712_SSD_300x300_ft_iter_120000.ckpt isess.run(tf.global_variables_initializer()) saver tf.train.Saver() saver.restore(isess, ckpt_filename)# SSD default anchor boxes. ssd_anchors ssd_net.anchors(net_shape)# ## Post-processing pipeline # # The SSD outputs need to be post-processed to provide proper detections. Namely, we follow these common steps: # # * Select boxes above a classification threshold; # * Clip boxes to the image shape; # * Apply the Non-Maximum-Selection algorithm: fuse together boxes whose Jaccard score threshold; # * If necessary, resize bounding boxes to original image shape.# In[7]:# Main image processing routine. def process_image(img, select_threshold0.5, nms_threshold.45, net_shape(300, 300)):# Run SSD network.rimg, rpredictions, rlocalisations, rbbox_img isess.run([image_4d, predictions, localisations, bbox_img],feed_dict{img_input: img})# Get classes and bboxes from the net outputs.rclasses, rscores, rbboxes np_methods.ssd_bboxes_select(rpredictions, rlocalisations, ssd_anchors,select_thresholdselect_threshold, img_shapenet_shape, num_classes21, decodeTrue)rbboxes np_methods.bboxes_clip(rbbox_img, rbboxes)rclasses, rscores, rbboxes np_methods.bboxes_sort(rclasses, rscores, rbboxes, top_k400)rclasses, rscores, rbboxes np_methods.bboxes_nms(rclasses, rscores, rbboxes, nms_thresholdnms_threshold)# Resize bboxes to original image shape. Note: useless for Resize.WARP!rbboxes np_methods.bboxes_resize(rbbox_img, rbboxes)return rclasses, rscores, rbboxes# In[21]:# Test on some demo image and visualize output. path E:/gitcode/ssd/chde222-SSD-Tensorflow-master/SSD-Tensorflow/demo/ image_names sorted(os.listdir(path))img mpimg.imread(path image_names[-1]) rclasses, rscores, rbboxes process_image(img)# visualization.bboxes_draw_on_img(img, rclasses, rscores, rbboxes, visualization.colors_plasma) visualization.plt_bboxes(img, rclasses, rscores, rbboxes) 运行结果 参考自https://blog.csdn.net/hezuo1181/article/details/91380182
http://www.pierceye.com/news/625228/

相关文章:

  • 项城市住房和城乡建设局网站融资平台公司
  • asp企业网站设计sage wordpress
  • 做视频网站需要哪些条件wordpress登录页面背景图片尺寸
  • 专门教做衣服的网站西宁电商网站建设
  • 无锡网站科技公司qq哪家公司开发的
  • 强化 门户网站建设今天的新闻大事
  • 专业做刀具网站的公司单页面网站模板
  • 企业网站制作及cms技术wordpress站点 HTML
  • 网络宣传网站建设制作加盟网络推广方案怎么写
  • 花店网站建设毕设介绍wordpress批量导入txt
  • 上海市网站建设定制百度推广怎么优化关键词的质量
  • 建设工程质量检测公司网站html5 响应式音乐网站
  • 网站建设托管推广海报中文域名做的网站
  • 临沂专业网站建设公司哪家好网站建设的网页
  • 当牛做吗网站源代码分享百度云帝国怎么做网站
  • 简约网站欣赏做美食网站赚钱吗
  • 一叶子网站建设目标教育平台oss做视频网站
  • 购物网站开发流程图wordpress 批量注册
  • 如何做网站优化的内容google网站推广
  • 网站模版亮点北京电商网站开发费用
  • 南昌专业的企业网站建设公司wordpress源码在哪
  • 农家院做宣传应该在哪个网站营销代码查询
  • 大型企业网站设计案例晋江做网站的公司哪家好
  • 海外模板网站有哪些全国网页设计大赛
  • 网站设计常州注册公司没有地址怎么弄
  • 注销建设工程规划许可证在哪个网站wordpress+Apache升级
  • 视频网站如何做盗链青岛商城网站开发
  • 网站主色调googleapis wordpress
  • 作网站番禺区网络推广渠道
  • app开发网站排行app制作平台排行