Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdxl webui #565

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions ppdiffusers/examples/StableDiffusionXLWebUI/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
:root {
--title-font-size: clamp(1.5rem, 6vw, 3rem);
--subtitle-font-size: clamp(1rem, 2vw, 1.2rem);
}

/* h1 {
background: linear-gradient(to right, red, orange, yellow, green, pink, indigo, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; font-size: 20px;
}

h2 {
background: linear-gradient(to right, red, orange, yellow, green, pink, indigo, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; font-size: 15px;
} */
#multial_color {
background: linear-gradient(to right, red, orange, yellow, green, pink, indigo, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#duplicate-button {
display: block;
margin: 1rem auto;
color: #fff;
background: #1565c0;
border-radius: 100vh;
padding: 0.5rem 1rem;
}

#component-0 {
max-width: 85%;
margin: 2rem auto;
padding: 2rem;
}

@media (max-width: 600px) {
#component-0 {
max-width: 100%;
padding: 0.5rem;
}
}

#title-container {
text-align: center;
padding: 2rem 0;
}

#title {
font-size: var(--title-font-size);
color: #333;
font-family: 'Helvetica Neue', sans-serif;
text-transform: uppercase;
background: transparent;
}

#title span {
background: linear-gradient(45deg, #4EACEF, #28b485);
background-clip: text;
color: transparent;
}

#subtitle {
text-align: center;
font-size: var(--subtitle-font-size);
margin-top: 1rem;
}

#btn {
width: 200px; /* 设置你需要的宽度 */
margin-left: auto;
margin-right: auto;
position: relative;
}
#btn1 {
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
#btn2 {
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"_class_name": "StableDiffusionXLPipeline",
"_name_or_path": "SG161222/RealVisXL_V3.0",
"_ppdiffusers_version": "0.24.0",
"feature_extractor": [
null,
null
],
"force_zeros_for_empty_prompt": true,
"image_encoder": [
null,
null
],
"scheduler": [
"ppdiffusers",
"EulerDiscreteScheduler"
],
"text_encoder": [
"ppdiffusers.transformers",
"CLIPTextModel"
],
"text_encoder_2": [
"ppdiffusers.transformers",
"CLIPTextModelWithProjection"
],
"tokenizer": [
"ppdiffusers.transformers",
"CLIPTokenizer"
],
"tokenizer_2": [
"ppdiffusers.transformers",
"CLIPTokenizer"
],
"unet": [
"ppdiffusers",
"UNet2DConditionModel"
],
"vae": [
"ppdiffusers",
"AutoencoderKL"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"_class_name": "EulerDiscreteScheduler",
"_ppdiffusers_version": "0.24.0",
"beta_end": 0.012,
"beta_schedule": "scaled_linear",
"beta_start": 0.00085,
"clip_sample": false,
"interpolation_type": "linear",
"num_train_timesteps": 1000,
"prediction_type": "epsilon",
"sample_max_value": 1.0,
"set_alpha_to_one": false,
"sigma_max": null,
"sigma_min": null,
"skip_prk_steps": true,
"steps_offset": 1,
"timestep_spacing": "leading",
"timestep_type": "discrete",
"trained_betas": null,
"use_karras_sigmas": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"architectures": [
"CLIPTextModel"
],
"attention_dropout": 0.0,
"bos_token_id": 0,
"dropout": 0.0,
"dtype": "float16",
"eos_token_id": 2,
"hidden_act": "quick_gelu",
"hidden_size": 768,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 3072,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 77,
"model_type": "clip_text_model",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 1,
"paddlenlp_version": null,
"projection_dim": 768,
"return_dict": true,
"transformers_version": "4.29.2",
"vocab_size": 49408
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"architectures": [
"CLIPTextModelWithProjection"
],
"attention_dropout": 0.0,
"bos_token_id": 0,
"dropout": 0.0,
"dtype": "float16",
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_size": 1280,
"initializer_factor": 1.0,
"initializer_range": 0.02,
"intermediate_size": 5120,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 77,
"model_type": "clip_text_model",
"num_attention_heads": 20,
"num_hidden_layers": 32,
"pad_token_id": 1,
"paddlenlp_version": null,
"projection_dim": 1280,
"return_dict": true,
"transformers_version": "4.29.2",
"vocab_size": 49408
}
Loading