Download the PHP package imactool/hyperf-stable-diffusion without Composer
On this page you can find all versions of the php package imactool/hyperf-stable-diffusion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imactool/hyperf-stable-diffusion
More information about imactool/hyperf-stable-diffusion
Files in imactool/hyperf-stable-diffusion
Package hyperf-stable-diffusion
Short Description hyperf-stable-diffusion
License MIT
Informations about the package hyperf-stable-diffusion
imactool/hyperf-stable-diffusion
基于
rulilg/laravel-stable-diffusion
包直接平移并适配了 hyperf 框架。我对它进行了一些改造,大部分功能保持了相同。在这里感谢一下 RuliLG ,实现了如此强大好用的 stable-diffusion 组件。
基于 Replicate API 和 stablediffusionapi 的 Stable Diffusion 实现。
- 🎨 Built-in prompt helper to create better images
- 🚀 Store the results in your database
- 🎇 Generate multiple images in the same API call
- 💯 Supports both (text to image) and (image to image)
鸣谢:原作:RuliLG,特此鸣谢!
安装
注意 表新增了platform
平台字段。-- 后续会使用迁移增加,目前不考虑 :)
发布配置(包含配置文件和迁移文件)
至此,配置完成。
然后在 .env
里增加 Replicate 的 token
到 REPLICATE_TOKEN
即可。
使用
文字生成图片(Text to Image)
图片生成图片(Image to Image)
查询结果
Generating prompts
There are several styles already built-in:
Method | Prompt modification |
---|---|
realistic() |
{prompt}, realistic |
hyperrealistic() |
{prompt}, hyperrealistic |
conceptArt() |
{prompt}, concept art |
abstractArt() |
{prompt}, abstract art |
oilPainting() |
{prompt}, oil painting |
watercolor() |
{prompt}, watercolor |
acrylic() |
{prompt}, acrylic |
pencilDrawing() |
{prompt}, pencil drawing |
digitalPainting() |
{prompt}, digital painting |
penDrawing() |
{prompt}, pen drawing |
charcoalDrawing() |
{prompt}, charcoal drawing |
byPicasso() |
{prompt}, by Pablo Picasso |
byVanGogh() |
{prompt}, by Vincent Van Gogh |
byRembrandt() |
{prompt}, by Rembrandt |
byMunch() |
{prompt}, by Edvard Munch |
byKlimt() |
{prompt}, by Paul Klimt |
byKandinsky() |
{prompt}, by Jackson Pollock |
byMonet() |
{prompt}, by Claude Monet |
byDali() |
{prompt}, by Salvador Dali |
byDegas() |
{prompt}, by Edgar Degas |
byKahlo() |
{prompt}, by Frida Kahlo |
byCezanne() |
{prompt}, by Pablo Cezanne |
photograph() |
a photo of {prompt} |
highlyDetailed() |
{prompt}, highly detailed |
surrealism() |
{prompt}, surrealism |
trendingOnArtStation() |
{prompt}, trending on art station |
triadicColorScheme() |
{prompt}, triadic color scheme |
smooth() |
{prompt}, smooth |
sharpFocus() |
{prompt}, sharp focus |
matte() |
{prompt}, matte |
elegant() |
{prompt}, elegant |
theMostBeautifulImageEverSeen() |
{prompt}, the most beautiful image ever seen |
illustration() |
{prompt}, illustration |
digitalPaint() |
{prompt}, digital paint |
dark() |
{prompt}, dark |
gloomy() |
{prompt}, gloomy |
octaneRender() |
{prompt}, octane render |
resolution8k() |
{prompt}, 8k |
resolution4k() |
{prompt}, 4k |
washedColors() |
{prompt}, washed colors |
sharp() |
{prompt}, sharp |
dramaticLighting() |
{prompt}, dramatic lighting |
beautiful() |
{prompt}, beautiful |
postProcessing() |
{prompt}, post processing |
pictureOfTheDay() |
{prompt}, picture of the day |
ambientLighting() |
{prompt}, ambient lighting |
epicComposition() |
{prompt}, epic composition |
Additionally, you can add custom styles with the following methods:
as(string $canvas)
: to add a string at the beginning (i.e. "a photograph of")paintingStyle(string $style)
: to add a painting style (i.e. realistic, hiperrealistic, etc.)by(string $author)
: to instruct the system to paint it with the style of a certain authoreffect(string $effect)
: to add a finishing touch to the prompt. You can add as many as you want.
To learn more on how to build prompts for Stable Diffusion, please enter this link.
基于 stablediffusionapi 平台 https://stablediffusionapi.com/docs/
文字生成图片(Text to Image)
License
The MIT License (MIT). Please see License File for more information.