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

电商网站开发合同wordpress官网下载

电商网站开发合同,wordpress官网下载,沈阳网站建设方案,电商网站是什么意思文章目录 TaskBaselineReportQuestion2 Code Link Task 异常检测Anomaly Detection 将data经过Encoder,在经过Decoder,根据输入和输出的差距来判断异常图像。training data是100000张人脸照片,testing data有大约10000张跟training data相同…

文章目录

  • Task
  • Baseline
  • Report
    • Question2
  • 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 network
  • cnn: convolutional network
  • VAE
  • Resnet
  • Multi-encoder autoencoder
    • encoder(fcn+fcn+fcn)+decoder(fcn)
    • encoder(cnn+cnn+cnn)+decoder(cnn)
    • encoder(fcn+fcn+conv)+decoder(fcn)

通过FCN+调节超参数的方式可以轻易的达到strong,Resnet也是但是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(nrows=1, ncols=2, figsize=(5, 5))# plt sample image
axes[0].imshow(transforms.ToPILImage()((sample+1)/2)) #imshow的输入(H,W,C)
axes[0].axis('off')
axes[0].annotate('sample input', xy=(0.5, -0.15), xycoords='axes fraction',ha='center', va='center')
# plt output image
axes[1].imshow(transforms.ToPILImage()((output+1)/2))
axes[1].axis('off')
axes[1].annotate('sample output', xy=(0.5, -0.15), xycoords='axes fraction',ha='center', va='center')plt.show()

在这里插入图片描述

Code Link

具体代码在Github

http://www.yayakq.cn/news/642570/

相关文章:

  • 做卡贴质量好的网站深圳市测绘建设局网站
  • 建立网站 知乎网站每天1万ip能收入多少
  • 正鹏建设工程有限公司网站微信公众平台2次开发
  • fw怎么做网站做网站服务器租一年多少钱
  • 重庆勘察设计协会网站网站建设属于IT
  • 做网站时候图片和视频放在哪里湖北网站建设找哪家
  • 百度搜索引擎网站3d建模游戏
  • 做网站客户需求大丰网站建设
  • 比较好的网站空间公司墙面设计企业文化
  • 做网站是什么意思市场营销渠道
  • 设计微信公众号的网站吗谷歌企业邮箱怎么注册
  • 百度对网站的收录sdk软件开发工具包
  • 知名网站的org域名北京建设网站哪家好
  • 含山县建设局网站下载百度网站ip地址
  • 宁波做网站的公司哪家好开发app需要钱吗
  • 大同市建设工程招标投标网站沈阳设计网站
  • 佛山做外贸网站方案网站子目录建立
  • 网站开发自学要多久企业网站名备案
  • 网站策划做营销推广海外电商平台
  • 学好网站建设的步骤商家怎么入驻百度
  • 上海法律网站建设北京平面设计网站
  • 厦门网站建设哪家专业哪个网站做照片书最好看
  • 成都网站优化seo免费设计logo的工具
  • 网站开发手机编译器德宏企业网站建设
  • 手机网站设计平台阿里巴巴网站怎么做
  • 鄂州市网站黄冈市住房和城乡建设厅网站
  • 网站制作教程谁的好免费域名注册二级域名
  • 企业手机微网站系统phpwordpress 多媒体分类
  • 电脑怎么建网站网站怎么添加假备案号
  • 台州网站制作wordpress问卷模板