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

change creation defaults #3

Merged
merged 1 commit into from
Dec 1, 2023
Merged
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
14 changes: 7 additions & 7 deletions src/cogs/GeneratorCog.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ async def create(
source = get_source(ctx)
large, fast = False, False
width, height, upscale_f = self.get_dimensions(aspect_ratio, large)
steps = 15 if fast else 40
steps = 15 if fast else 35

config = StableDiffusionConfig(
generator_name="create",
text_input=text_input,
width=width,
height=height,
steps=steps,
guidance_scale=7.5,
guidance_scale=8,
upscale_f=upscale_f,
seed=random.randint(1, 1e8),
)
Expand Down Expand Up @@ -172,7 +172,7 @@ async def remix(
width=width,
height=height,
steps=steps,
guidance_scale=7.5,
guidance_scale=8,
seed=random.randint(1, 1e8),
)

Expand Down Expand Up @@ -321,7 +321,7 @@ async def lerp(
height=height,
sampler="euler",
steps=steps,
guidance_scale=7.5,
guidance_scale=8,
seed=random.randint(1, 1e8),
)

Expand Down Expand Up @@ -359,11 +359,11 @@ def get_video_dimensions(self, aspect_ratio):

def get_dimensions(self, aspect_ratio, large):
if aspect_ratio == "square":
width, height = 768, 768
width, height = 1024, 1024
elif aspect_ratio == "landscape":
width, height = 960, 640
width, height = 1280, 768
elif aspect_ratio == "portrait":
width, height = 640, 960
width, height = 768, 1280
upscale_f = 1.4 if large else 1.0
return width, height, upscale_f

Expand Down
Loading