Please note this project is still under development and the README & the code are still being updated.
Welcome to the frontend of the PhotoRealistic AI project! This Angular application integrates with a backend API to generate and display photorealistic images using advanced AI algorithms.
Follow these instructions to set up and run the frontend locally.
Make sure you have the following installed:
- Node.js and npm
- Angular CLI
-
Clone the repository:
git clone https://github.com/psavarmattas/PhotorealisticAI.git
-
Navigate to the project root:
cd ./PhotorealisticAI
-
Install the required packages:
pip install -r requirements.txt
-
Install node:
npm install
-
Run the Backend API:
cd backend python generate_images_api.py
Note: Make sure you see the backend API running at http://localhost:5000/generate_image as it wil output the generated image.
-
Run the development server:
cd frontend/photorealistic-ai-frontend ng serve
Note: Open your browser and navigate to http://localhost:4200/ to view the app.
- Explore the AI-generated images.
- Click the
Load Image
button to fetch a new image from the backend API.
Ensure that the GAN model is trained and saved before using the API. Refer to the main README for training instructions.
For MacOS users, please check the dependencies mentioned in the main README for compatibility.
Please make sure you read the license before using the code.
The dataset is provided by title = Deep Learning Face Attributes in the Wild author = Liu, Ziwei and Luo, Ping and Wang, Xiaogang and Tang, Xiaoou, booktitle = Proceedings of International Conference on Computer Vision (ICCV), month = December, year = 2015