国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

MSE 5760代做、代寫C/C++,Java程序
MSE 5760代做、代寫C/C++,Java程序

時間:2025-05-06  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



MSE 5760: Spring 2025 HW 6 (due 05/04/25)
Topic: Autoencoders (AE) and Variational Autoencoders (VAE)
Background:
In this final homework, you will build a deep autoencoder, a convolutional 
autoencoder and a denoising autoencoder to reconstruct images of an isotropic composite 
with different volume fractions of fibers distributed in the matrix. Five different volume 
fraction of fibers are represented in the dataset and these form five different class labels for 
the composites. After the initial practice with AEs and reconstruction of images using latent 
vectors, you will build a VAE to examine the same dataset. After training the VAE (as best 
as you can using the free colab resources to reproduces images), you will use it to generate 
new images by randomly sampling datapoints from the learned probability distribution of 
the data in latent space. Finally, you will build a conditional VAE to not only generate new 
images but generate them for arbitrary volume fractions of fibers in the composite.
The entire dataset containing 10,000 images of composites with five classes of 
volume fractions of fibers was built by Zequn He (currently a Ph.D. student in MEAM in 
Prof. Celia Reina’s group who helped put together this course in Summer 2022 by designing 
all the labs and homework sets). Each image in the dataset shows three fibers of different 
volumes with circular cross sections. Periodic boundary conditions were used to generate 
the images. Hence, in some images, the three fiber particles may appear broken up into
more than three pieces. The total cross sectional area of all the fibers in each image can, 
however, be divided equally among three fibers. Please do not use this dataset for other 
work or share it on data portals without prior permission from Zequn He
(hezequn@seas.upenn.edu).
Due to the large demands on memory and the intricacies of the AE-VAE 
architecture, the results obtained will not be of the same level of accuracy and quality that 
was possible in the previous homework sets. No train/test split is recommended as all 
10,000 images are used for training purposes. You may, however, carry out further analysis 
using train/test split or by tuning the hyperparameters or changing the architecture for 
bonus points. The maximum bonus points awarded for this homework will be 5.
**********************************Please Note****************************
Sample codes for building the AE, VAE and a conditional GAN were provided in 
Lab 6. There is no separate notebook provided for the homework and students will 
have to prepare one. Tensorflow and keras were used in Lab 6 and is recommended 
for this homework. You are welcome to use other libraries such as pytorch.
************************************************************************
1. Model 1: Deep Autoencoder model (20 points)
Import the needed libraries. Load the original dataset from canvas. Check the 
dimensions of each loaded image for consistency. Scale the images.
1.1 Print the class labels and the number of images in each class. Print the shape of 
the input tensor representing images and the shape of the vector representing the 
class labels. (2 points)
1.1. A measure equivalent to the volume fraction of fibers in each composite image is 
the mean pixel value of the image. As the images are of low-resolution, you may 
notice a slight discrepancy in the assigned class value of the image and the 
calculated mean pixel intensity. As the resolution of images increases, there will be 
negligible difference between the assigned class label and the pixel mean of the 
image. Henceforth, we shall use the pixel mean (PM) intensity of the images to be 
the class label. Print a representative sample of ten images showing the volume 
fraction of fibers in the composite along with the PM value of the image. (3 points)
1.2. Build the following deep AE using the latent dimension value = 64.
(a) Let the first layer of the encoder have 256 neurons.
(b) Let the second layer of the encoder have 128 neurons.
(c) Let the last layer of the encoder be the context or latent vector.
(d) Use ReLU for the activation function in all of the above layers.
(e) Build a deep decoder with its input being the context layer of the encoder.
(f) Build two more layers of the decoder with 128 and 256 neurons, respectively. 
These two layers can use the ReLU activation function.
(g) Build the final layer of the decoder such that its output is compatible with the 
reconstruction of the original input shape tensor. Use sigmoid activation for the 
final output layer of the decoder.
(h) Use ADAM as your optimizer and a standard learning rate. Let the loss be the 
mean square error loss. Compile the AE and train it for at least 50 epochs.
(10 points)
1.3. Print the summary of the encoder and decoder blocks showing the output shape of 
each layer along with the number of parameters that need to be trained. Monitor 
and print the lossfor each epoch. Plot the loss as a function of the epochs. (2 points)
1.4. Plot the first ten reconstructed images showing both the original and reconstructed 
images. (3 points)
2. Model 2: Convolutional Autoencoder model (20 points)
2.1 Build the following convolutional AE with the latent dimension = 64
(a) In the first convolution block of the encoder, use 8 filters with 3x3 kernels, 
ReLU activation and zero padding. Apply max pooling layer with a kernel of 
size 2.
(b) In the second convolution block use 16 filters with 3x3 kernels, ReLU activation 
and zero padding. Apply max pooling layer with a kernel of size 2.
(c) In the third layer of the encoder use 32 filters with 3x3 kernels, ReLU activation 
and zero padding. Apply max pooling layer with a kernel of size 2.
(d) Flatten the obtained feature map and then use a Dense layer with ReLU 
activation function to extract the latent variables.
(d) Build the decoder in the reverse order of the encoder filters with the latent 
output layer of the encoder serving as the input to the decoder part.
(e) Use ADAM as your optimizer and a standard learning rate. Let the loss be the 
mean square error loss. Compile the convolutional AE and train it for at least 
50 epochs.
(10 points)
2.2 Print the summary of the encoder and decoder blocks showing the output shape of 
each layer along with the number of parameters that need to be trained. Monitor 
and print the lossfor each epoch. Plot the loss as a function of the epochs. (5 points)
2.3 Plot the first ten reconstructed images showing both the original and reconstructed 
images. (5 points)
3. Model 3: Denoising convolutional Autoencoder model (15 points)
3.1 Add a Gaussian noise to each image. Choose a Gaussian with a mean of zero and a 
small standard deviation, typically ~ 0.2. Plot a sample of five original images with 
noise. (3 points)
3.2 Use the same convolutional autoencoder as in Problem 2 but with noisy images fed 
to the encoder. Train and display all the information as in 2.2 and 2.3.
(12 points)
4. Model 4: Variational Autoencoder model (25 points)
4.1 Set the latent dimension of the VAE be 64. Build a convolutional autoencoder with 
the following architecture. Set the first block to have 32 filters, 3x3 kernels with 
stride = 2 and zero padding.
4.2 Build the second block with 64 filters, 3x3 kernels, stride =2 and zero padding. Use 
ReLU in both blocks. Apply max pooling layer with kernel of size 2x2.
4.3 Build an appropriate output layer of the encoder that captures the latent space 
probability distribution.
4.4 Define the reparametrized mean and variance of this distribution.
4.5 Build the convolutional decoder in reverse order. Apply the same kernels, stride 
and padding as in the encoder above. Choose the output layer of the decoder and 
apply the appropriate activation function.
4.6 Compile and train the model. Monitor the reconstruction loss, Kullback-Liebler 
loss and the total loss. Plot all three quantities for 500 epochs. (10 points)
4.7 Plot the first ten reconstructed images along with their originals. (5 points)
4.8 Generate ten random latent variables from a standard Gaussian with mean zero and 
unit variance. Display the generated images from these random values of the latent 
vector. Comment on the quality of your results and how it may differ from the input 
images. Mention at least one improvement that can be implemented which may 
improve the results. (3+3+4=10 points)
5. Model 5: Conditional Variational Autoencoder model (20 points)
A conditional VAE differs from a VAE by allowing for an extra input 
variable to both the encoder and the decoder as shown below. The extra label could 
be a class label, ‘c’ for each image. This extra label will enable one to infer the 
conditional probability that describes the latent vector conditioned on the class label 
‘c’ of the input. In VAE, using the variational inference principle, one infers the 
Gaussian distribution (by learning its mean and variance) of the latent vector 
representing each input ‘x’. In conditional VAE, one infers the Gaussian 
conditional distribution of the latent vector conditioned on the extra input variable 
‘label’.
For the dataset used in this homework, there are two advantages of the 
conditional VAE compared to the VAE: (i) the conditional VAE provides a cheap
way to validate the model by comparing the pixel mean of the generated images 
with the conditional class label values (pixel mean) in latent space used to generate 
the images. (ii) The trained conditional VAE can be used to generate images of 
composites with arbitrary volume fraction of fibers with sufficient confidence once 
the validation is done satisfactorily.
A conditional VAE. (source: https://ijdykeman.github.io/ml/2016/12/21/cvae.html)
A good explanation of the conditional VAE in addition to the resource cited in the 
figure above is this: https://agustinus.kristia.de/techblog/2016/12/17/conditional vae/.
A conditional GAN (cGAN) toy problem was shown in Lab 6 where the volume 
fraction (replaced by pixel mean for cheaper model validation) was the design 
parameter, and thus, the condition input into the cGAN. In this question, you will 
build a conditional VAE for the same task of generating new images of composites 
as in Problem 4 by randomly choosing points in the latent space. Since each point 
in the latent space represents a conditional Gaussian distribution, it also has a class 
label. Therefore, it becomes possible to calculate the pixel mean of a generated 
image and compare it with the target ‘c’ value of the random point in latent space. 
It is recommended that students familiarize themselves with the code for providing 
the input to the cGAN with class labels and follow similar logic for building the 
conditional VAE. You may also seek help from the TA’s if necessary.
5.1 Create an array that contains both images and labels (the pixel mean of each image). 
Note the label here is the condition and it should be stored in the additional channel 
of each image.
5.2 Use the same structure, activation functions and optimizer as the one used to build 
the VAE in Problem 4. Print the summary of the encoder and decoder blocks 
showing the output shape of each layer along with the number of parameters that 
need to be trained. (5 points)
5.3 Train the cVAE for 500 epochs. Plot the reconstruction loss, Kullback-Liebler loss 
and the total loss. Plot the first ten reconstructed images along with their originals. 
Include values of the pixel mean for both sets of images. (5 points)
5.4 Generate 10 fake conditions (i.e., ten volume fractions represented as pixel means 
evenly spaced within the range 0.1 to 0.4 as used in Lab 6) for image generation. 
Print the shape of the generated latent variable. Print the target volume fraction (or 
pixel mean). Show the shape of the array that combines the latent variables and fake 
conditions. Print the shape of the generated image tensor. (2 points)
5.5 Plot the 10 generated images. For each image show the generated condition (the 
pixel mean of each image generated in 5.4) and the pixel mean calculated from the 
image itself. (3 points)
5.6 Compare the set of generated images from the conditional VAE with the ones 
obtained in Lab 6 using cGAN. Comment on their differences and analyze the 
possible causes for the differences. (5 points)

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:代做 EEB 504B、代寫 java/Python 程序
  • 下一篇:COMP1117B代做、代寫Python程序設計
  • ·代做CAP 4611、代寫C/C++,Java程序
  • ·代做ISYS1001、代寫C++,Java程序
  • ·代做COMP2221、代寫Java程序設計
  • ·代寫MATH3030、代做c/c++,Java程序
  • ·COMP 5076代寫、代做Python/Java程序
  • ·代寫COP3503、代做Java程序設計
  • ·COMP3340代做、代寫Python/Java程序
  • ·COM1008代做、代寫Java程序設計
  • ·MATH1053代做、Python/Java程序設計代寫
  • ·CS209A代做、Java程序設計代寫
  • 合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    97精品免费视频| 国产性生活免费视频| 欧美日韩一道本| 久久久福利视频| 亚洲bt天天射| 成人亚洲综合色就1024| 国产精品电影一区| 青青青在线观看视频| 国产成人精品久久久| 亚洲国产精品久久久久婷蜜芽| 国产免费一区二区三区| 国产精品久久久久久中文字| 欧美日韩在线高清| 久久精品电影一区二区| 欧美午夜视频在线| 久久久精品久久| 欧美精品尤物在线| 久久久精品影院| 欧美精品免费观看二区| 久久精品视频免费播放| 欧美亚洲国产成人精品| 国产精品日韩欧美| 黄色一级视频在线播放| 国产精品日日做人人爱| 蜜桃精品久久久久久久免费影院 | 99热亚洲精品| 亚洲一区二区三区在线视频| 99在线视频首页| 亚洲**2019国产| 国产福利久久精品| 秋霞在线一区二区| 国产成人生活片| 国内精品免费午夜毛片| 国产精品久久久久久久久 | 国产亚洲欧美一区二区三区| 久久99久久99精品免观看粉嫩 | 国产精品久久久久久久午夜| 国产综合视频在线观看| 久久久久久18| 久热国产精品视频一区二区三区| 色欲av无码一区二区人妻| 久久国产精品99久久久久久丝袜| 欧美老熟妇喷水| 萌白酱国产一区二区| 国产乱子伦精品无码专区| 亚洲a一级视频| 日日骚av一区| 国产一区二区在线网站| 色综合色综合网色综合| 91成人在线视频观看| 日韩欧美猛交xxxxx无码| 国产精品久久一区| 91久久久久久久久久久| 热99久久精品| 一区二区三区视频在线播放| 久久av综合网| 国产日韩欧美在线看| 欧美一区二区三区四区夜夜大片 | 久久精品国产96久久久香蕉| 国产精品一区二区三区毛片淫片| 水蜜桃亚洲一二三四在线| 国产精品久久久久久久久久小说| www.亚洲天堂网| 欧美综合在线观看| 一区二区不卡在线观看| 日韩在线国产精品| 国产精品亚洲精品| 日韩精品大片| 在线观看欧美亚洲| 国产精品免费小视频| 久久综合久久网| 国产真实乱子伦| 欧美一级片一区| 蜜月aⅴ免费一区二区三区| 深夜福利一区二区| 97精品欧美一区二区三区| 国内自拍欧美激情| 日本a级片电影一区二区| 久久久久国产精品一区| 久久久www成人免费精品| 91精品久久久久久久久久另类| 欧美二区三区| 日韩电影天堂视频一区二区| 这里只有精品66| 国产精品久久久久久久久久久久午夜片| 久久综合九色综合88i| 精品少妇人欧美激情在线观看| 日韩中文字幕二区| 中文精品视频一区二区在线观看| 久久久www成人免费精品| 久久精品二区| 91免费版网站入口| 国产色视频一区| 欧美日韩电影一区二区| 色一情一乱一伦一区二区三区丨| 国产99久久久欧美黑人| 国产精品入口夜色视频大尺度| 国产不卡av在线免费观看| www.亚洲天堂网| 国产噜噜噜噜久久久久久久久 | 日韩欧美亚洲天堂| 亚洲黄色成人久久久| 综合久久国产| 色综合视频网站| 久久天天躁狠狠躁夜夜躁2014 | 68精品久久久久久欧美| 成人一级生活片| 国产偷久久久精品专区| 韩国日本不卡在线| 欧美日韩一区在线观看视频| 日韩亚洲欧美精品| 日日碰狠狠躁久久躁婷婷| 亚洲欧美日韩精品在线| 亚洲人成人77777线观看| 亚洲国产精品一区在线观看不卡| 一区二区视频在线免费| 欧美激情一区二区三区在线视频观看 | 国产精品吹潮在线观看| 国产精品久久久久久久午夜| 国产精品美女诱惑| 国产精品久久久久久影视| 国产精品久久久久久久电影 | 日本精品性网站在线观看| 日本一区二区在线| 欧美一级片中文字幕| 日本在线观看a| 日本精品一区二区三区在线播放视频| 日韩av综合在线观看| 日本视频一区在线观看| 日本不卡高清视频一区| 欧美亚洲午夜视频在线观看| 欧美 国产 综合| 精品一区二区国产| 国产欧美久久久久久| 国产乱码精品一区二区三区日韩精品 | 久久久国产一区| 国产精品福利观看| 色与欲影视天天看综合网| 一区二区三区av| 午夜精品久久久久久久久久久久久| 亚州精品天堂中文字幕| 日本在线观看一区二区| 欧美精品一区免费| 国产一区在线免费观看| 国产精品一区久久久| 97精品久久久| 国产第一区电影| 久久精品国产亚洲精品2020| 国产精品国产自产拍高清av水多| 美女精品久久久| 日韩一区二区三区高清| 日韩视频 中文字幕| 蜜桃视频一区二区在线观看| 国产精品夜夜夜一区二区三区尤| www..com日韩| 色av吧综合网| 欧美精品制服第一页| 三区精品视频| 麻豆精品传媒视频| 91久久国产综合久久91精品网站| 久草精品电影| 国产精品美女av| 亚洲免费视频播放| 欧美日韩精品免费看| 国产精品夜夜夜爽张柏芝 | 久久精品国产亚洲精品2020| 欧美精品999| 日韩精品久久久免费观看| 蜜桃成人在线| 久久全国免费视频| 久久综合五月天| 午夜精品理论片| 国产自产在线视频| 久久人人爽人人爽人人片av高请| 国产精品视频色| 日韩在线第三页| 国产午夜精品视频一区二区三区| 国产富婆一区二区三区| 精品国产免费一区二区三区| 日韩av电影国产| 国产精品专区在线| 国产成人精品综合| 亚洲区一区二区三区| 欧美日韩一区二区三区在线观看免| 成人免费观看视频在线观看| 久久色在线播放| 偷拍视频一区二区| 国产日本欧美在线| www.日韩.com| 亚洲欧洲国产精品久久| 国产在线精品二区| 深夜福利91大全| 日韩在线观看a| 成人9ⅰ免费影视网站| 久久精品影视伊人网| 日日夜夜精品网站| 国产精品香蕉av| 国产精品久久国产精品| 欧美亚洲免费在线| 国产a级片免费观看|