Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	| import gradio as gr | |
| theme = gr.themes.Base( | |
| text_size=gr.themes.Size(lg="16px", | |
| md="20px", # body | |
| sm="12px", | |
| xl="40px", # h2 | |
| xs="10px", | |
| xxl="50px", # h1 | |
| xxs="9px"), | |
| #spacing_size="lg", | |
| ) | |
| css = """ | |
| h1, h2{ | |
| text-align: center; | |
| } | |
| """ | |
| with gr.Blocks(theme=theme, css=css) as demo: | |
| # Title | |
| gr.Markdown(""" | |
| # AI and Fashion E-Commerce | |
| <center> by <a href="https://www.tonyassi.com/" target="_blank">Tony Assi</a> </center> | |
| <br> | |
| <center><i> A collection of projects I've done at the intersection of AI and fashion e-commerce, with an emphasis on computer vision and stable diffusion. </i></center> | |
| --- | |
| Table of Contents | |
| 1. [Virtual Try-On](#1) | |
| 2. [Sales Forecasting with Image Regressionn](#2) | |
| 3. [Text-to-Image Clothing Designer](#3) | |
| 4. [Sketch to Fashion Design](#4) | |
| 5. [Segment Clothing](#5) | |
| 6. [Clothing Search by Sketch](#6) | |
| 7. [Image to Fashion Article](#7) | |
| 8. [Clothing Feature Prediction](#8) | |
| """) | |
| # Virtual Try-On | |
| gr.Markdown(""" | |
| --- | |
| ## Virtual Try-On <a name="1"></a> | |
|  | |
| Virtually try-on clothing by submitting your image and a clothing image. A novel approach to VTO using IP-Adapter inpainting and body segmentation. [Read more](https://huggingface.co/blog/tonyassi/virtual-try-on-ip-adapter) | |
| [](https://huggingface.co/spaces/tonyassi/fashion-try-on) | |
| [](https://colab.research.google.com/drive/1d-NJNLdX6dqs5Qfm1UYDQknBrhwZXx7R?usp=sharing) | |
| """) | |
| # Sales Forecasting with Image Regression | |
| gr.Markdown(""" | |
| --- | |
| ## Sales Forecasting with Image Regression <a name="2"></a> | |
|  | |
| Predict sales from a product image. Image regression training, hosting, and inference. [Read more](https://huggingface.co/blog/tonyassi/image-regression) | |
| [](https://github.com/TonyAssi/ImageRegression) | |
| [](https://huggingface.co/tonyassi/sales-prediction) | |
| """) | |
| # Text-to-Image Clothing Designer | |
| gr.Markdown(""" | |
| --- | |
| ## Text-to-Image Clothing Designer <a name="3"></a> | |
|  | |
| This text-to-image model was fine-tuned on [Lucy in the Sky](https://www.lucyinthesky.com/) product image - product text pairs. Text input is limited to the language of the product catalog it was trained on which forces the model to generate images in a simialr style to the product images. | |
| [](https://huggingface.co/spaces/LucyintheSky/lucy-text-to-image) | |
| """) | |
| # Sketch to Fashion Design | |
| gr.Markdown(""" | |
| --- | |
| ## Sketch to Fashion Design <a name="4"></a> | |
|  | |
| Convert a sketch into a photorealistic garment on a model. | |
| [](https://huggingface.co/spaces/tonyassi/sketch-to-fashion-design) | |
| """) | |
| # Segment Clothing | |
| gr.Markdown(""" | |
| --- | |
| ## Segment Clothing <a name="5"></a> | |
|  | |
| Segment clothing from an image. | |
| [](https://huggingface.co/spaces/tonyassi/clothing-segmentation) | |
| [](https://github.com/TonyAssi/Segment-Clothing) | |
| """) | |
| # Clothing Search by Sketch | |
| gr.Markdown(""" | |
| --- | |
| ## Clothing Search by Sketch <a name="6"></a> | |
|  | |
| Search for a clothing by sketching it. | |
| [](https://huggingface.co/spaces/tonyassi/sketch-to-fashion-collection) | |
| """) | |
| # Image to Fashion Article | |
| gr.Markdown(""" | |
| --- | |
| ## Image to Fashion Article <a name="7"></a> | |
|  | |
| [](https://huggingface.co/spaces/tonyassi/image-to-fashion-article) | |
| """) | |
| # Clothing Feature Prediction | |
| gr.Markdown(""" | |
| --- | |
| ## Clothing Feature Prediction <a name="8"></a> | |
|  | |
| Predicts anywhere between 0-36 clothing features. Fine-tined on [Lucy in the Sky](https://www.lucyinthesky.com/) product catalog. | |
| [](https://huggingface.co/spaces/LucyintheSky/feature-prediction) | |
| [](https://huggingface.co/LucyintheSky/lucy-feature-prediction) | |
| """) | |
| demo.launch() |