Resolved merge conflicts

This commit is contained in:
Isulion
2024-11-01 01:39:36 +01:00
3 changed files with 90 additions and 0 deletions
+4
View File
@@ -35,3 +35,7 @@ Use this example workflow to get started:
Advanced Mode for More Flexibility:
![Example_Isulion_Workflow_Split](https://github.com/user-attachments/assets/e578ff7a-0c03-47a1-900f-a7e209a64914)
Chimere Animals Workflow
![workflowAnimals](https://github.com/user-attachments/assets/100cb116-c6ef-43cf-b5d3-d7782949ad9c)
+43
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import random
from nodes import NODE_CLASS_MAPPINGS
@@ -38,3 +39,45 @@ class IsulionAnimalRandom:
NODE_CLASS_MAPPINGS.update({
"IsulionAnimalRandom": IsulionAnimalRandom
})
=======
import random
from nodes import NODE_CLASS_MAPPINGS
class IsulionAnimalRandom:
animals = [
'Dog','Cat','Horse','Cow','Chicken','Pig','Sheep','Goat','Lion','Tiger','Elephant','Bear','Wolf','Fox','Deer','Rabbit','Kangaroo','Giraffe','Zebra','Monkey','Chimpanzee','Gorilla','Orangutan','Panda','Koala','Hippopotamus','Rhinoceros','Crocodile','Alligator','Eagle','Hawk','Falcon','Owl','Penguin','Dolphin','Whale','Shark','Octopus','Squid','Jellyfish','Crab','Lobster','Clownfish','Sea Turtle','Frog','Toad','Snake','Lizard','Gecko','Tortoise','Camel','Donkey','Bat','Rat','Mouse','Squirrel','Chipmunk','Porcupine','Hedgehog','Skunk','Raccoon','Otter','Seal','Walrus','Polar Bear','Grizzly Bear','Cheetah','Leopard','Jaguar','Antelope','Buffalo','Bison','Moose','Reindeer','Mole','Platypus','Echidna','Parrot','Peacock','Swan','Duck','Goose','Turkey','Flamingo','Pelican','Seagull','Sparrow','Pigeon','Crow','Magpie','Woodpecker','Hummingbird','Butterfly','Bee','Ant','Spider','Scorpion','Worm','Snail','Slug'
]
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"randomize": (["enable", "disable"],),
"seed": ("INT", {"default": 0, "min": 0, "max": 999999999}),
"animal": (cls.animals,)
}
}
RETURN_TYPES = ("Animal", "Seed",) # Two outputs: prompt string and seed
FUNCTION = "random_animal"
CATEGORY = "Art/Styles"
def random_animal(self, randomize, seed, animal):
if randomize == "enable":
# Set seed for reproducibility if provided
if seed is not None and seed > 0:
random.seed(seed)
else:
seed = random.randint(0, 999999999)
random.seed(seed)
# Randomly select from predefined lists
animal = random.choice(self.animals)
return (f"{animal}\n", animal, seed)
# Register the node with ComfyUI
NODE_CLASS_MAPPINGS.update({
"IsulionAnimalRandom": IsulionAnimalRandom
})
>>>>>>> 5eeae9531c3a965abf17b4d90ddd14ef8e64ed66
+43
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import random
from nodes import NODE_CLASS_MAPPINGS
@@ -38,3 +39,45 @@ class IsulionCuteAnimalRandom:
NODE_CLASS_MAPPINGS.update({
"IsulionCuteAnimalRandom": IsulionCuteAnimalRandom
})
=======
import random
from nodes import NODE_CLASS_MAPPINGS
class IsulionCuteAnimalRandom:
animals = [
'Red Panda','Koala','Fennec Fox','Pygmy Marmoset','Quokka','Sea Otter','Harp Seal Pup','Panda Cub','Penguin Chick','Hedgehog','Axolotl','Sloth','Rabbit','Kitten','Puppy','Meerkat','Sugar Glider','Chinchilla','Slow Loris','Hamster','Red Fox Kit','Lamb','Piglet','Duckling','Pygmy Hippo','Baby Giraffe','Baby Alpaca','Otter Pup','Corgi Puppy','Golden Retriever Puppy','Seal Pup','Snow Leopard Cub','Tiger Cub','Lion Cub','Baby Gorilla','Baby Orangutan','Pygmy Goat','Fawn (Baby Deer)','Ferret','Platypus','Kangaroo Joey','Wallaby','Dik-Dik','Serval Kitten','Caracal Kitten','Clouded Leopard Cub','Red Squirrel','Chipmunk','Prairie Dog','Arctic Fox','Polar Bear Cub','Bottlenose Dolphin Calf','Beluga Whale Calf','Manatee Calf','Baby Skunk','Raccoon Kit','Baby Opossum','Baby Echidna (Puggle)','Baby Tapir','GiantPanda Cub','Baby Hippo','Baby Rhino','Baby Zebra','Baby Elephant Seal','Baby Wombat','Baby Emu','Baby Kiwi Bird','Baby Flamingo','Cygnet (Baby Swan)','Baby Tortoise','Baby Alligator','Baby Crocodile','Baby Chameleon','Baby Iguana','Baby Frog','Baby Toad','Baby Gecko','Ring-tailed Lemur','Sifaka Lemur','Mouse Lemur','Bush Baby','PygmyPossum','Baby Mole','Baby Bat','Leveret (Baby Hare)','Baby Mole Rat','Baby Porcupine','Baby Badger','Pygmy Rabbit','Baby Seal','Baby Puffin','Owlet (Baby Owl)','Hoglet(Baby Hedgehog)','Baby Armadillo','Baby Pangolin','Baby Okapi','Baby Cheetah','Baby Ocelot','Baby Lynx','Baby Tasmanian Devil'
]
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"randomize": (["enable", "disable"],),
"seed": ("INT", {"default": 0, "min": 0, "max": 999999999}),
"animal": (cls.animals,)
}
}
RETURN_TYPES = ("Animal", "Seed",) # Two outputs: prompt string and seed
FUNCTION = "random_animal"
CATEGORY = "Art/Styles"
def random_animal(self, randomize, seed, animal):
if randomize == "enable":
# Set seed for reproducibility if provided
if seed is not None and seed > 0:
random.seed(seed)
else:
seed = random.randint(0, 999999999)
random.seed(seed)
# Randomly select from predefined lists
animal = random.choice(self.animals)
return (f"{animal}\n", animal, seed)
# Register the node with ComfyUI
NODE_CLASS_MAPPINGS.update({
"IsulionCuteAnimalRandom": IsulionCuteAnimalRandom
})
>>>>>>> 5eeae9531c3a965abf17b4d90ddd14ef8e64ed66