SkillAgentSearch skills...

Spacegan

A GAN based app that generates space images given a drawing of color segments. This project was inspired by NVIDIA gaugan.

Install / Use

/learn @TheSun00000/Spacegan
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SpaceGAN:

$ f(x) = \underset{C}{\operatorname{argmax}} P(C_{i} | x) \:\ = \underset{C}{\operatorname{argmax}} {P(Cooks | x), P(Orders | x)} \:\ $

SpaceGAN is a deep learning model that generates space images based on a sketch. It is inspired from the paper: Semantic Image Synthesis with Spatially-Adaptive Normalization [arxiv]


Examples:

| Sketch | Generated image | |--|--| |<img src="images/test1_input.png" style="display: inline-block; margin: 0 auto; max-width: 150px"> |<img src="images/test1_output.png" style="display: inline-block; margin: 0 auto; max-width: 150px">|

| Sketch | Generated image | |--|--| |<img src="images/test2_input.png" style="display: inline-block; margin: 0 auto; max-width: 150px"> |<img src="images/test2_output.png" style="display: inline-block; margin: 0 auto; max-width: 150px">|


Demo:

  1. Start by cloning the this repository:
    git clone https://github.com/TheSun00000/spacegan
  2. Download the generator model generator230.pt from here.
  3. Put the downloaded model in the inference folder.
  4. Run inference/main.py:
    python inference/main.py
  5. You would be able to see a small graphical interface like this <img src="images/gui.png" style="display: inline-block; margin: 0 auto; max-width: 600px">
  6. Select a color, select a pen size, and start sketching your galaxies: <img src="images/input_empty.png" style="display: inline-block; margin: 0 auto; max-width: 600px">
  7. Once finished, click on the button "Done": <img src="images/input_output.png" style="display: inline-block; margin: 0 auto; max-width: 600px">
View on GitHub
GitHub Stars14
CategoryDevelopment
Updated1y ago
Forks0

Languages

Jupyter Notebook

Security Score

60/100

Audited on Feb 4, 2025

No findings