Skip to content

perpetio/magic_avatars

Repository files navigation

Magic Avatars

N|Solid

In this repository, we look at several approaches to creating avatars, changing backgrounds, and deep image processing for more detailed output. It is also worth noting that we use both ready-made solutions, namely the Stability AI SDK (paid solution), and direct interaction with predefined models (free solution).

See our tutorial post:

5 Steps to Create AI Selfies Generator like Lensa: Stable Diffusion In Action

Features

  • Text-to-Image
  • Image-to-Image
  • Replace-Background
  • Depth-to-Image

Tech Stack

  • iOS app - SwiftUI
  • Server - Python

iOS App

Magic Avatars app requires latest Xcode version to run.

Initial state:

Magic Avatar:

Replace Background:

Server Installation

Install all dependencies (/app/requirements.txt) In the app directory run

conda activate {conda env name}
uvicorn api:app --host {your ip-address} --port {port}
  • port - 8000 or smth else

Additional Notes

Processing devices speed from fast to slow:

  • cuda - Nvidia GPU video cards
  • mps - Other GPU video cards
  • cpu - CPU video cards

License

MIT