mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-23 00:33:28 +01:00
clean build, and moved assets
This commit is contained in:
parent
29e5263fcc
commit
716491a68e
@ -20,23 +20,42 @@
|
||||
"16-bit",
|
||||
"Anaglyph",
|
||||
"Anime",
|
||||
"Art Nouveau",
|
||||
"Bauhaus",
|
||||
"Baroque",
|
||||
"CGI",
|
||||
"Cartoon",
|
||||
"Comic Book",
|
||||
"Concept Art",
|
||||
"Constructivist",
|
||||
"Cubist",
|
||||
"Digital Art",
|
||||
"Dadaist",
|
||||
"Expressionist",
|
||||
"Fantasy",
|
||||
"Fauvist",
|
||||
"Figurative",
|
||||
"Graphic Novel",
|
||||
"Geometric",
|
||||
"Hard Edge Painting",
|
||||
"Hydrodipped",
|
||||
"Impressionistic",
|
||||
"Lithography",
|
||||
"Manga",
|
||||
"Minimalist",
|
||||
"Modern Art",
|
||||
"Mosaic",
|
||||
"Mural",
|
||||
"Naive",
|
||||
"Neoclassical",
|
||||
"Photo",
|
||||
"Realistic",
|
||||
"Rococo",
|
||||
"Romantic",
|
||||
"Street Art",
|
||||
"Symbolist",
|
||||
"Stuckist",
|
||||
"Surrealist",
|
||||
"Visual Novel",
|
||||
"Watercolor"
|
||||
]
|
||||
@ -78,9 +97,13 @@
|
||||
"Glamor Shot",
|
||||
"Golden Hour",
|
||||
"HD",
|
||||
"Landscape",
|
||||
"Lens Flare",
|
||||
"Macro",
|
||||
"Polaroid",
|
||||
"Photoshoot",
|
||||
"Portrait",
|
||||
"Studio Lighting",
|
||||
"Vintage",
|
||||
"War Photography",
|
||||
"White Balance",
|
||||
@ -91,10 +114,13 @@
|
||||
"Color",
|
||||
[
|
||||
"Beautiful Lighting",
|
||||
"Cold Color Palette",
|
||||
"Colorful",
|
||||
"Dynamic Lighting",
|
||||
"Electric Colors",
|
||||
"Infrared",
|
||||
"Pastel",
|
||||
"Neon",
|
||||
"Synthwave",
|
||||
"Warm Color Palette"
|
||||
]
|
||||
@ -103,49 +129,130 @@
|
||||
"Emotions",
|
||||
[
|
||||
"Angry",
|
||||
"Bitter",
|
||||
"Disgusted",
|
||||
"Embarrassed",
|
||||
"Evil",
|
||||
"Excited",
|
||||
"Fear",
|
||||
"Funny",
|
||||
"Happy",
|
||||
"Horrifying",
|
||||
"Lonely",
|
||||
"Sad",
|
||||
"Surprised"
|
||||
"Serene",
|
||||
"Surprised",
|
||||
"Melancholic"
|
||||
]
|
||||
],
|
||||
[
|
||||
"Style of an artist or community",
|
||||
[
|
||||
"Artstation",
|
||||
"trending on Artstation",
|
||||
"by Agnes Lawrence Pelton",
|
||||
"by Akihito Yoshida",
|
||||
"by Alex Grey",
|
||||
"by Alexander Jansson",
|
||||
"by Alphonse Mucha",
|
||||
"by Andy Warhol",
|
||||
"by Artgerm",
|
||||
"by Asaf Hanuka",
|
||||
"by Aubrey Beardsley",
|
||||
"by Banksy",
|
||||
"by Beeple",
|
||||
"by Ben Enwonwu",
|
||||
"by Bob Eggleton",
|
||||
"by Caravaggio Michelangelo Merisi",
|
||||
"by Caspar David Friedrich",
|
||||
"by Chris Foss",
|
||||
"by Claude Monet",
|
||||
"by Dan Mumford",
|
||||
"by David Mann",
|
||||
"by Diego Velázquez",
|
||||
"by Disney Animation Studios",
|
||||
"by Édouard Manet",
|
||||
"by Esao Andrews",
|
||||
"by Frida Kahlo",
|
||||
"by Gediminas Pranckevicius",
|
||||
"by Georgia O'Keeffe",
|
||||
"by Greg Rutkowski",
|
||||
"by Gustave Doré",
|
||||
"by Gustave Klimt",
|
||||
"by H.R. Giger",
|
||||
"by Hayao Miyazaki",
|
||||
"by Henri Matisse",
|
||||
"by HP Lovecraft",
|
||||
"by Ivan Shishkin",
|
||||
"by Jack Kirby",
|
||||
"by Jackson Pollock",
|
||||
"by James Jean",
|
||||
"by Jim Burns",
|
||||
"by Johannes Vermeer",
|
||||
"by John William Waterhouse",
|
||||
"by Katsushika Hokusai",
|
||||
"by Kim Tschang Yeul",
|
||||
"by Ko Young Hoon",
|
||||
"by Leonardo da Vinci",
|
||||
"by Lisa Frank",
|
||||
"by M.C. Escher",
|
||||
"by Mahmoud Saïd",
|
||||
"by Makoto Shinkai",
|
||||
"by Marc Simonetti",
|
||||
"by Mark Brooks",
|
||||
"by Michelangelo",
|
||||
"by Pablo Picasso",
|
||||
"by Paul Klee",
|
||||
"by Peter Mohrbacher",
|
||||
"by Pierre-Auguste Renoir",
|
||||
"by Pixar Animation Studios",
|
||||
"by Rembrandt",
|
||||
"by Richard Dadd",
|
||||
"by Rossdraws",
|
||||
"by Salvador Dalí",
|
||||
"by Sam Does Arts",
|
||||
"by Sandro Botticelli",
|
||||
"by Ted Nasmith",
|
||||
"by Ten Hundred",
|
||||
"by Thomas Kinkade",
|
||||
"by Tivadar Csontváry Kosztka",
|
||||
"by Yoshitaka Amano",
|
||||
"by wlop"
|
||||
"by Victo Ngai",
|
||||
"by Vincent Di Fate",
|
||||
"by Vincent van Gogh",
|
||||
"by Wes Anderson",
|
||||
"by wlop",
|
||||
"by Yoshitaka Amano"
|
||||
]
|
||||
],
|
||||
[
|
||||
"CGI Software",
|
||||
[
|
||||
"3D Model",
|
||||
"3D Sculpt",
|
||||
"3Ds Max Model",
|
||||
"Blender Model",
|
||||
"Cinema4d Model",
|
||||
"Maya Model",
|
||||
"Unreal Engine",
|
||||
"Zbrush Sculpt"
|
||||
]
|
||||
],
|
||||
[
|
||||
"CGI Rendering",
|
||||
[
|
||||
"3D Render",
|
||||
"Corona Render",
|
||||
"Creature Design",
|
||||
"Cycles Render",
|
||||
"Detailed Render",
|
||||
"Environment Design",
|
||||
"Intricate Environment",
|
||||
"LSD Render",
|
||||
"Octane Render",
|
||||
"PBR",
|
||||
"Glass Caustics",
|
||||
"Global Illumination",
|
||||
"Subsurface Scattering"
|
||||
]
|
||||
]
|
||||
]
|
||||
|
@ -13,8 +13,8 @@ type ModifierListProps = {
|
||||
}
|
||||
|
||||
function ModifierList({tags}: ModifierListProps) {
|
||||
const setImageOptions = useImageCreate((state) => state.setImageOptions);
|
||||
const imageOptions = useImageCreate((state) => state.imageOptions);
|
||||
// const setImageOptions = useImageCreate((state) => state.setImageOptions);
|
||||
// const imageOptions = useImageCreate((state) => state.imageOptions);
|
||||
return(
|
||||
<ul className="modifier-list">
|
||||
{tags.map((tag) => (
|
||||
|
@ -23,6 +23,7 @@ export default function CreationPanel() {
|
||||
|
||||
const _handleFileSelect = (event: ChangeEvent<HTMLInputElement>) => {
|
||||
//console.log("file select", event);
|
||||
//@ts-ignore
|
||||
const file = event.target.files[0];
|
||||
|
||||
// console.log("file", file);
|
||||
|
@ -39,6 +39,7 @@ export default function DisplayPanel() {
|
||||
const temp = completedQueries.map((query, index ) => {
|
||||
// debugger;
|
||||
if(void 0 !== query) {
|
||||
//@ts-ignore
|
||||
return query.output.map((data)=>{
|
||||
return {id: `${completedIds[index]}-${data.seed}`, data: data.data}
|
||||
})
|
||||
|
@ -14,7 +14,6 @@ export type ImageCreationUiOptions = {
|
||||
isSoundEnabled: boolean;
|
||||
}
|
||||
|
||||
|
||||
export type ImageRequest = {
|
||||
prompt: string;
|
||||
seed: number;
|
||||
|
@ -2,14 +2,14 @@ import create from 'zustand';
|
||||
import produce from 'immer';
|
||||
import { useRandomSeed } from '../utils';
|
||||
|
||||
import { imageOptions } from './imageCreateStore';
|
||||
import { ImageRequest } from './imageCreateStore';
|
||||
|
||||
interface ImageQueueState {
|
||||
images : imageOptions[];
|
||||
images : ImageRequest[];
|
||||
completedImageIds: string[];
|
||||
addNewImage: (id:string, imageOptions: imageOptions) => void
|
||||
addNewImage: (id:string, imgRec: ImageRequest) => void
|
||||
hasQueuedImages: () => boolean;
|
||||
firstInQueue: () => imageOptions | [];
|
||||
firstInQueue: () => ImageRequest | [];
|
||||
removeFirstInQueue: () => void;
|
||||
}
|
||||
|
||||
@ -19,15 +19,14 @@ export const useImageQueue = create<ImageQueueState>((set, get) => ({
|
||||
images: new Array(),
|
||||
completedImageIds: new Array(),
|
||||
// use produce to make sure we don't mutate state
|
||||
addNewImage: (id: string, imageOptions: any) => {
|
||||
addNewImage: (id: string, imgRec: ImageRequest, isRandom= false) => {
|
||||
set( produce((state) => {
|
||||
|
||||
let { seed } = imageOptions;
|
||||
if (imageOptions.isSeedRandom) {
|
||||
let { seed } = imgRec;
|
||||
if (isRandom) {
|
||||
seed = useRandomSeed();
|
||||
}
|
||||
|
||||
state.images.push({ id, options: {...imageOptions, seed} });
|
||||
state.images.push({ id, options: {...imgRec, seed} });
|
||||
}));
|
||||
},
|
||||
|
||||
@ -35,7 +34,7 @@ export const useImageQueue = create<ImageQueueState>((set, get) => ({
|
||||
return get().images.length > 0;
|
||||
},
|
||||
firstInQueue: () => {
|
||||
return get().images[0] as imageOptions || [];
|
||||
return get().images[0] as ImageRequest || [];
|
||||
},
|
||||
|
||||
removeFirstInQueue: () => {
|
||||
|
26
ui/frontend/dist/index.html
vendored
26
ui/frontend/dist/index.html
vendored
@ -12,8 +12,11 @@
|
||||
<div id="root"></div>
|
||||
|
||||
|
||||
<!--- the original code for the working application -->
|
||||
<!-- moved the styles into the body for complication purposes -->
|
||||
<!-- ORIGINAL CODE BELOW FOR REFENCE -->
|
||||
|
||||
<!-- KEEP FOR NOW -->
|
||||
<!-- THE STYLES ARE BEING USED IN THE REACT APP -->
|
||||
<!-- WE NEED TO PORT OVER THE STYLES OVER TO THE REACT COMPONENTS -->
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
@ -273,8 +276,10 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- ALL OF THIS IS HERE FOR REFERNCE FOR THE TIME BEING BUT CAN BE SAFLEY REMOVED -->
|
||||
|
||||
<!-- All of the original DOM -->
|
||||
<div id="container">
|
||||
<div id="container" style="display: none;">
|
||||
<div class="flex-container">
|
||||
<div id="editor" class="col-50">
|
||||
<div id="meta">
|
||||
@ -1248,15 +1253,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* TURNED OFF */
|
||||
async function init() {
|
||||
await loadModifiers()
|
||||
await getDiskPath()
|
||||
await getAppConfig()
|
||||
|
||||
setInterval(healthCheck, HEALTH_PING_INTERVAL * 1000)
|
||||
healthCheck()
|
||||
|
||||
playSound()
|
||||
// await loadModifiers()
|
||||
// await getDiskPath()
|
||||
// await getAppConfig()
|
||||
// setInterval(healthCheck, HEALTH_PING_INTERVAL * 1000)
|
||||
// healthCheck()
|
||||
// playSound()
|
||||
}
|
||||
|
||||
init()
|
||||
|
26
ui/frontend/dist/index.js
vendored
26
ui/frontend/dist/index.js
vendored
File diff suppressed because one or more lines are too long
113
ui/frontend/dist/modifiers.json
vendored
113
ui/frontend/dist/modifiers.json
vendored
@ -20,23 +20,42 @@
|
||||
"16-bit",
|
||||
"Anaglyph",
|
||||
"Anime",
|
||||
"Art Nouveau",
|
||||
"Bauhaus",
|
||||
"Baroque",
|
||||
"CGI",
|
||||
"Cartoon",
|
||||
"Comic Book",
|
||||
"Concept Art",
|
||||
"Constructivist",
|
||||
"Cubist",
|
||||
"Digital Art",
|
||||
"Dadaist",
|
||||
"Expressionist",
|
||||
"Fantasy",
|
||||
"Fauvist",
|
||||
"Figurative",
|
||||
"Graphic Novel",
|
||||
"Geometric",
|
||||
"Hard Edge Painting",
|
||||
"Hydrodipped",
|
||||
"Impressionistic",
|
||||
"Lithography",
|
||||
"Manga",
|
||||
"Minimalist",
|
||||
"Modern Art",
|
||||
"Mosaic",
|
||||
"Mural",
|
||||
"Naive",
|
||||
"Neoclassical",
|
||||
"Photo",
|
||||
"Realistic",
|
||||
"Rococo",
|
||||
"Romantic",
|
||||
"Street Art",
|
||||
"Symbolist",
|
||||
"Stuckist",
|
||||
"Surrealist",
|
||||
"Visual Novel",
|
||||
"Watercolor"
|
||||
]
|
||||
@ -78,9 +97,13 @@
|
||||
"Glamor Shot",
|
||||
"Golden Hour",
|
||||
"HD",
|
||||
"Landscape",
|
||||
"Lens Flare",
|
||||
"Macro",
|
||||
"Polaroid",
|
||||
"Photoshoot",
|
||||
"Portrait",
|
||||
"Studio Lighting",
|
||||
"Vintage",
|
||||
"War Photography",
|
||||
"White Balance",
|
||||
@ -91,10 +114,13 @@
|
||||
"Color",
|
||||
[
|
||||
"Beautiful Lighting",
|
||||
"Cold Color Palette",
|
||||
"Colorful",
|
||||
"Dynamic Lighting",
|
||||
"Electric Colors",
|
||||
"Infrared",
|
||||
"Pastel",
|
||||
"Neon",
|
||||
"Synthwave",
|
||||
"Warm Color Palette"
|
||||
]
|
||||
@ -103,49 +129,130 @@
|
||||
"Emotions",
|
||||
[
|
||||
"Angry",
|
||||
"Bitter",
|
||||
"Disgusted",
|
||||
"Embarrassed",
|
||||
"Evil",
|
||||
"Excited",
|
||||
"Fear",
|
||||
"Funny",
|
||||
"Happy",
|
||||
"Horrifying",
|
||||
"Lonely",
|
||||
"Sad",
|
||||
"Surprised"
|
||||
"Serene",
|
||||
"Surprised",
|
||||
"Melancholic"
|
||||
]
|
||||
],
|
||||
[
|
||||
"Style of an artist or community",
|
||||
[
|
||||
"Artstation",
|
||||
"trending on Artstation",
|
||||
"by Agnes Lawrence Pelton",
|
||||
"by Akihito Yoshida",
|
||||
"by Alex Grey",
|
||||
"by Alexander Jansson",
|
||||
"by Alphonse Mucha",
|
||||
"by Andy Warhol",
|
||||
"by Artgerm",
|
||||
"by Asaf Hanuka",
|
||||
"by Aubrey Beardsley",
|
||||
"by Banksy",
|
||||
"by Beeple",
|
||||
"by Ben Enwonwu",
|
||||
"by Bob Eggleton",
|
||||
"by Caravaggio Michelangelo Merisi",
|
||||
"by Caspar David Friedrich",
|
||||
"by Chris Foss",
|
||||
"by Claude Monet",
|
||||
"by Dan Mumford",
|
||||
"by David Mann",
|
||||
"by Diego Velázquez",
|
||||
"by Disney Animation Studios",
|
||||
"by Édouard Manet",
|
||||
"by Esao Andrews",
|
||||
"by Frida Kahlo",
|
||||
"by Gediminas Pranckevicius",
|
||||
"by Georgia O'Keeffe",
|
||||
"by Greg Rutkowski",
|
||||
"by Gustave Doré",
|
||||
"by Gustave Klimt",
|
||||
"by H.R. Giger",
|
||||
"by Hayao Miyazaki",
|
||||
"by Henri Matisse",
|
||||
"by HP Lovecraft",
|
||||
"by Ivan Shishkin",
|
||||
"by Jack Kirby",
|
||||
"by Jackson Pollock",
|
||||
"by James Jean",
|
||||
"by Jim Burns",
|
||||
"by Johannes Vermeer",
|
||||
"by John William Waterhouse",
|
||||
"by Katsushika Hokusai",
|
||||
"by Kim Tschang Yeul",
|
||||
"by Ko Young Hoon",
|
||||
"by Leonardo da Vinci",
|
||||
"by Lisa Frank",
|
||||
"by M.C. Escher",
|
||||
"by Mahmoud Saïd",
|
||||
"by Makoto Shinkai",
|
||||
"by Marc Simonetti",
|
||||
"by Mark Brooks",
|
||||
"by Michelangelo",
|
||||
"by Pablo Picasso",
|
||||
"by Paul Klee",
|
||||
"by Peter Mohrbacher",
|
||||
"by Pierre-Auguste Renoir",
|
||||
"by Pixar Animation Studios",
|
||||
"by Rembrandt",
|
||||
"by Richard Dadd",
|
||||
"by Rossdraws",
|
||||
"by Salvador Dalí",
|
||||
"by Sam Does Arts",
|
||||
"by Sandro Botticelli",
|
||||
"by Ted Nasmith",
|
||||
"by Ten Hundred",
|
||||
"by Thomas Kinkade",
|
||||
"by Tivadar Csontváry Kosztka",
|
||||
"by Yoshitaka Amano",
|
||||
"by wlop"
|
||||
"by Victo Ngai",
|
||||
"by Vincent Di Fate",
|
||||
"by Vincent van Gogh",
|
||||
"by Wes Anderson",
|
||||
"by wlop",
|
||||
"by Yoshitaka Amano"
|
||||
]
|
||||
],
|
||||
[
|
||||
"CGI Software",
|
||||
[
|
||||
"3D Model",
|
||||
"3D Sculpt",
|
||||
"3Ds Max Model",
|
||||
"Blender Model",
|
||||
"Cinema4d Model",
|
||||
"Maya Model",
|
||||
"Unreal Engine",
|
||||
"Zbrush Sculpt"
|
||||
]
|
||||
],
|
||||
[
|
||||
"CGI Rendering",
|
||||
[
|
||||
"3D Render",
|
||||
"Corona Render",
|
||||
"Creature Design",
|
||||
"Cycles Render",
|
||||
"Detailed Render",
|
||||
"Environment Design",
|
||||
"Intricate Environment",
|
||||
"LSD Render",
|
||||
"Octane Render",
|
||||
"PBR",
|
||||
"Glass Caustics",
|
||||
"Global Illumination",
|
||||
"Subsurface Scattering"
|
||||
]
|
||||
]
|
||||
]
|
||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 11 KiB |
Loading…
Reference in New Issue
Block a user