Skip to content

Commit

Permalink
Additional Image Generation Models (#101)
Browse files Browse the repository at this point in the history
* Moved dalle2 to be a subcommand of the new 'render' command

* Added /render

* Added keywords to render models
  • Loading branch information
Kardbord authored Apr 28, 2023
1 parent d663a61 commit c219542
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 126 deletions.
63 changes: 63 additions & 0 deletions config/hugging-face-models.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"models": {
"runwayml/stable-diffusion-v1-5": [
""
],
"prompthero/openjourney": [
"mdjrny-v4 style, "
],
"nitrosocke/mo-di-diffusion": [
"modern disney style, "
],
"wavymulder/Analog-Diffusion": [
"analog style, "
],
"nitrosocke/redshift-diffusion": [
"redshift style, "
],
"nitrosocke/Ghibli-Diffusion": [
"ghibli style, "
],
"Envvi/Inkpunk-Diffusion": [
"nvinkpunk, "
],
"ogkalu/Comic-Diffusion": [
"charliebo artstyle, ",
"holliemengert artstyle, ",
"marioalberti artstyle, ",
"pepelarraz artstyle, ",
"andreasrocha artstyle, ",
"jamesdaly artstyle, "
],
"nousr/robo-diffusion-2-base": [
"nousr robot, "
],
"Fictiverse/Stable_Diffusion_PaperCut_Model": [
"PaperCut, "
],
"nitrosocke/elden-ring-diffusion": [
"elden ring style, "
],
"dallinmackay/Van-Gogh-diffusion": [
"lvngvncnt, "
],
"Conflictx/Complex-Lineart": [
"ComplexLA style, "
],
"darkstorm2150/Protogen_x3.4_Official_Release": [
"modelshoot style, ",
"analog style, ",
"mdjrny-v4 style, ",
"nousr robot, "
],
"Aybeeceedee/knollingcase": [
"knollingcase, "
],
"wavymulder/portraitplus": [
"portrait+ style, "
],
"0xJustin/Dungeons-and-Diffusion": [
""
]
}
}
21 changes: 17 additions & 4 deletions kardbot/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,22 @@ func getCommands() []*discordgo.ApplicationCommand {
Options: timeCmdOpts(),
},
{
Name: dalle2Cmd,
Description: "Ask an AI to generate an image from a prompt. Uses Open AI's DALL·E 2.",
Options: dalle2Opts(),
Name: renderCmd,
Description: "Ask an AI to generate an image from a prompt.",
Options: []*discordgo.ApplicationCommandOption{
{
Name: dalle2SubCmd,
Description: "Ask Open AI's DALL·E 2 model to generate an image from a prompt.",
Type: discordgo.ApplicationCommandOptionSubCommand,
Options: dalle2Opts(),
},
{
Name: hfSubCmd,
Description: "Ask a HuggingFace model to generate an image from a prompt.",
Type: discordgo.ApplicationCommandOptionSubCommand,
Options: hfOpts(),
},
},
},
{
Name: helpCmd,
Expand Down Expand Up @@ -392,7 +405,7 @@ func getCommandImpls() map[string]onInteractionHandler {
madlibCmd: handleMadLibCmd,
timeCmd: handleTimeCmd,
pollCmd: handlePollCmd,
dalle2Cmd: handleDalle2Cmd,
renderCmd: handleRenderCmd,
}
}

Expand Down
122 changes: 0 additions & 122 deletions kardbot/dalle2.go

This file was deleted.

Loading

0 comments on commit c219542

Please sign in to comment.