Dream api
Project description
Hi there, I'm Wombo
I am a module for using wombo dream ai (neural network of image generation)
Mini Documentation
Asynchronous and synchronous module
from wombo import AsyncDream # async
from wombo import Dream # sync
Create a task
- since all actions are the same in both versions, I will consider only one module, namely the asynchronous
dream = AsyncDream()
task = await dream.create_task(prompt: str, style: int)
- The list of styles will be available via github
Check a task (complite or no)
task = await dream.check_task(task.id)
# To get information about readiness in bool format
task = await dream.check_task(task.id, False)
# To get information about readiness
Create gif
- photo_url_list Only the already generated image has. To check the image, use check_task(). Return io.BytesIO()
gif = await dream.gif(task.photo_url_list)
gif = await dream.gif(task.photo_url_list, thread=False)
# Used if you don't want to use an asynchronous thread.
# to generate a gif, it is true since the generation is quite long
# Generation in the thread is not available for the synchronous library
Generate
- 1 command to receive, reply immediately. without checks via check_task()
gif = await dream.generate(taxt:str, syle: int, gif: bool)
all styles for generating images
- Mistakes are possible! the approximate data is given, and will be updated, each time the date of change will be indicated {3: 'no style', 9: 'psychic', 14: 'etching', 16: 'wuhtercuhler', 17: 'provenance', 18: 'rose gold', 22: 'ghibli', 28: 'melancholic', 31: 'toasty', 32: 'realistic', 34: 'arcane', 35: 'throwback', 36: 'daydream', 37: 'surreal', 38: 'ink', 39: 'pandora', 40: 'malevolent', 41: 'street art', 42: 'unrealistic', 45: 'comic', 46: 'anime', 47: 'line-art', 48: 'gouache', 49: 'polygon', 50: 'paint', 52: 'hdr', 53: 'analogue', 54: 'retro-futurism', 55: 'isometric', 57: 'bad trip', 58: 'cartoonist', 60: 'vector', 61: 'fantastical', 63: 'Spectral', 65: 'diorama', 67: 'abstract', 68: 'flora', 71: 'soft touch', 72: 'winter', 73: 'festive', 74: 'splatter', 76: 'figure', 77: 'expressionism', 78: 'realistic v2', 80: 'anime v2', 81: 'flora v2', 84: 'buliojourney v2', 88: 'blues v2', 91: 'watercolor v2', 92: 'spectral v2', 94: 'gloomy', 95: 'the cut', 96: 'the bulio cut', 97: 'dreamwave v2', 98: 'illustrated v2', 99: 'abstract fluid v2'}
Creditless
- @mayneryt her give me algoritm
- @pokedim13 me
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wombo-0.1.72.tar.gz
(8.2 kB
view hashes)
Built Distribution
wombo-0.1.72-py3-none-any.whl
(9.8 kB
view hashes)