Instructions to use greyDonald/HumanAwareDesignGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use greyDonald/HumanAwareDesignGeneration with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("greyDonald/HumanAwareDesignGeneration", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download flexdm/metadata.json from greyDonald/HumanAwareDesignGeneration: direct link, hf CLI and curl.
- Browser
- Download file 7.11 kB
-
https://huggingface.co/greyDonald/HumanAwareDesignGeneration/resolve/main/flexdm/metadata.json
- Command line
-
hf download hf://greyDonald/HumanAwareDesignGeneration/flexdm/metadata.json
-
curl -L -o metadata.json https://huggingface.co/greyDonald/HumanAwareDesignGeneration/resolve/main/flexdm/metadata.json
7.11 kB
| { | |
| "columns": { | |
| "type": { | |
| "type": "categorical", | |
| "input_dim": 6, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": 0 | |
| }, | |
| "left": { | |
| "type": "categorical", | |
| "input_dim": 64, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null | |
| }, | |
| "top": { | |
| "type": "categorical", | |
| "input_dim": 64, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null | |
| }, | |
| "width": { | |
| "type": "categorical", | |
| "input_dim": 64, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null | |
| }, | |
| "height": { | |
| "type": "categorical", | |
| "input_dim": 64, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null | |
| }, | |
| "opacity": { | |
| "type": "categorical", | |
| "input_dim": 8, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null | |
| }, | |
| "color": { | |
| "type": "categorical", | |
| "input_dim": 16, | |
| "shape": [ | |
| 3 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null, | |
| "loss_condition": { | |
| "key": "type", | |
| "mask": [ | |
| false, | |
| false, | |
| true, | |
| false, | |
| true, | |
| false | |
| ] | |
| } | |
| }, | |
| "image_embedding": { | |
| "type": "numerical", | |
| "shape": [ | |
| 512 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null, | |
| "loss_condition": { | |
| "key": "type", | |
| "mask": [ | |
| false, | |
| true, | |
| false, | |
| true, | |
| false, | |
| true | |
| ] | |
| } | |
| }, | |
| "text_embedding": { | |
| "type": "numerical", | |
| "shape": [ | |
| 512 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null, | |
| "loss_condition": { | |
| "key": "type", | |
| "mask": [ | |
| false, | |
| false, | |
| true, | |
| false, | |
| false, | |
| false | |
| ] | |
| } | |
| }, | |
| "font_family": { | |
| "type": "categorical", | |
| "input_dim": 35, | |
| "shape": [ | |
| 1 | |
| ], | |
| "is_sequence": true, | |
| "primary_label": null, | |
| "loss_condition": { | |
| "key": "type", | |
| "mask": [ | |
| false, | |
| false, | |
| true, | |
| false, | |
| false, | |
| false | |
| ] | |
| } | |
| } | |
| }, | |
| "vocabularies": { | |
| "length": [ | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5, | |
| 6, | |
| 7, | |
| 8, | |
| 9, | |
| 10, | |
| 11, | |
| 12, | |
| 13, | |
| 14, | |
| 15, | |
| 16, | |
| 17, | |
| 18, | |
| 19, | |
| 20, | |
| 21, | |
| 22, | |
| 23, | |
| 24, | |
| 25, | |
| 26, | |
| 27, | |
| 28, | |
| 29, | |
| 30, | |
| 31, | |
| 32, | |
| 33, | |
| 34, | |
| 35, | |
| 36, | |
| 37, | |
| 38, | |
| 39, | |
| 40, | |
| 41, | |
| 42, | |
| 43, | |
| 44, | |
| 45, | |
| 46, | |
| 47, | |
| 48, | |
| 49, | |
| 50 | |
| ], | |
| "group": [ | |
| "", | |
| "[UNK]", | |
| "SM", | |
| "HC", | |
| "MM", | |
| "SMA", | |
| "EO", | |
| "BG" | |
| ], | |
| "format": [ | |
| "", | |
| "[UNK]", | |
| "Instagram Story", | |
| "Instagram", | |
| "Facebook", | |
| "Facebook cover", | |
| "Twitter", | |
| "Facebook AD", | |
| "Poster", | |
| "Instagram AD", | |
| "Tumblr", | |
| "Image", | |
| "Pinterest", | |
| "Flayer", | |
| "FB event cover", | |
| "Postcard", | |
| "Invitation", | |
| "Youtube", | |
| "Email header", | |
| "Medium Rectangle", | |
| "Poster US", | |
| "Graphic", | |
| "Large Rectangle", | |
| "Card", | |
| "Logo", | |
| "Title", | |
| "Skyscraper", | |
| "Leaderboard", | |
| "Presentation", | |
| "Gift Certificate", | |
| "Youtube Thumbnail", | |
| "Business card", | |
| "VK Universal Post", | |
| "Book Cover", | |
| "Presentation Wide", | |
| "VK Community Cover", | |
| "Certificate", | |
| "Zoom Background", | |
| "VK Post with Button", | |
| "T-Shirt", | |
| "Instagram Highlight Cover", | |
| "Coupon", | |
| "IGTV Cover", | |
| "Album Cover", | |
| "Invoice", | |
| "Storyboard", | |
| "Schedule Planner", | |
| "Mood Board", | |
| "Menu", | |
| "Mind Map", | |
| "Label", | |
| "LinkedIn Cover", | |
| "Recipe Card", | |
| "Resume", | |
| "Ticket", | |
| "Brochure", | |
| "Proposal", | |
| "Snapchat Geofilter", | |
| "Twitch Offline Banner", | |
| "Snapchat Moment Filter", | |
| "Twitch Profile Banner", | |
| "Newsletter", | |
| "Infographic", | |
| "Mobile Presentation", | |
| "Photo Book", | |
| "Web Banner", | |
| "Gallery Image", | |
| "Letterhead", | |
| "Calendar" | |
| ], | |
| "canvas_width": [ | |
| -1, | |
| 1080, | |
| 1200, | |
| 940, | |
| 851, | |
| 360, | |
| 1920, | |
| 1190, | |
| 419, | |
| 600, | |
| 1024, | |
| 1600, | |
| 735, | |
| 2560, | |
| 3000, | |
| 1500, | |
| 300, | |
| 540, | |
| 1296, | |
| 336, | |
| 500, | |
| 595, | |
| 432, | |
| 560, | |
| 160, | |
| 1280, | |
| 728, | |
| 241, | |
| 1000, | |
| 1590, | |
| 792, | |
| 576, | |
| 537, | |
| 1008, | |
| 420, | |
| 1128, | |
| 396, | |
| 841, | |
| 800, | |
| 240, | |
| 635, | |
| 842 | |
| ], | |
| "canvas_height": [ | |
| -1, | |
| 1080, | |
| 1920, | |
| 315, | |
| 788, | |
| 628, | |
| 600, | |
| 504, | |
| 1683, | |
| 298, | |
| 500, | |
| 512, | |
| 1102, | |
| 1440, | |
| 200, | |
| 400, | |
| 250, | |
| 810, | |
| 1728, | |
| 1200, | |
| 280, | |
| 288, | |
| 90, | |
| 1055, | |
| 720, | |
| 768, | |
| 841, | |
| 142, | |
| 700, | |
| 612, | |
| 2560, | |
| 2000, | |
| 240, | |
| 216, | |
| 842, | |
| 1296, | |
| 2340, | |
| 654, | |
| 1600, | |
| 191, | |
| 297, | |
| 595, | |
| 480, | |
| 576, | |
| 320, | |
| 141, | |
| 380 | |
| ], | |
| "category": [ | |
| "", | |
| "[UNK]", | |
| "holidaysCelebration", | |
| "foodDrinks", | |
| "fashionStyle", | |
| "homeStuff", | |
| "handcraftArt", | |
| "businessFinance", | |
| "beauty", | |
| "leisureEntertainment", | |
| "natureWildlife", | |
| "educationScience", | |
| "technology", | |
| "medical", | |
| "sportExtreme", | |
| "realEstateBuilding", | |
| "socialActivityCharity", | |
| "travelsVacations", | |
| "pets", | |
| "religions", | |
| "citiesPlaces", | |
| "industry", | |
| "transportation", | |
| "kidsParents", | |
| "all" | |
| ], | |
| "type": [ | |
| "", | |
| "svgElement", | |
| "textElement", | |
| "imageElement", | |
| "coloredBackground", | |
| "maskElement" | |
| ], | |
| "font_family": [ | |
| "[UNK]", | |
| "DummyFont", | |
| "Montserrat", | |
| "Bebas Neue", | |
| "Raleway", | |
| "Josefin Sans", | |
| "Playfair Display", | |
| "Oswald", | |
| "Cantarell", | |
| "Abril Fatface", | |
| "Prompt", | |
| "Blogger", | |
| "Comfortaa", | |
| "Rubik", | |
| "Open Sans", | |
| "Roboto", | |
| "Libre Baskerville", | |
| "Dosis", | |
| "Quicksand", | |
| "Podkova", | |
| "Lato", | |
| "Cormorant Infant", | |
| "Amatic SC", | |
| "Fjalla One", | |
| "Arapey", | |
| "Playlist Script", | |
| "Baloo Tamma", | |
| "Graduate", | |
| "Kreon", | |
| "Titillium Web", | |
| "Nunito", | |
| "Rammetto One", | |
| "Anton", | |
| "Poiret One", | |
| "Alfa Slab One" | |
| ] | |
| }, | |
| "splits": { | |
| "train": 18587, | |
| "val": 2292, | |
| "test": 2248 | |
| }, | |
| "zero_based_length": true, | |
| "tensorflow_export_version": "2.11.0" | |
| } |