GithubHelp home page GithubHelp logo

davidwyand / unreal-diffusion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emomilol1213/unreal-diffusion

0.0 0.0 0.0 82.02 MB

Stable Diffusion for Unreal Engine

License: MIT License

Shell 0.11% JavaScript 0.38% Python 16.85% TypeScript 4.18% CSS 0.11% HTML 0.31% Jupyter Notebook 77.44% Dockerfile 0.03% SCSS 0.59%

unreal-diffusion's Introduction

Unreal Diffusion : A Stable Diffusion Unreal Engine Implementation

unreal-diffusion

discord badge

This is a fork of invoke-ai/InvokeAI, a popular SD implementation with great features and GUI. It provides a streamlined GUI inside Unreal Engine to easily generate game-ready textures.

Quick links: [Discord Server]

Table of Contents

  1. Installation
  2. Features
  3. Latest Changes
  4. Troubleshooting
  5. Support

Installation

This fork is supported across multiple platforms. You can find individual installation instructions below.

  • [1] Follow the install instructions at invoke-ai/InvokeAI and get that running normally

  • [2] Copy the Unreal/Unreal_Diffusion folder into your unreal project's content folder

  • [3] Go to Project Settings in unreal and then plugin/Python

  • [4] Navigate and add your content/Unreal_Diffusion/Python folder to the "Additional Paths" list

  • [4.1] Also add /Lib/site-packages from your python 3 install location on your computer like in the image below

project logo

  • [5] (Optional) Go to Editor Preferences in Unreal and then "Loading & Saving"

  • [5.1] Add the "/outputs/img-samples/unreal-diffusion" to the Directories to monitor list to automatically import the generated images to unreal. You can map these to /Game/Unreal_Diffusion/Output as in the image below

project logo

Running the plugin

First switch to the correct folder and conda environment and then start the server. It should say "Point your browser at xxxxxxx" if launched succesfully

(base) conda activate invokeai
(invokeai) cd C:\AI\Unreal-Diffusion (example, depending on where you cloned the repo)
(invokeai) python scripts/legacy_api.py --web --port 3333 -o outputs/img-samples/unreal-diffusion

Back in unreal, go to the Unreal Diffusion folder and find the "Unreal_Diffusion" Editor Utility Widget, right-click that and press "Run Editor Utility Widget as in the image below. unreal start ui This should start the UI which looks like this and you are ready to start generating images/textures unreal ui

Features

Major Features

Unreal UI

  • Realtime - toggle that will generate the images without freezing unreal, but may generate slower. Off by default
  • Seamless - Forces SD to generate seamless images. Sometimes you could try to have this off and instead type seamless in the prompt

Most docs here link to InvokeAI's as they are very detailed and show usecases and syntax

Latest Changes

  • v0.5.0 (23 October 2022)
    • initial version with prompt/negative prompts, cfg, steps features

Troubleshooting

If the images won't generate due to VRAM, try lowering the resolution or temporarily load an empty level in unreal to generate images.

Contributing

Anyone who wishes to contribute to this project, whether documentation, features, bug fixes, code cleanup, testing, or code reviews, is very much encouraged to do so. If you are unfamiliar with how to contribute to GitHub projects, here is a Getting Started Guide.

A full set of contribution guidelines, along with templates, are in progress, but for now the most important thing is to make your pull request against the "development" branch, and not against "main". This will help keep public breakage to a minimum and will allow you to propose more radical changes.

Contributors

This fork is at the moment handled by me, with the main features/backend API coming from InvokeAI.

Support

For support, please use this repository's GitHub Issues tracking service. Feel free to send me an email if you use and like the plugin.

Original portions of the software are Copyright (c) 2022 Emil Eldstål

unreal-diffusion's People

Contributors

lstein avatar mauwii avatar psychedelicious avatar blessedcoolant avatar oceanswave avatar pbaylies avatar bakkot avatar emomilol1213 avatar tildebyte avatar santisbon avatar tesseractcat avatar any-winter-4079 avatar mh-dm avatar magnusviri avatar ardiouscuros avatar david-ford avatar db3000 avatar rromb avatar yunsaki avatar maddavid123 avatar dominicletz avatar hipsterusername avatar warner-benjamin avatar brentozar avatar toffaletti avatar spezialspezial avatar xraxra avatar mefengl avatar travco avatar rpagliuca 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.