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

怎么做自己的网站卖东西网站计数器代码js

怎么做自己的网站卖东西,网站计数器代码js,郑州哪里做网站汉狮,jq效果较多的网站文章目录 TaskBaselineReportQuestion2 Code Link Task 异常检测Anomaly Detection 将data经过Encoder#xff0c;在经过Decoder#xff0c;根据输入和输出的差距来判断异常图像。training data是100000张人脸照片#xff0c;testing data有大约10000张跟training data相同… 文章目录 TaskBaselineReportQuestion2 Code Link Task 异常检测Anomaly Detection 将data经过Encoder在经过Decoder根据输入和输出的差距来判断异常图像。training data是100000张人脸照片testing data有大约10000张跟training data相同分布的人脸照片(label 0)还有10000张不同分布的照片(anomaly, label 1)每张照片都是(64,64,3).npy file 以训练集的前三张照片为例auto-encoder的输入和输出如下 Baseline Auto-encoder model一共有五种模型 fcn: fully-connected networkcnn: convolutional networkVAEResnetMulti-encoder autoencoder encoder(fcnfcnfcn)decoder(fcn)encoder(cnncnncnn)decoder(cnn)encoder(fcnfcnconv)decoder(fcn) 通过FCN调节超参数的方式可以轻易的达到strongResnet也是但是Multi-encoder的方式表现并不好也许是我处理方式有问题具体代码可以参考GitHub中的文件 Report Question2 Train a fully connected autoencoder and adjust at least two different element of the latent representation. Show your model architecture, plot out the original image, the reconstructed images for each adjustment and describe the differences. import matplotlib.pyplot as plt # sample train_dataset[random.randint(0,100000)] sample train_dataset[0] print(sample shape:{}.format(sample.size())) sample sample.reshape(1,3,64,64)model.eval() with torch.no_grad():img sample.cuda()# 只调整fcn中的latent representation的其中两维其他模型都是正常输出if model_type in [res]:output model(img)output decoder(output)print(res output shape:{}.format(output.size()))output output[0] # 第一个重建图像当然只有一个图像if model_type in [fcn]:img img.reshape(img.shape[0], -1)x model.encoder(img)x[0][2] x[0][2]*3output model.decoder(x)print(fcn output shape:{}.format(output.size()))output output.reshape(3,64,64)if model_type in [vae]:output model(img)print(vae output shape:{}.format(output.size()))output output[0][0] # output[0]是重建后的图像output[0][0]重建后的第一个图像if model_type in [cnn]:output model(img)[0]print(output shape:{}.format(output.size()))sample sample.reshape(3,64,64) # 创建画布 fig, axes plt.subplots(nrows1, ncols2, figsize(5, 5))# plt sample image axes[0].imshow(transforms.ToPILImage()((sample1)/2)) #imshow的输入(H,W,C) axes[0].axis(off) axes[0].annotate(sample input, xy(0.5, -0.15), xycoordsaxes fraction,hacenter, vacenter) # plt output image axes[1].imshow(transforms.ToPILImage()((output1)/2)) axes[1].axis(off) axes[1].annotate(sample output, xy(0.5, -0.15), xycoordsaxes fraction,hacenter, vacenter)plt.show()Code Link 具体代码在Github
http://www.dnsts.com.cn/news/156605.html

相关文章:

  • 潍坊网站制作苏宁易购如何进行网站的建设和维护
  • 优秀企业网站建设价格网络市场营销
  • 快速建站全流程详细指导手册赣州市网络科技有限公司
  • 泉州关键词网站排名凡科网站登录入
  • 如何快速做单页面网站2016优秀网站设计
  • 合肥网站建设zgkr怎么把网站设置为信任网站
  • 二次元WordPress关键词优化营销
  • 网站分享对联广告专业制作网站公司吗
  • 哪个网站可以做投资回测深圳装修公司排名100强
  • 池州网站制作新乡做网站费用
  • 电商网站平台建设方案wordpress标签链接分类目录
  • 商务网站建设的基本步骤公司做网站需要提供什么条件
  • dw手机网站怎么做外贸网站推广服务
  • 百度官网网站wordpress页面内
  • 网站按钮确定后图片怎么做php商城网站开发实例视频
  • 局门户网站的建设方案网站建设公司简介范文
  • 网站友链更多标签的适用场景
  • 广州企业网站seowordpress自定义登录
  • 漫画网站怎么做优秀企业宣传ppt
  • 如何在头条上做网站推广济南全网推广设计开发
  • 用dw做的网站生成链接吗网站建设策划书有哪些内容
  • 网站建设硬件投入表网站域名怎么解释
  • 苏州哪里做网站好赣州百度
  • 可以做猫头像的网站汶上网站开发
  • 网站模板可以自己做吗做集装箱的网站
  • 简单电子商务网站开发网站设计的基本流程是什么
  • 企业信息管理系统下载百度seo培训课程
  • 宁波网站建设公司代理网站兼容性问题
  • 03340网站建设与管理做租房网站
  • 徐州东站千博网站建设