Skip to content

Commit

Permalink
default denoise strength to 0.75
Browse files Browse the repository at this point in the history
this argument does not pass anyway on txt2img
  • Loading branch information
Kilvoctu committed Oct 20, 2022
1 parent 2234093 commit 8534a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/stablecog.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def dream_handler(self, ctx: discord.ApplicationContext, *,
guidance_scale: Optional[float] = 7.0,
sampler: Optional[str] = 'Euler a',
seed: Optional[int] = -1,
strength: Optional[float] = None,
strength: Optional[float] = 0.75,
init_image: Optional[discord.Attachment] = None,):
print(f'Request -- {ctx.author.name}#{ctx.author.discriminator} -- Prompt: {prompt}')
#apply indices from PayloadFormatter and confirm
Expand Down

3 comments on commit 8534a11

@cyberofficial
Copy link
Contributor

@cyberofficial cyberofficial commented on 8534a11 Oct 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you don't have an issues tab.

Request -- cyber_official#0001 -- Prompt: a giant egg
Ignoring exception in command draw:
Traceback (most recent call last):
  File "Y:\stablediff\aiyabot\datadir\lib\site-packages\discord\commands\core.py", line 124, in wrapped
    ret = await coro(arg)
  File "Y:\stablediff\aiyabot\datadir\lib\site-packages\discord\commands\core.py", line 970, in _invoke
    await self.callback(self.cog, ctx, **kwargs)
  File "Y:\stablediff\aiyabot\core\stablecog.py", line 134, in dream_handler
    PayloadFormatter.do_format(self, PayloadFormatter.PayloadFormat.TXT2IMG)
  File "Y:\stablediff\aiyabot\core\PayloadFormatter.py", line 47, in do_format
    dependenciesjson = responsestr["dependencies"]
KeyError: 'dependencies'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "Y:\stablediff\aiyabot\datadir\lib\site-packages\discord\bot.py", line 1088, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "Y:\stablediff\aiyabot\datadir\lib\site-packages\discord\commands\core.py", line 374, in invoke
    await injected(ctx)
  File "Y:\stablediff\aiyabot\datadir\lib\site-packages\discord\commands\core.py", line 132, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: KeyError: 'dependencies'

Something do be wrong with the bot.

@Kilvoctu
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen this error before, but I'm having trouble recreating it on my setup with current commit.
The PayloadFormatter is from this repo; I'll look at it and see if I can implement it better into bot. Currently, it's more or less dropped in unchanged.

Also, I activated issues tab now; sorry, relatively inexperienced at github. You can paste the issue there again if you want

@Kilvoctu
Copy link
Owner Author

@Kilvoctu Kilvoctu commented on 8534a11 Oct 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I was able to break my code and recreate the error, then apply something that worked for me.

Can you try the changes at this branch (https://github.com/Kilvoctu/aiyabot/tree/test) and see if the problem is fixed for you? This is the commit 5b7c713

Please sign in to comment.