Leveraging advanced computer vision techniques, including the powerful VGG19 and CartoonGAN models. This project enables users to seamlessly blend the content of images/videos with the artistic style of another.
-
Open the terminal and navigate to the client directory:
cd client cd stylerepfrontend
-
Install Node Package Manager dependencies:
npm install
-
Install required packages:
npm install axios npm install react-router-dom npm install hamburger-react
-
Start the development server:
npm start
-
In another terminal window, navigate to the server directory:
cd server
-
Install TensorFlow for Python by running the following command inside
app.py
:pip install flask flask_cors opencv-python-headless tensorflow tensorflow_hub numpy scipy
-
To download the model tar file, please visit the following link: Arbitrary Image Stylization Model
After downloading the file, extract its contents and paste them into the
server\models\modelStyleTransfer
folder. If there are existing files in this folder, you can replace them with the extracted files. This will ensure that the model files are available for the style transfer functionality in your server code. -
Start the server:
python app.py