Giter VIP home page Giter VIP logo

ai-cops's Introduction

AI-COPS

Table of Contents

Dependencies

You'll need a OpenAI account, and a Replicate (replicate.com) account.

Setup

pip install -r req.txt
Edit the .env file to include your API keys.
streamlit run Mugshot-Generator.py

Project Description

This project leverages generative AI models to create mugshots and hyper-realistic portraits from textual descriptions and drawings, while also generating knowledge graphs from prompts, aiding police and investigative agencies in their efforts.

Mugshot Generator

  • Utilizes the Stable Diffusion XL (SDXL) model from Stability AI to generate mugshots of suspects or perpetrators based on a textual description.
  • Allows users to provide a detailed prompt, specifying the desired characteristics of the subject's face, such as gender, age, ethnicity, and other distinguishing features.
  • The generated mugshots are highly realistic, with sharp focus and ultra-high definition (4K) quality.

WhatsApp Image 2024-04-16 at 19 26 27_85df5446

Drawing to Hyperrealistic Portrait

  • Leverages the power of ControlNet, a technique that allows for better control over the image generation process by providing a reference image or drawing.
  • Users can upload a drawing or sketch of a face, and the model will generate a hyper-realistic portrait based on the input.
  • The generated portraits are highly detailed and lifelike, capturing the essence of the original drawing while enhancing it with realistic textures, lighting, and depth.

WhatsApp Image 2024-04-16 at 19 43 27_bd0f96a6

Knowledge Graph Generator

  • Utilizes the GPT-3.5-turbo model from OpenAI to extract relationships and entities from a given prompt.
  • Based on the provided prompt, the model generates a list of relationships in the format [ENTITY 1, RELATIONSHIP, ENTITY 2].
  • The extracted relationships are then visualized as a knowledge graph using the NetworkX library in Python, allowing for easy interpretation and understanding of the underlying connections.

WhatsApp Image 2024-04-16 at 19 23 58_7cf8ecb7

ai-cops's People

Contributors

anirudh-kavle avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

vid2714

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.