May 2025 - August 2025

China Collegiate Computer Competition—Mobile Application Innovation Contest

Yigui: A Personalized Apparel Design and Virtual Try-On Application

iOS Development3D ModelingServer Ops
Yigui app screens
Click to enlarge

Project Resources

Due to the large number and complex structure of the code files, the complete source code has been uploaded to GitHub. The frontend contains Swift code and the CoreML model, while the backend includes Blender scripts, API interfaces, database design, and more.

Team Information

Advisor

Professor Yuanwang Yang(School of Electronic Science and Engineering, UESTC)

Team Members

  • Me Team Leader - Product Design, UI/UX, iOS Development, AI Algorithm, Backend System, 3D Modeling
  • Canyu Wu(Glasgow College, UESTC) - Product Conception, Promotional Poster Design
  • Ducheng(Glasgow College, UESTC) - Product Conception, Project Documentation

Project Background and Innovation

Yigui is an iOS application designed to make the professional apparel design process accessible and personalized for everyone. It establishes a complete pipeline from "real body measurements → intelligent 3D modeling → personalized clothing design → virtual try-on," allowing every user to become the exclusive designer for their own "virtual avatar" based on their unique body. The project aims to address pain points in an era of diverse aesthetics, such as the difficulty for ordinary consumers to participate in clothing creation, ill-fitting ready-to-wear sizes, and poor online try-on experiences.

On-device CoreML Inference

Body proportions are predicted on the phone with CoreML, right after height and weight are entered, without waiting for the server

Iterative Convergence Algorithm

A 3-round calculation loop resolves circular dependencies in body proportions for precise modeling.

Virtual Assembly Technology

Atomic component processing + smart recombination for efficient virtual try-ons.

Microservices Architecture

Three independent FastAPI services for users, models, and designs deployed separately.

User Need Insights
Competitive Analysis Positioning

UI Design and User Experience

Yigui's interface design focuses on a smooth user experience and intuitive functionality. Using a modern design language combined with iOS design guidelines, it offers users a clean and elegant virtual try-on experience. From the initial prototype to the final implementation, every UI element has been meticulously designed and optimized through user testing.

Figma Prototype and Flow Design

Navigation Design

Tab navigation + step-by-step flow for a clear information architecture.

State Management

Progress indicators, button states, and automatic draft saving.

Component Reusability

Unified design for color palettes, pattern libraries, and parameter panels.

App Interface Showcase

Entering body details after sign-upPost-Registration Info Entry
Naming a design and choosing the garment typeDesign Name & Garment Type
Choosing the colour typeColor Type Selection
The finished designDesign Result Display
Virtual try-onVirtual Try-On Display
WardrobeWardrobe Page

3D Modeling and Asset Creation

The 3D modeling system uses Blender as its core tool, augmented with Python scripts for process automation. The entire pipeline includes base human model creation, apparel model design, material node editing, and performance optimization for mobile.

Through standardized GLB format output and modular component design, we've implemented an efficient "virtual assembly" technique that supports real-time clothing changes and try-on previews. All models are deeply optimized for mobile devices to ensure smooth rendering performance on iOS.

Base Human Model Creation

  • Low-polygon topology, face count under 5,000.
  • Standard human proportions, supports parametric scaling via CoreML.
  • Optimized UV unwrapping, 1024x1024 texture resolution.
  • Modular design: head, torso, and limbs processed independently.
  • GLB format export, supports PBR materials and animations.

Material Node System

  • Node-based procedural material workflow.
  • PBR (Physically Based Rendering) with metallic and roughness support.
  • Dynamic color and texture replacement system.
  • Mobile shader optimization to reduce computational complexity.
  • Supports real-time material parameter adjustment and preview.

Female Model Optimization

  • Polygon reduction processing for mobile devices.
  • Decimation algorithm optimized to preserve key features.
  • LOD (Level of Detail) hierarchy design.
  • Texture map compression, supporting multiple resolutions.
  • Real-time rendering performance reaches 60FPS (at 1080p resolution).

Material Optimization Workflow

  • Shader complexity analysis and optimization.
  • Texture channel packing to reduce sampling.
  • Mobile GPU-specific optimizations.
  • Support for batch rendering and instancing.
  • Memory usage controlled within device limits.

Technical Specifications Overview

Modeling Precision
Base Model: ≤5k facesTexture Res: 1024²UV Utilization: >90%
Mobile Performance
Render Rate: 60 FPSMemory Usage: <50MBLoad Time: <2s
Tech Stack
Blender 3.6.5Python ScriptingGLB/GLTF Format
Material System
PBR WorkflowProcedural TexturesReal-time Switching

System Architecture Design

The system separates front end and back end: the front end is an iOS app, and the back end is three Python services on an Ubuntu server. The app handles the interface and body proportion prediction; the server handles accounts, body model generation, try-on and garment design, the work that needs Blender.

Frontend Architecture

The iOS app is built with SwiftUI and adapts to different iPhone sizes. Body proportions are predicted on the phone with CoreML: three small regression models estimate the chest, waist and thigh ratios. Generated body and try-on models are shown in real time with SceneKit, and the most recent body model is cached on the phone.

Backend Architecture

The back end is built on Python's FastAPI and split into three independent services: the user service handles registration and login, the model service generates body models and try-ons, and the design service colours and textures garments. All three share one MySQL database. Blender jobs for garment designs run in the background through Dramatiq, and Redis serves only as its message broker.

Data Flow Design

After the user enters height and weight, the phone first computes chest, waist and thigh ratios with CoreML, then sends height, weight and these ratios to the model service. The server uses Blender to adjust a preset body model part by part, merges the parts into a GLB file, and the app downloads and shows it. All requests use HTTPS, and the generation and try-on endpoints require a JWT.

Algorithm and Model (CoreML)

The core technical challenge was estimating plausible body proportions on the phone from height and weight alone, as parameters for generating the body model. I put the prediction models on the iPhone with CoreML, so results appear right after input without a round trip to the server.

Three-Round Iterative Convergence Algorithm

The difficulty in predicting body proportions lies in the complex interdependencies between different body parts. For example, bust circumference can affect the calculation of shoulder width, which in turn can influence the bust estimate. I designed a three-round iterative algorithm to solve this circular dependency problem:

The first round makes a rough estimate based on height and weight. The second round uses the results of the first to refine local proportions. The third round performs a global adjustment to ensure all proportions are harmonious. Each iteration converges to a more accurate result, with the final prediction accuracy reaching over 95%.

Model Size and Caching

The three ratio models are small regression models of about 0.5 KB each. They run three iterations on a background thread, so the prediction appears almost as soon as the parameters are entered.

The app keeps the most recently generated body model on the phone and loads it directly when the account, gender, height and weight are unchanged, without asking the server to generate it again.

Garment Design

In the design feature, the user picks a colour or pattern for a garment; the design service colours or textures the garment with a Blender script, produces a new model and saves it as a design.

Backend System and API Design

The back end does what the phone cannot: body model generation, try-on, garment design and user data management. I chose Python's FastAPI because endpoints are quick to write, API documentation comes built in, and slow work is easy to move into the background.

Microservice Decomposition

I split the backend into three independent services, allowing each to be developed and deployed separately:

The user service handles registration, login, email verification codes and JWTs; the model service generates body models and try-ons; the design service colours or textures garments with Blender and saves the designs. If one service fails, the others keep running.

3D Modeling and Rendering

The most complex part is generating the body model. When the app sends height, weight and body ratios, the back end runs Blender headless, adjusts a preset body model part by part and merges the parts into one GLB file. Try-on reuses the body parts already generated and only swaps the garment.

Blender processing is slow, so these endpoints return without waiting. For body models and try-on, the model service runs Blender in a FastAPI background task, returns a task ID and writes the result to a status file; the app checks it every 2.5 seconds. Garment designs run in Dramatiq worker processes, with status written back to the database.

Data Storage

The three services share one MySQL database accessed through SQLAlchemy, holding user profiles, avatar records, body model records and design projects. Generated GLB models and avatars are stored as files on the server and served directly by Nginx. The back end has no separate cache layer.

Deployment and Operations

The server runs Ubuntu. Nginx is the reverse proxy: it terminates HTTPS, routes requests by path to the three services and serves model files directly. Each service runs on Uvicorn and is started, stopped and checked with nohup and small management scripts, with logs kept in each service's folder.

Complete Functionality Demo

Core Product Flow Demonstration

The following video showcases the complete workflow of the Yigui App, from user login, design creation, and parameter adjustment to the final 3D virtual try-on. The demonstration is conducted in an iOS simulator, illustrating the real user experience and fluid interaction design.

Yigui - Complete Functionality Demo: The entire process from login to virtual try-on.

Documents & Assets Download

Download the complete project technical reports, design documents, and promotional materials. These documents detail the project's technical implementation, design philosophy, and innovative aspects for reference and study.

Competition Results and Honors

Competition Result

Second Prize in the Southwest Division (China Collegiate Computer Competition—Mobile Application Innovation Contest)

Project Summary

This project was a significant practical endeavor for me in the fields of mobile application development and computer vision. By building a complete virtual try-on application from scratch, I gained deep experience with SwiftUI, 3D graphics processing, and machine learning model integration. My biggest takeaway was learning how to translate theory into a real product and how to find the balance between technical innovation and user experience. Winning the second prize in the Southwest Division is not only a recognition of my technical skills but also an affirmation of my product mindset and problem-solving abilities.