Spaces:
Running
Running
DeFactOfficial
commited on
Commit
•
11ad00c
1
Parent(s):
bdc1e12
Update skills.js
Browse files
skills.js
CHANGED
@@ -1,4 +1,46 @@
|
|
|
|
|
|
1 |
const skills = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
create_image: {
|
3 |
link: '',
|
4 |
markdown: `
|
@@ -25,10 +67,11 @@ height: in pixels, max 1024
|
|
25 |
seed: an integer between 0 and 10000000000 - please choose a random value each time you make a generation, unless generating a series of images that are intended to have similar look and feel, and then you use the same see for each one.
|
26 |
model: you can use any diffusion model on huggingface to create images (sometimes the user will suggest a model). otherwise, here are some state of the art diffusion models to play with:
|
27 |
|
28 |
-
- black-forest-labs/FLUX.1-schnell (very good quality model, great for drafts. speed: very fast. no text rendering. NO porn or nudity, but everything else is permitted)
|
29 |
- stabilityai/stable-diffusion-3.5-large (excellent quality SOTA model. speed: moderate. can render legible text. nudity is allowed. prohibited use cases: porn, offensive content)
|
|
|
30 |
- black-forest-labs/FLUX.1-dev (excellent quality SOTA model. speed: slow. can render legible text. NO porn or nudity, but everything else is permitted)
|
31 |
-
- enhanceaiteam/Flux-uncensored (excellent quality,
|
|
|
32 |
|
33 |
Please choose stabilityai/stable-diffusion-3.5-large by default if the request is safe for work
|
34 |
|
@@ -42,4 +85,6 @@ Please choose stabilityai/stable-diffusion-3.5-large by default if the request i
|
|
42 |
|
43 |
const createImages = (format) => {
|
44 |
return skills.create_image[format]
|
45 |
-
}
|
|
|
|
|
|
1 |
+
const {queryCommunityModels} = require("./retrievers/community_diffusion_models")
|
2 |
+
|
3 |
const skills = {
|
4 |
+
image_assistant: `You are a multimodal artist who creates images through prompt engineering. Of course, if the user asks you to generate an image using their prompt verbatim, then don't change it. Otherwise, try and capture the essence of their vision while prompting in a style known for excellent results.
|
5 |
+
|
6 |
+
# EXAMPLE PROMPTS
|
7 |
+
|
8 |
+
A surreal luminous side profile photography mixing part of photograph of a woman's face blending seamlessly into a swirling, fluid ink mix of vibrant colors. The left side features cool tones of blue, purple, and magenta, while the right transitions to warm hues of yellow and orange. The colors flow like liquid ink, creating a cosmic, dreamlike atmosphere with soft, glowing light and abstract textures. bright image, volumetric light, soft shadow
|
9 |
+
|
10 |
+
A majestic peacock with iridescent feathers perched on a branch, while a brilliant parrot swoops by in the background.
|
11 |
+
|
12 |
+
A futuristic skyscraper that pushes the boundaries of design and technology, reminiscent of the iconic Burj Khalifa. The building features a sleek and soaring silhouette, with a combination of reflective glass panels and metallic elements that shimmer in the sunlight. The interior spaces are luxurious and contemporary, with state-of-the-art amenities and breathtaking views of the cityscape. The color palette is a sophisticated blend of cool silvers, deep blues, and hints of gold, exuding a sense of elegance and opulence.
|
13 |
+
|
14 |
+
A portrait of a tiger with piercing eyes, set against a lush jungle background with warm golden lighting, photorealistic, dslr, 8k, ultra realistic`,
|
15 |
+
community_image_models: (paramsAsQuerystring, includeInstructions=true) =>{
|
16 |
+
let completeGuide = `
|
17 |
+
|
18 |
+
# COMMUNITY DIFFUSION MODELS - HOW TO USE
|
19 |
+
|
20 |
+
We have dozens or even hundreds of additional models for creating images, both generalist and specialty models.
|
21 |
+
|
22 |
+
Note that the majority of community models often don't work properly, are very slow, or both... But there are hidden gems in there
|
23 |
+
|
24 |
+
Especially if you use them properly. If you have to use community models or the user asks you to, try to find one that has examples
|
25 |
+
of how to prompt it... and model your prompts after those examples.
|
26 |
+
|
27 |
+
If there is an activation_phrase associated with the model, it means you MUST include that word or phrase somewhere in your prompt
|
28 |
+
if you want the model to perform at its full capacity - most of these models were finetuned using LORAs, which means that they activate
|
29 |
+
with a trigger phrase
|
30 |
+
|
31 |
+
Dimensions: MANY of these models are older, and cap out at 512x512 or 768x768... On the other hand, models derived from Flux are best at 1024x1024
|
32 |
+
If its an SDXL finetune, 768x768 is the way to go. Maybe you can find hints in the filename. Otherwise just use your judgment
|
33 |
+
|
34 |
+
Please Note: If you decide to use a community model, tell the user! Just in case some collaborative debugging is required.
|
35 |
+
|
36 |
+
${queryCommunityModels(paramsAsQuerystring)}
|
37 |
+
`
|
38 |
+
if (includeInstructions)
|
39 |
+
return completeGuide
|
40 |
+
else
|
41 |
+
return queryCommunityModels(paramsAsQuerystring)
|
42 |
+
|
43 |
+
},
|
44 |
create_image: {
|
45 |
link: '',
|
46 |
markdown: `
|
|
|
67 |
seed: an integer between 0 and 10000000000 - please choose a random value each time you make a generation, unless generating a series of images that are intended to have similar look and feel, and then you use the same see for each one.
|
68 |
model: you can use any diffusion model on huggingface to create images (sometimes the user will suggest a model). otherwise, here are some state of the art diffusion models to play with:
|
69 |
|
|
|
70 |
- stabilityai/stable-diffusion-3.5-large (excellent quality SOTA model. speed: moderate. can render legible text. nudity is allowed. prohibited use cases: porn, offensive content)
|
71 |
+
- stabilityai/stable-diffusion-3.5-large-turbo (good quality, great for drafts. speed: very fast. distilled from stable diffusion 3.5 large, so functionality is similar)
|
72 |
- black-forest-labs/FLUX.1-dev (excellent quality SOTA model. speed: slow. can render legible text. NO porn or nudity, but everything else is permitted)
|
73 |
+
- enhanceaiteam/Flux-uncensored (excellent quality, but very slow. No restrictions, uncensored. Training focused on NSFW so make sure to use words like naked, nude, kissing, etc in your prompt to activate the LORAs)
|
74 |
+
- black-forest-labs/FLUX.1-schnell (very good quality model, great for drafts. speed: very fast. no text rendering. NO porn or nudity, but everything else is permitted)
|
75 |
|
76 |
Please choose stabilityai/stable-diffusion-3.5-large by default if the request is safe for work
|
77 |
|
|
|
85 |
|
86 |
const createImages = (format) => {
|
87 |
return skills.create_image[format]
|
88 |
+
}
|
89 |
+
|
90 |
+
module.exports= skills
|