Code Monkey home page Code Monkey logo

yasd-discord-bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

yasd-discord-bot's Issues

Error when trying to run server.

For some reason the server just won't start. I don't know why, and this is the third time ive tried it(running linux mint 21)
Im really hoping you understand these logs better than I do.

Logs:
logs.txt

VRAM troubles

You mentioned that you need 16 GB+ VRAM to run at full resolution.

I have the bot working, but it runs out of Memory instantly at any attempt

RuntimeError: CUDA out of memory. Tried to allocate 512.00 MiB (GPU 0; 7.79 GiB total capacity; 5.08 GiB already allocated; 88.56 MiB free; 5.20 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Is there any way I can either lower the image resolution or somehow use an optimized fork to run the bot on my pitiful 8GB 3060 Ti. Im just trying to set this bot up to use in me and my friends' discord server. Im also not using docker

getting error on run on windows

Hi i get an error on running from this line.
intents = discord.Intents(messages=True, message_content=True)
error is: AttributeError: 'Intents' object has no attribute 'message_content'

it looks like a discord.py error.
dicrod.py 1.7.3

bot will not start

i get an error at start. below the error.
Traceback (most recent call last):
File "bot.py", line 26, in
currently_fetching_ai_image: dict[str, Union[str, bool]] = {}
TypeError: 'type' object is not subscriptable
running on windows. python 3.8

interpolate throws a DocumentArray error

I tried to run
/interpolate and filled out the two prompts

and got
Now beginning work on "interpolate "cat sitting on a sofa" to dog sitting on a sofa" for murmur5786. Please be patient until I finish that.
Got unknown error on interpolate "cat sitting on a sofa" to dog sitting on a sofa: <DocumentArray (length=0) at 140684863006336> is empty

Feature request

A quality of live improvement for the bot would be implementing buttons such as MJ has for redoing the prompt or upscaling each of the 4 images.
a good reference for buttons using discord.py seems to be https://gist.github.com/lykn/bac99b06d45ff8eed34c2220d86b6bf4.
another improvement would be that the message "Now beginning work on..." could be edited with the final result.

very nice work on the bot.

[Feature Request] Prompt Weights

Not sure if this is a thing, but my tests and the manual don't seem to include this. Negative prompting would be nice as well but based on what I've seen its more difficult to implement.

Add support for image2image with a slash command.

Image2image is already available via > command, but users in my server were having trouble understanding those commands. I managed to get it hackily working by converting the command into a slash and requiring the user to specify an image url.

Riff local settings are using on the Retry button instead of the ones from the previous riff

See:

        if original_request['api'] == 'stablediffuse':
            sampler = original_request['sampler']
            scale = original_request['scale']
            steps = int(original_request['steps'])
            latentless = original_request['latentless']
            strength = original_request['strength']
            await _riff(
                interaction.channel, interaction.user,
                self.short_id_parent, self.idx_parent,
                height=self.pixels_height,
                latentless=latentless,
                sampler=sampler,
                scale=scale,
                steps=steps,
                strength=strength,
                width=self.pixels_width)

Issues with documentation

Firstly love your work, great project!

Just a few things/issues I came across following the documentation for native install.

  1. Got an error that the version of Jax was too old but was able to fix that by not specifying the version, which installed the latest and seems to work fine. pip install jax

  2. I had to clone the original SwinIR repo because upscaling was throwing an error about missing main_test_swinir.py script and models/network_swinir.py (this was since you added the buttons, previously did not have this issue.)

  3. Not related to your code but updating to python 10.3 on Ubuntu 20.04.5 LTS was a massive pain but I eventually got it working.... More of an FYI for Ubuntu users.

Riff buttons should not be deactivated

Love the new buttons - just a minor improvement. When a riff-button is pressed it is deactivated. This is fine for upscaling but if I want to do another riff of the same image I have to fall back to the traditional copy-pasting.

Thank you for your work - huge improvement!!

">upscale" ignores the index

When using the manual ">upscale" command the bot ignores the index and uses 0. However when you use "/upscale" or the buttons it works fine.

image

Resolutions producing varying results

Some resolutions do not work, here is a list
Square resolutions 512x512 and above = working
Square resolutions less than 512x512 = noisy, fuzzy, weirdly noisy
Any vertical or landscape resolutions = stretched into a square
Vertical or landscape resolutions less then 512x512 = noisy, fuzzy, weirdly noisy AND stretched into a square

Assuming all resolutions are multiples of 64
resolution edited in dalle/dalle-flow/executors/stable/config.yml

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.