Spaces:
Paused
Paused
ResearcherXman commited on
Commit ·
2767034
1
Parent(s): 1d422fe
add spring festival style
Browse filesFiles changed (3)
- .DS_StoreDeleted
- app.py+4-2
- style_template.py+5
35 unmodified lines36373839404142143 unmodified lines186187188189190191192240 unmodified lines43343443543643743835 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32STYLE_NAMES = list(styles.keys())DEFAULT_STYLE_NAME = "Watercolor"enable_lcm_arg = False# download checkpoints143 unmodified lines"./examples/yann-lecun_resize.jpg",None,"a man","Snow","(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",],[240 unmodified linesdescription = r"""<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/InstantID/InstantID' target='_blank'><b>InstantID: Zero-shot Identity-Preserving Generation in Seconds</b></a>.<br>How to use:<br>1. Upload an image with a face. For images with multiple faces, we will only detect the largest face. Ensure the face is not too small and is clearly visible without significant obstructions or blurring.2. (Optional) You can upload another image as a reference for the face pose. If you don't, we will use the first detected face image to extract facial landmarks. If you use a cropped face at step 1, it is recommended to upload it to define a new face pose.35 unmodified lines36373839404142143 unmodified lines186187188189190191192240 unmodified lines43343443543643743843944035 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32STYLE_NAMES = list(styles.keys())DEFAULT_STYLE_NAME = "Spring Festival"enable_lcm_arg = False# download checkpoints143 unmodified lines"./examples/yann-lecun_resize.jpg",None,"a man","Spring Festival","(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",],[240 unmodified linesdescription = r"""<b>Official 🤗 Gradio demo</b> for <a href='https://github.com/InstantID/InstantID' target='_blank'><b>InstantID: Zero-shot Identity-Preserving Generation in Seconds</b></a>.<br>We are organizing a Spring Festival event with HuggingFace from 2.7 to 2.25, and you can now generate pictures of Spring Festival costumes. Happy Dragon Year 🐲 ! Share the joy with your family.<br>How to use:<br>1. Upload an image with a face. For images with multiple faces, we will only detect the largest face. Ensure the face is not too small and is clearly visible without significant obstructions or blurring.2. (Optional) You can upload another image as a reference for the face pose. If you don't, we will use the first detected face image to extract facial landmarks. If you use a cropped face at step 1, it is recommended to upload it to define a new face pose.
3 unmodified lines4567893 unmodified lines"prompt": "{prompt}","negative_prompt": "",},{"name": "Watercolor","prompt": "watercolor painting, {prompt}. vibrant, beautiful, painterly, detailed, textural, artistic",3 unmodified lines45678910111213143 unmodified lines"prompt": "{prompt}","negative_prompt": "",},{"name": "Spring Festival","prompt": "Flat illustration, a Chinese {prompt}, ancient style, wearing a red cloth, smile face, white skin, clean background, fireworks blooming, red lanterns","negative_prompt": "photo, deformed, black and white, realism, disfigured, low contrast, realistic, cropped, worst quality, missing fingers, extra digit, jpeg artifacts, signature, multiple, (lowres, low quality, worst quality:1.2)",},{"name": "Watercolor","prompt": "watercolor painting, {prompt}. vibrant, beautiful, painterly, detailed, textural, artistic",
.DS_StoreDeleted
app.py+4-2
style_template.py+5