Please carefully read the Disclaimer of Liability below first.
All materials in this archive are for reference only. The actual one may vary.
Fashion Image Generation Project by Generative Adversarial Networks (GANs) on Fashion MNIST
A Group Project of Computer Vision (COMP4423) subject at The Hong Kong Polytechnic University, made by JIANG Yiyang, YE Haowen, and ZHANG Wengyu, JIANG Yiyang and YE Haowen
- Web Application on Localhost:
- Generated Fashion Images:
(Figure: https://github.com/clvrai/ACGAN-PyTorch)
Model | Generated Images |
---|---|
GAN | Fashion Images |
cGAN | Fashion Images |
cDCGAN | Fashion Images |
ACGAN | Fashion Images |
- Python version:
3.10.10
- Make sure following package are install for python3:
OpenCV
,Flask
,numpy
,pandas
,sklearn
,torch
,torchvision
,torchaudio
,matplotlib
,seaborn
,PIL
- Download the Fashion MNIST Dataset and rename
fashion-mnist_test.csv
, andfashion-mnist_train.csv
astrain.csv
, andtest.csv
respectively, then put two csv files in the newly-createdfashion-mnist
folder under this folder.
- Make sure you have installed all the required packages mentioned in the Preparation section above;
- Change directory to the this folder;
- Run the
Fashion_Image_Generator.py
file bypython3 Fashion_Image_Generator.py
- Check your terminal says
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
; - Use your browser to visit the web page on your localhost: http://127.0.0.1:5000/;
- follow the instruction on the web page (step1, step2);
- Press
CTRL+C
in terminal to quit.
Note: We have tried 4 different models, original provided GAN, Conditional GAN, Conditional Deep Convolutional GAN (cDCGAN), Auxiliary Classifier GAN (ACGAN). The ACGAN model is our final model, which is used in the project.
- Open the
ACGAN.ipynb
Jupyter Notebook on local machine; - In the first code cell, please set proper
device
according to your machine. - Run all cells in the
ACGAN.ipynb
file; - You may also try other models which are in the
originalGAN
,cGAN
,cDCGAN
folders.
The material and information contained on this website is for general information, reference, and self-learning purposes only. You should not rely upon the material or information on the website as a basis for making any academic, business, legal or any other decisions. You should not copy any material or information on the website into any of your academic, business, legal or any other non-private usages. ZHANG Wengyu, JIANG Yiyang, and YE Haowen will not be responsible for any consequences due to your violations.
Whilst ZHANG Wengyu, JIANG Yiyang, and YE Haowen endeavors to keep the information up to date and correct, ZHANG Wengyu, JIANG Yiyang, and YE Haowen makes no representations or warranties of any kind, express or implied about the completeness, accuracy, reliability, suitability or availability with respect to the website or the information, products, services or related graphics contained on the website for any purpose. Any reliance you place on such material is therefore strictly at your own risk.
ZHANG Wengyu, JIANG Yiyang, and YE Haowen will not be liable for any false, inaccurate, inappropriate or incomplete information presented on the website.
Although every effort is made to keep the website up and running smoothly, due to the nature of the Internet and the technology involved, ZHANG Wengyu, JIANG Yiyang, and YE Haowen take no responsibility for and will not be liable for the website being temporarily unavailable due to technical issues (or otherwise) beyond its control or for any loss or damage suffered as a result of the use of or access to, or inability to use or access this website whatsoever.
Certain links in this website will lead to websites which are not under the control of ZHANG Wengyu, JIANG Yiyang and YE Haowen. When you activate these you will leave ZHANG Wengyu, JIANG Yiyang and YE Haowen's website. ZHANG Wengyu, JIANG Yiyang and YE Haowen have no control over and accept no liability in respect of materials, products or services available on any website which is not under the control of ZHANG Wengyu, JIANG Yiyang, and YE Haowen.
To the extent not prohibited by law, in no circumstances shall ZHANG Wengyu, JIANG Yiyang and YE Haowen be liable to you or any other third parties for any loss or damage (including, without limitation, damage for loss of business or loss of profits) arising directly or indirectly from your use of or inability to use, this site or any of the material contained in it.