mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-09 21:12:36 +08:00
From Server
This commit is contained in:
parent
7294ab976d
commit
2c933106e5
@ -1,5 +1,5 @@
|
||||
MC1: #d1a443 - peru, MC2: #16b3d8 - darkturquoise, MC3: #c0e5ed - powderblue, MC4: #5f870f - olivedrab
|
||||
AN1: #b7d143 - yellowgreen, AN2: #d15d43 - indianred
|
||||
T1: #43d1a4 - mediumaquamarine, T2: #a443d1 - darkorchid
|
||||
C1: #4370d1 - royalblue, C2: #d83b16 - orangered
|
||||
MO1: #d1c4a6 - tan, MO2: #9ecdd8 - lightsteelblue, MO3: #e0ebed - lavender, MO4: #7b8763 - gray
|
||||
MC1: #d0a443 - peru, MC2: #15b3d8 - darkturquoise, MC3: #c0e5ed - powderblue, MC4: #5f860f - olivedrab
|
||||
AN1: #b6d043 - yellowgreen, AN2: #d05e43 - indianred
|
||||
T1: #43d0a4 - mediumaquamarine, T2: #a443d0 - darkorchid
|
||||
C1: #436fd0 - royalblue, C2: #d83a15 - orangered
|
||||
MO1: #d0c3a6 - tan, MO2: #9ecdd8 - lightsteelblue, MO3: #e0ebed - lavender, MO4: #7a8662 - gray
|
||||
|
||||
@ -79,7 +79,7 @@ class extract_rainbow():
|
||||
monochromatic3 = self.rgb_to_hex(self.hsv_to_rgb((hsv[0], hsv[1]*0.7, hsv[2])))
|
||||
return monochromatic1, monochromatic2, monochromatic3
|
||||
|
||||
def main(self,tensor):
|
||||
def main(self,image):
|
||||
# Load image and get most common colors
|
||||
hex_colors = self.get_most_common_colors(image)
|
||||
|
||||
@ -132,4 +132,4 @@ class extract_rainbow():
|
||||
|
||||
if __name__ == '__main__':
|
||||
rnbw = extract_rainbow()
|
||||
rnbw.main()
|
||||
rnbw.main()
|
||||
|
||||
File diff suppressed because one or more lines are too long
6
test_input.json.save
Normal file
6
test_input.json.save
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user