Coder Social home page Coder Social logo

dream-textures-depth-pipeline's Introduction

Dream-Textures-Depth-Pipeline

Installation

  • Install conda and create your virtual enviroment.
  • Install torch using conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
  • Install required packages by running pip install -r requirements.txt

Usage

  • Run python app python app.py
  • Make a POST request to the server url or ip, fill in the parameters in the url and send the color image and the depth image by form data.
Form data values:
color (type File): the image color as file
depth (type File): the depth image as array - Float32[] | NDArray (eg blob image from JS)
POST http://{serverip:port | url}/depth/predict?prompt=<promtp>&strength=<float>&steps=<int>&cfg_scale=<float>&seed=<int>

Example:

POST http://216.153.52.125:8081/depth/predict?prompt=photo of a baby astronaut space walking at the international space station with earth seeing from above in the background&strength=1.0&steps=50&cfg_scale=7.5&seed=50

Params

  • prompt (str): The model generation based on text prompt.
  • strength (float): the amount of strength the pipe will do to generate a result as similar as possible to the text prompt. Best results between 0.8 and 1.5.
  • steps (int): the higher the amount the model will return a more tighter result. Results are better the more steps you use, however the more steps, the longer the generation takes. Good results between 20 and 50, best results between 75 and 100.
  • cfg_scale (float): The way to increase the adherence to the conditional signal that guides the generation (text). Best results between 7 and 8.5.
  • seed (int): used to generate random latent image representations. The larger the number, the more random. Good accuracy around 50.

dream-textures-depth-pipeline's People

Contributors

listofbanned avatar

Watchers

Avaer Kazmer 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.