← Open Source
varunshenoy

opendream

An extensible, easy-to-use, and portable diffusion web UI πŸ‘¨β€πŸŽ¨.

ApplicationsContent creationJavaScript
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.67k
Stars
73
Forks
+-1
This week
6
Contributors
Created 2023-05-12 Β· Updated 2026-10-13 Β· #9735 today
Top developers
varunshenoyEricZLoushashank2000

varunshenoy/opendream is ranked 9,735 with 1,669 stars.

Same-category comparison

varunshenoy/opendream is ranked 9,735 among these 8 peers; victordibia/handtracking is ranked 9,727.

Same-category comparison
NameRankMetrics
manzaltu/claude-code-ide.el9,717
Language:
Emacs Lisp
Stars:
1,674
Forks:
117
Description:
Claude Code IDE integration for Emacs.
0x676e67/ninja9,719
Language:
Rust
Stars:
1,673
Forks:
279
Description:
Reverse engineered ChatGPT proxy.
litaio/lita9,725
Language:
Ruby
Stars:
1,673
Forks:
175
Description:
ChatOps for Ruby.
victordibia/handtracking9,727
Language:
Python
Stars:
1,673
Forks:
457
Description:
Building a Real-time Hand-Detector using Neural Networks (SSD) on Tensorflow.
Nutlope/turboseek9,751
Language:
TypeScript
Stars:
1,659
Forks:
261
Description:
An AI search engine inspired by Perplexity.
eylonmiz/react-agent9,757
Language:
TypeScript
Stars:
1,657
Forks:
155
Description:
The open-source React.js Autonomous LLM Agent.
abdulfatir/twitter-sentiment-analysis9,761
Language:
Python
Stars:
1,655
Forks:
600
Description:
Sentiment analysis on tweets using Naive Bayes, SVM, CNN, LSTM, etc.
davialabs/davia9,762
Language:
TypeScript
Stars:
1,655
Forks:
122
Description:
Interactive, editable docs designed for coding agents.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJavaScript
CategoryApplications
SubcategoryContent creation
Stars1,669
Forks73
Contributors6
Created date2023-05-12
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days-1
Rank9,735
Previous rank9,774
Rank change39
7-day stars rank17,058
Previous 7-day stars rank17,057
7-day stars rank change-1
Total stars rank7,412
Previous total stars rank7,404
Total stars rank change-8
CountryUSA
README summary

Opendream: A Web UI For the Rest of Us πŸ’­ 🎨 Opendream brings much needed and familiar features, such as layering, non-destructive editing, portability, and easy-to-write extensions, to your Stable Diffusion workflows. *Prerequisites*: Make sure you have Node installed. Navigate to this project within your terminal and run . After ~30 seconds, both the frontend and backend of the Opendream system should be up and running. Features Diffusion models have emerged as powerful tools in the world of image generation

and manipulation. While they offer significant benefits, these models are often considered black boxes due to their inherent complexity. The current diffusion image generation ecosystem is defined by tools that allow one-off image manipulation tasks to control these models - text2img, in-painting, pix2pix, among others. For example, popular interfaces like Automatic1111, Midjourney, and Stability. AI's DreamStudio only support destructive editing: each edit "consumes" the previous image. This means users cannot easily build off of previous images or run multiple

experiments on the same image, limiting their options for creative exploration. Layering and Non-destructive Editing Non-destructive editing is a method of image manipulation that preserves the original image data while allowing users to make adjustments and modifications without overwriting previous work. This approach facilitates experimentation and provides more control over the editing process by using layers and masks. When you delete a layer, all layers after it also get deleted. This guarantees that all layers currently on the

canvas are a product of other existing layers. This also allows one to deterministically "replay" a workflow. Like Photoshop, Opendream supports non-destructive editing out of the box. Learn more about the principles of non-destructive editing in Photoshop here. Save and Share Workflows Users can also save their current workflows into a portable file format that can be opened up at a later time or shared with collaborators. In this context, a "state" is just a JSON file describing

all of the current layers and how they were created. Support Simple to Write, Easy to Install Extensions As the open-source ecosystem flourishes around these models and tools, extensibility has also become a major concern. While Automatic1111 does offer extensions, they are often difficult to program, use, and install. It is far from being as full-featured as an application like Adobe Photoshop. As new features for Stable Diffusion, like ControlNet, are released, users should be able to seamlessly

integrate them into their artistic workflows with minimal overload and time. Opendream makes writing and using new diffusion features as simple as writing a Python function. Extensions From the get-go, Opendream supports two key primitive operations baked into the core system: and . In this repository, extensions for , , , and (Segment Anything) are provided. Any image manipulation logic can be easily written as an extension. With extensions, you can also decide how certain operations work. For example, you can override the

operation to use OpenAI's DALL-E instead or call a serverless endpoint on a service like AWS or Replicate. Loading

Frequently asked questions

How many stars and forks are recorded?

varunshenoy/opendream has 1,669 stars and 73 forks.

What is the repository rank?

varunshenoy/opendream is ranked 9,735.

What language and category are recorded?

varunshenoy/opendream has 1,669 stars, uses JavaScript and belongs to Applications.

Which repository is closest in rank?

varunshenoy/opendream is compared with victordibia/handtracking, ranked 9,727 with 1,673 stars.

README

Opendream: A Web UI For the Rest of Us πŸ’­ 🎨

Opendream brings much needed and familiar features, such as layering, non-destructive editing, portability, and easy-to-write extensions, to your Stable Diffusion workflows. Check out our demo video.

Getting started

  1. Prerequisites: Make sure you have Node installed. You can download it here.
  2. Clone this repository.
  3. Navigate to this project within your terminal and run sh ./run_opendream.sh. After ~30 seconds, both the frontend and backend of the Opendream system should be up and running.

Features

Diffusion models have emerged as powerful tools in the world of image generation and manipulation. While they offer significant benefits, these models are often considered black boxes due to their inherent complexity. The current diffusion image generation ecosystem is defined by tools that allow one-off image manipulation tasks to control these models - text2img, in-painting, pix2pix, among others.

For example, popular interfaces like Automatic1111, Midjourney, and Stability.AI's DreamStudio only support destructive editing: each edit "consumes" the previous image. This means users cannot easily build off of previous images or run multiple experiments on the same image, limiting their options for creative exploration.

Layering and Non-destructive Editing

Non-destructive editing is a method of image manipulation that preserves the original image data while allowing users to make adjustments and modifications without overwriting previous work. This approach facilitates experimentation and provides more control over the editing process by using layers and masks. When you delete a layer, all layers after it also get deleted. This guarantees that all layers currently on the canvas are a product of other existing layers. This also allows one to deterministically "replay" a workflow.

Like Photoshop, Opendream supports non-destructive editing out of the box. Learn more about the principles of non-destructive editing in Photoshop here.

Save and Share Workflows

Users can also save their current workflows into a portable file format that can be opened up at a later time or shared with collaborators. In this context, a "state" is just a JSON file describing all of the current layers and how they were created.

Support Simple to Write, Easy to Install Extensions

As the open-source ecosystem flourishes around these models and tools, extensibility has also become a major concern. While Automatic1111 does offer extensions, they are often difficult to program, use, and install. It is far from being as full-featured as an application like Adobe Photoshop.

As new features for Stable Diffusion, like ControlNet, are released, users should be able to seamlessly integrate them into their artistic workflows with minimal overload and time.

Opendream makes writing and using new diffusion features as simple as writing a Python function. Keep reading to learn how.

Extensions

From the get-go, Opendream supports two key primitive operations baked into the core system: dream and mask_and_inpaint. In this repository, extensions for instruct_pix2pix, controlnet_canny, controlnet_openpose, and sam (Segment Anything) are provided.

Any image manipulation logic can be easily written as an extension. With extensions, you can also decide how certain operations work. For example, you can override the dream operation to use OpenAI's DALL-E instead or call a serverless endpoint on a service like AWS or Replicate. Here's an example using Baseten.

Loading an Existing Extension

There are two ways to load extensions.

  1. Install a pre-written one through the Web UI.
  2. (Manual) Download a valid extension file (or write one yourself!) and add it to the opendream/extensions folder. Instructions for writing your own extension are below.

Here is a sampling of currently supported extensions. You can use the links to install any given extension through the Web UI.

Extension Link
OpenAI's DALL-E File
Serverless Stable Diffusion File
Instruct Pix2Pix File
ControlNet Canny File
ControlNet Openpose File
Segment Anything File
PhotoshopGPT Gist

Note that extensions may have their own requirements you would need to include in the requirements.txt file. For example, you would need to add openai if you want to use the DALL-E extension.

Feel free to make a PR if you create a useful extension!

Writing Your Own Extension

Users can write their own extensions as follows:

  1. Create a new Python file in the opendream/extensions folder.
  2. Write a method with type hints and a @opendream.define_op decorator. This decorator registers this method with the Opendream backend.

The method has a few requirements:

  • Parameters must have type hints. These enable the backend to generate a schema for the input which is parsed into form components on the frontend. Valid types include: str, int, float, Layer, MaskLayer, or ImageLayer.
  • The only valid return types are a Layer or a list of Layer objects.

Contributions and Licensing

Opendream was built by Varun Shenoy, Eric Lou, Shashank Rammoorthy, and Rahul Shiv as a part of Stanford's CS 348K.

Feel free to provide any contributions you deem necessary or useful. This project is licensed under the MIT License.

Nearby in the ranking
Similar items