Giter VIP home page Giter VIP logo

styleclip-playground's Introduction

StyleCLIP Playground

StyleCLIP Playground is a project that provides a front-end to the StyleCLIP official implementation.

Screenshots

Disclaimer

Due to the time constraint, this project was built within 24 hours. The code may contain vulneraibilities that hackers can expliot. I highly recommend not to deploy the project to a publically accessible server. The project is still under development (after I finish my assignments and taking the finals). If you are interested in the project, considering star to the project ;)

Installation guide

  1. Install Anaconda.

  2. Create a virtual environemnt (recommended) and activate the environment.

conda create -n styleclip python==3.10 -y
conda activate styleclip
  1. Install PyTorch

If you have a GPU with CUDA support

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge

If you wish to run it on a machine without NVIDIA graphic card, install the CPU only version.

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch
  1. Install other dependencies with pip.
pip install -r requirements.txt
  1. Download the pretrained models and extract according to the folder structure.

  2. Populate the database (by default, run with SQLite3).

python populate.py

By default, several users are created. They are admin, user1, and user2. Their passwords are 12345678.

  1. Run the front-end (development server).
python run_web.py dev
  1. Run the service-end.
python run_service.py --device=cpu --app-config=dev
  1. Access the web with http://127.0.0.1. The port number can be changed in configurations/dev.json. Note: This is just for development purposes, do not deploy the application like this. Instead, use a WSGI server.

Credits

Part of the code of this project is based on the open-source development framework, Mangee Flask-RESTful. The framework was developed by Bohui WU (@RapDoodle, one of our team members). The complete source code of the framework can be found in https://github.com/RapDoodle/mangee-flask-restful.

License

The project is licensed under the MIT License.

styleclip-playground's People

Contributors

rapdoodle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.