This project implements an AI model for generating images of houses. The AI model was trained by our team and is exposed through a Flask-based API, which is deployed on a web application hosted on Render.
Check it out! https://architexa.io/pages/home.html
The AI House Image Generator API generates images of houses using a trained neural network model. The model is built using TensorFlow and Keras. It takes a random noise input, conditioned with a label, to generate images of different styles of houses. The web app provides an API endpoint to send prompts and receive the generated images.
The AI model is a generator neural network with multiple transposed convolutional layers, followed by batch normalization and LeakyReLU activations. The model generates images by taking random noise and label input and outputting 128x128 RGB images. The model was trained using GAN techniques and the pre-trained weights are loaded from generator.h5.
- Input: Noise vector of dimension 128
- Label embedding: Categorical embedding with label input
- Layers: Multiple Conv2DTranspose layers with increasing resolution
- Output: 128x128 RGB image
Description: This endpoint generates a house image and returns it as a base64-encoded JPEG image called test.
Here is an example of what the model outputs
-
Install Python 3.8 or later.
-
Install necessary dependencies by running:
pip install -r requirements.txt
python main.py