2022-09-11 20:58:14 +00:00
|
|
|
from setuptools import find_packages, setup
|
2022-09-08 03:59:30 +00:00
|
|
|
|
2022-09-12 04:36:14 +00:00
|
|
|
with open("README.md", "r", encoding="utf-8") as f:
|
|
|
|
readme = f.read()
|
|
|
|
|
2022-09-08 03:59:30 +00:00
|
|
|
setup(
|
2022-09-12 04:36:14 +00:00
|
|
|
name="imaginAIry",
|
|
|
|
author="Bryce Drennan",
|
2022-09-12 04:47:14 +00:00
|
|
|
# author_email="b r y p y d o t io",
|
2022-12-21 17:36:49 +00:00
|
|
|
version="7.3.0",
|
2022-09-12 04:36:14 +00:00
|
|
|
description="AI imagined images. Pythonic generation of stable diffusion images.",
|
|
|
|
long_description=readme,
|
|
|
|
long_description_content_type="text/markdown",
|
2022-09-12 04:47:14 +00:00
|
|
|
project_urls={
|
|
|
|
"Documentation": "https://github.com/brycedrennan/imaginAIry/blob/master/README.md",
|
|
|
|
"Source": "https://github.com/brycedrennan/imaginAIry",
|
|
|
|
},
|
2022-09-10 07:32:31 +00:00
|
|
|
packages=find_packages(include=("imaginairy", "imaginairy.*")),
|
2022-09-09 05:22:55 +00:00
|
|
|
entry_points={
|
2022-09-20 04:15:38 +00:00
|
|
|
"console_scripts": [
|
|
|
|
"imagine=imaginairy.cmds:imagine_cmd",
|
|
|
|
"aimg=imaginairy.cmds:aimg",
|
|
|
|
],
|
2022-09-09 05:22:55 +00:00
|
|
|
},
|
2022-09-18 13:07:07 +00:00
|
|
|
package_data={
|
|
|
|
"imaginairy": [
|
|
|
|
"configs/*.yaml",
|
2022-10-09 01:41:56 +00:00
|
|
|
"enhancers/phraselists/*.txt",
|
2022-09-18 13:07:07 +00:00
|
|
|
"vendored/clip/*.txt.gz",
|
|
|
|
"vendored/clipseg/*.pth",
|
2022-09-21 00:05:11 +00:00
|
|
|
"vendored/blip/configs/*.*",
|
feature: prompt expansion (#51)
You can use `{}` to randomly pull values from lists. A list of values separated by `|` and enclosed in `{ }` will be randomly drawn from in a non-repeating fashion. Values that are surrounded by `_ _` will pull from a phrase list of the same name. Folders containing .txt phraselist files may be specified via
`--prompt_library_path`. The option may be specified multiple times. Built-in categories:
3d-term, adj-architecture, adj-beauty, adj-detailed, adj-emotion, adj-general, adj-horror, animal, art-movement,
art-site, artist, artist-botanical, artist-surreal, aspect-ratio, bird, body-of-water, body-pose, camera-brand,
camera-model, color, cosmic-galaxy, cosmic-nebula, cosmic-star, cosmic-term, dinosaur, eyecolor, f-stop,
fantasy-creature, fantasy-setting, fish, flower, focal-length, food, fruit, games, gen-modifier, hair, hd,
iso-stop, landscape-type, national-park, nationality, neg-weight, noun-beauty, noun-fantasy, noun-general,
noun-horror, occupation, photo-term, pop-culture, pop-location, punk-style, quantity, rpg-item, scenario-desc,
skin-color, spaceship, style, tree-species, trippy, world-heritage-site
Examples:
`imagine "a {red|black} dog" -r 2 --seed 0` will generate both "a red dog" and "a black dog"
`imagine "a {_color_} dog" -r 4 --seed 0` will generate four, different colored dogs. The colors will eb pulled from an included
phraselist of colors.
`imagine "a {_spaceship_|_fruit_|hot air balloon}. low-poly" -r 4 --seed 0` will generate images of spaceships or fruits or a hot air balloon
Credit to [noodle-soup-prompts](https://github.com/WASasquatch/noodle-soup-prompts/) where most, but not all, of the wordlists originate.
2022-10-09 01:34:35 +00:00
|
|
|
"vendored/noodle_soup_prompts/*.*",
|
2022-10-09 01:41:56 +00:00
|
|
|
"vendored/noodle_soup_prompts/LICENSE",
|
2022-09-18 13:07:07 +00:00
|
|
|
]
|
|
|
|
},
|
2022-09-08 03:59:30 +00:00
|
|
|
install_requires=[
|
2022-09-10 07:32:31 +00:00
|
|
|
"click",
|
2022-09-24 08:56:19 +00:00
|
|
|
"click-shell",
|
2022-09-16 15:18:50 +00:00
|
|
|
"protobuf != 3.20.2, != 3.19.5",
|
2022-09-20 04:15:38 +00:00
|
|
|
"fairscale>=0.4.4", # for vendored blip
|
2022-09-12 05:22:43 +00:00
|
|
|
"ftfy", # for vendored clip
|
2022-09-13 07:27:53 +00:00
|
|
|
"torch>=1.2.0",
|
2022-09-10 07:32:31 +00:00
|
|
|
"numpy",
|
|
|
|
"tqdm",
|
2022-09-11 07:35:57 +00:00
|
|
|
"diffusers",
|
2022-09-08 03:59:30 +00:00
|
|
|
"imageio==2.9.0",
|
2022-09-21 04:15:19 +00:00
|
|
|
"Pillow>=8.0.0",
|
2022-11-13 09:35:42 +00:00
|
|
|
"psutil",
|
2022-09-08 03:59:30 +00:00
|
|
|
"pytorch-lightning==1.4.2",
|
|
|
|
"omegaconf==2.1.1",
|
2022-11-24 08:48:05 +00:00
|
|
|
"open-clip-torch",
|
2022-11-26 22:52:28 +00:00
|
|
|
"requests",
|
2022-09-08 03:59:30 +00:00
|
|
|
"einops==0.3.0",
|
2022-09-20 04:15:38 +00:00
|
|
|
"timm>=0.4.12", # for vendored blip
|
2022-09-14 07:40:25 +00:00
|
|
|
"torchdiffeq",
|
2022-09-08 03:59:30 +00:00
|
|
|
"transformers==4.19.2",
|
|
|
|
"torchmetrics==0.6.0",
|
2022-09-10 07:32:31 +00:00
|
|
|
"torchvision>=0.13.1",
|
2022-09-08 03:59:30 +00:00
|
|
|
"kornia==0.6",
|
2022-09-13 07:27:53 +00:00
|
|
|
"realesrgan",
|
|
|
|
"gfpgan>=1.3.7",
|
2022-09-08 03:59:30 +00:00
|
|
|
],
|
|
|
|
)
|