1<!doctype html> 2<html 3 lang="en" 4 style=" 5 margin: 0; 6 padding: 0; 7 min-height: 100%; 8 display: flex; 9 flex-direction: column; 10 " 11> 12 <head> 13 <meta charset="utf-8" /> 14 <meta 15 name="viewport" 16 content="width=device-width, initial-scale=1, shrink-to-fit=no" 17 /> 18 19 <style> 20 :root { 21 --bg: white; 22 --col: #1f2937; 23 --bg-dark: #0b0f19; 24 --col-dark: #f3f4f6; 25 } 26 27 28 body { 29 background: var(--bg); 30 color: var(--col); 31 font-family: Arial, Helvetica, sans-serif; 32 } 33 34 @media (prefers-color-scheme: dark) { 35 body { 36 background: var(--bg-dark); 37 color: var(--col-dark); 38 } 39 } 40 </style> 41 42 <meta property="og:url" content="https://gradio.app/" /> 43 <meta property="og:type" content="website" /> 44 <meta property="og:image" content="" /> 45 <meta property="og:title" content="Gradio" /> 46 <meta 47 property="og:description" 48 content="" 49 /> 50 <meta name="twitter:card" content="summary_large_image" /> 51 <meta name="twitter:creator" content="@teamGradio" /> 52 <meta name="twitter:title" content="Gradio" /> 53 <meta 54 name="twitter:description" 55 content="" 56 /> 57 <meta name="twitter:image" content="" /> 58 59
59<script data-gradio-mode> 60 window.__gradio_mode__ = "app"; 61 window.iFrameResizer = { 62 heightCalculationMethod: "taggedElement" 63 }; 64 window.parent?.postMessage( 65 { type: "SET_SCROLLING", enabled: false }, 66 "*" 67 ); 68 </script>
68 69 70
70<script>window.gradio_config = {"version":"4.37.2","mode":"blocks","app_id":17307985675888964181,"dev_mode":false,"analytics_enabled":true,"components":[{"id":1,"type":"markdown","props":{"value":"\u003ccenter\u003e\u003cimg src=\u0027https://photo-maker.github.io/assets/logo.png\u0027 alt=\u0027PhotoMaker logo\u0027 style=\"width:80px; margin-bottom:10px\"\u003e\u003c/center\u003e","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":2,"type":"markdown","props":{"value":"\u003ch1 align=\"center\"\u003ePhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n \u003ch2\u003e[ð¥ð¥ News] We release PhotoMaker V2: Improved ID Fidelity and Better Controllability than PhotoMaker V1 \u003ca href=\"https://huggingface.co/spaces/TencentARC/PhotoMaker-V2\"\u003e[Try the ð¤ demo now!]\u003c/a\u003e\u003c/h2\u003e\n\u003c/div\u003e","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":3,"type":"markdown","props":{"value":"\u003cb\u003eOfficial ð¤ Gradio demo\u003c/b\u003e for \u003ca href=\u0027https://github.com/TencentARC/PhotoMaker\u0027 target=\u0027_blank\u0027\u003e\u003cb\u003ePhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding\u003c/b\u003e\u003c/a\u003e.\u003cbr\u003e\n\u003cbr\u003e\nFor stylization, you could use our other gradio demo [PhotoMaker-Style](https://huggingface.co/spaces/TencentARC/PhotoMaker-Style).\n\u003cbr\u003e\nâï¸âï¸âï¸[\u003cb\u003eImportant\u003c/b\u003e] Personalization steps:\u003cbr\u003e\n1ï¸â£ Upload images of someone you want to customize. One image is ok, but more is better. Although we do not perform face detection, the face in the uploaded image should \u003cb\u003eoccupy the majority of the image\u003c/b\u003e.\u003cbr\u003e\n2ï¸â£ Enter a text prompt, making sure to \u003cb\u003efollow the class word\u003c/b\u003e you want to customize with the \u003cb\u003etrigger word\u003c/b\u003e: `img`, such as: `man img` or `woman img` or `girl img`.\u003cbr\u003e\n3ï¸â£ Choose your preferred style template.\u003cbr\u003e\n4ï¸â£ Click the \u003cb\u003eSubmit\u003c/b\u003e button to start customizing.","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":4,"type":"row","props":{"variant":"default","visible":true,"equal_height":true,"show_progress":false,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":5,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":6,"type":"file","props":{"file_count":"multiple","file_types":["image"],"type":"filepath","label":"Drag (Select) 1 or more photos of your face","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"file","_selectable":false},"skip_api":false,"component_class_id":"fed677f4bbc735153dbb84b5ccf06aaa","key":null,"api_info":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"}},"items":{"$ref":"#/$defs/FileData"},"title":"ListFiles","type":"array"},"example_inputs":[{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf","meta":{"_type":"gradio.FileData"},"orig_name":"sample_file.pdf","url":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"}]},{"id":7,"type":"gallery","props":{"value":[],"format":"webp","label":"Your images","show_label":true,"container":true,"min_width":160,"visible":false,"elem_classes":[],"columns":5,"rows":1,"height":200,"allow_preview":true,"show_share_button":true,"show_download_button":true,"type":"filepath","name":"gallery","_selectable":false},"skip_api":false,"component_class_id":"bf8c4bb9c8ef325599dfcbde7ff71bd9","key":null,"api_info":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"GalleryImage":{"properties":{"image":{"$ref":"#/$defs/FileData"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Caption"}},"required":["image"],"title":"GalleryImage","type":"object"}},"items":{"$ref":"#/$defs/GalleryImage"},"title":"GalleryData","type":"array"},"example_inputs":[{"image":{"path":"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png","meta":{"_type":"gradio.FileData"},"orig_name":"bus.png","url":"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"}}]},{"id":8,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":false,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":9,"type":"button","props":{"value":"Remove and upload new ones","variant":"secondary","size":"sm","visible":true,"interactive":true,"elem_classes":[],"show_api":false,"name":"button","_selectable":false},"skip_api":true,"component_class_id":"683b6fcca448a942c7223d23f966c51f","key":null},{"id":10,"type":"textbox","props":{"lines":1,"max_lines":20,"placeholder":"A photo of a [man/woman img]...","label":"Prompt","info":"Try something like \u0027a photo of a man/woman img\u0027, \u0027img\u0027 is the trigger word.","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":false,"autoscroll":true,"elem_classes":[],"type":"text","rtl":false,"show_copy_button":false,"name":"textbox","_selectable":false},"skip_api":false,"component_class_id":"d0491bb0fbd427bdb2a4549c4d1ac869","key":null,"api_info":{"type":"string"},"example_inputs":"Hello!!"},{"id":11,"type":"dropdown","props":{"choices":[["(No style)","(No style)"],["Cinematic","Cinematic"],["Disney Charactor","Disney Charactor"],["Digital Art","Digital Art"],["Photographic (Default)","Photographic (Default)"],["Fantasy art","Fantasy art"],["Neonpunk","Neonpunk"],["Enhance","Enhance"],["Comic book","Comic book"],["Lowpoly","Lowpoly"],["Line art","Line art"]],"value":"Photographic (Default)","type":"value","allow_custom_value":false,"filterable":true,"label":"Style template","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"dropdown","_selectable":false},"skip_api":false,"component_class_id":"f52d4d45659eb5b35ab8714901ae03a5","key":null,"api_info":{"type":"string","enum":["(No style)","Cinematic","Disney Charactor","Digital Art","Photographic (Default)","Fantasy art","Neonpunk","Enhance","Comic book","Lowpoly","Line art"]},"example_inputs":"(No style)"},{"id":12,"type":"button","props":{"value":"Submit","variant":"secondary","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":13,"type":"accordion","props":{"label":"Advanced Options","open":false,"visible":true,"name":"accordion"},"skip_api":true,"component_class_id":"b49c1903c3591b866d0adab5a2f6e48b","key":null},{"id":14,"type":"textbox","props":{"value":"nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry","lines":1,"max_lines":20,"placeholder":"low quality","label":"Negative Prompt","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":false,"autoscroll":true,"elem_classes":[],"type":"text","rtl":false,"show_copy_button":false,"name":"textbox","_selectable":false},"skip_api":false,"component_class_id":"d0491bb0fbd427bdb2a4549c4d1ac869","key":null,"api_info":{"type":"string"},"example_inputs":"Hello!!"},{"id":15,"type":"slider","props":{"minimum":20,"maximum":100,"value":50,"step":1,"label":"Number of sample steps","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 20 and 100"},"example_inputs":20},{"id":16,"type":"slider","props":{"minimum":15,"maximum":50,"value":20,"step":1,"label":"Style strength (%)","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 15 and 50"},"example_inputs":15},{"id":17,"type":"slider","props":{"minimum":1,"maximum":4,"value":2,"step":1,"label":"Number of output images","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 1 and 4"},"example_inputs":1},{"id":18,"type":"slider","props":{"minimum":0.1,"maximum":10.0,"value":5,"step":0.1,"label":"Guidance scale","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 0.1 and 10.0"},"example_inputs":0.1},{"id":19,"type":"slider","props":{"minimum":0,"maximum":2147483647,"value":0,"step":1,"label":"Seed","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 0 and 2147483647"},"example_inputs":0},{"id":20,"type":"checkbox","props":{"value":true,"label":"Randomize seed","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"name":"checkbox","_selectable":false},"skip_api":false,"component_class_id":"b2c2c8b2ac4aa89c0f17edb93f9d0c1b","key":null,"api_info":{"type":"boolean"},"example_inputs":true},{"id":21,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":22,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":23,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":24,"type":"gallery","props":{"value":[],"format":"webp","label":"Generated Images","show_label":true,"container":true,"min_width":160,"visible":true,"elem_classes":[],"columns":2,"allow_preview":true,"show_share_button":true,"show_download_button":true,"type":"filepath","name":"gallery","_selectable":false},"skip_api":false,"component_class_id":"bf8c4bb9c8ef325599dfcbde7ff71bd9","key":null,"api_info":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"GalleryImage":{"properties":{"image":{"$ref":"#/$defs/FileData"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Caption"}},"required":["image"],"title":"GalleryImage","type":"object"}},"items":{"$ref":"#/$defs/GalleryImage"},"title":"GalleryData","type":"array"},"example_inputs":[{"image":{"path":"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png","meta":{"_type":"gradio.FileData"},"orig_name":"bus.png","url":"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png"}}]},{"id":25,"type":"markdown","props":{"value":"### Usage tips of PhotoMaker\n1. Upload more photos of the person to be customized to **improve ID fidelty**. If the input is Asian face(s), maybe consider adding \u0027asian\u0027 before the class word, e.g., `asian woman img`\n2. When stylizing, does the generated face look too realistic? Try switching to our **other gradio demo** [PhotoMaker-Style](https://huggingface.co/spaces
70/TencentARC/PhotoMaker-Style). Adjust the **Style strength** to 30-50, the larger the number, the less ID fidelty, but the stylization ability will be better.\n3. For **faster** speed, reduce the number of generated images and sampling steps. However, please note that reducing the sampling steps may compromise the ID fidelity.","label":"Usage tips of PhotoMaker","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":false,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":26,"type":"dataset","props":{"component_props":[{"file_count":"multiple","file_types":["image"],"type":"filepath","label":"Drag (Select) 1 or more photos of your face","show_label":true,"container":true,"scale":null,"min_width":160,"height":null,"interactive":null,"visible":true,"elem_id":null,"elem_classes":[],"key":null},{"lines":1,"max_lines":20,"placeholder":"A photo of a [man/woman img]...","label":"Prompt","info":"Try something like \u0027a photo of a man/woman img\u0027, \u0027img\u0027 is the trigger word.","show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"autofocus":false,"autoscroll":true,"elem_classes":[],"key":null,"type":"text","text_align":null,"rtl":false,"show_copy_button":false},{"choices":[["(No style)","(No style)"],["Cinematic","Cinematic"],["Disney Charactor","Disney Charactor"],["Digital Art","Digital Art"],["Photographic (Default)","Photographic (Default)"],["Fantasy art","Fantasy art"],["Neonpunk","Neonpunk"],["Enhance","Enhance"],["Comic book","Comic book"],["Lowpoly","Lowpoly"],["Line art","Line art"]],"type":"value","multiselect":null,"allow_custom_value":false,"max_choices":null,"filterable":true,"label":"Style template","info":null,"show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"elem_classes":[],"key":null},{"lines":1,"max_lines":20,"placeholder":"low quality","label":"Negative Prompt","info":null,"show_label":true,"container":true,"scale":null,"min_width":160,"interactive":null,"visible":true,"elem_id":null,"autofocus":false,"autoscroll":true,"elem_classes":[],"key":null,"type":"text","text_align":null,"rtl":false,"show_copy_button":false}],"samples":[["scarlett_0.jpg, scarlett_1.jpg, scarlett_2.jpg, scarlett_3.jpg","instagram photo, portrait photo of a woman img, colorful, perfect face, natural skin, hard shadows, film grain","(No style)","(asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth"],["newton_0.jpg, newton_1.jpg, newton_3.jpg","sci-fi, closeup portrait photo of a man img wearing the sunglasses in Iron man suit, face, slim body, high quality, film grain","(No style)","(asymmetry, worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth"]],"headers":["Drag (Select) 1 or more photos of your face","Prompt","Style template","Negative Prompt"],"type":"index","samples_per_page":10,"visible":true,"elem_classes":[],"container":true,"min_width":160,"name":"dataset","_selectable":false,"components":["file","textbox","dropdown","textbox"],"component_ids":[6,10,11,14]},"skip_api":false,"component_class_id":"c72c93119b395a3f608fa8223dcae838","key":null,"api_info":{"type":"integer","description":"index of selected example"},"example_inputs":0},{"id":27,"type":"markdown","props":{"value":"If PhotoMaker is helpful, please help to â the \u003ca href=\u0027https://github.com/TencentARC/PhotoMaker\u0027 target=\u0027_blank\u0027\u003eGithub Repo\u003c/a\u003e. Thanks! \n[](https://github.com/TencentARC/PhotoMaker)\n---\nð **Citation**\n\u003cbr\u003e\nIf our work is useful for your research, please consider citing:\n\n```bibtex\n@inproceedings{li2023photomaker,\n title={PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding},\n author={Li, Zhen and Cao, Mingdeng and Wang, Xintao and Qi, Zhongang and Cheng, Ming-Ming and Shan, Ying},\n booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},\n year={2024}\n}\n```\nð **License**\n\u003cbr\u003e\nApache-2.0 LICENSE. Please refer to the [LICENSE file](https://huggingface.co/TencentARC/PhotoMaker/blob/main/LICENSE) for details.\n\nð§ **Contact**\n\u003cbr\u003e\nIf you have any questions, please feel free to reach me out at \u003cb\[email protected]\u003c/b\u003e.","show_label":true,"rtl":false,"latex_delimiters":[{"left"
70:"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"}],"css":"\n.gradio-container {width: 85% !important}\n","connect_heartbeat":false,"js":null,"head":null,"title":"Gradio","space_id":"TencentARC/PhotoMaker","enable_queue":true,"show_error":false,"show_api":true,"is_colab":false,"max_file_size":null,"stylesheets":["https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600\u0026display=swap","https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600\u0026display=swap"],"theme":"default","protocol":"sse_v3","body_css":{"body_background_fill":"white","body_text_color":"#1f2937","body_background_fill_dark":"#0b0f19","body_text_color_dark":"#f3f4f6"},"fill_height":false,"theme_hash":"aa3cf5a76ff4ff3d05b407358c4a85aa7a55a3f5751b53d49cba0b8d49a6c148","layout":{"id":0,"children":[{"id":1},{"id":2},{"id":3},{"id":4,"children":[{"id":5,"children":[{"id":6},{"id":7},{"id":8,"children":[{"id":9}]},{"id":22,"children":[{"id":10},{"id":11}]},{"id":12},{"id":13,"children":[{"id":21,"children":[{"id":14},{"id":15},{"id":16},{"id":17},{"id":18},{"id":19},{"id":20}]}]}]},{"id":23,"children":[{"id":24},{"id":25}]}]},{"id":26},{"id":27}]},"dependencies":[{"id":0,"targets":[[9,"click"]],"inputs":[],"outputs":[6],"backend_fn":false,"js":"() =\u003e [null]","queue":false,"api_name":"js_fn","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":1,"targets":[[6,"upload"]],"inputs":[6],"outputs":[7,8,6],"backend_fn":true,"js":null,"queue":true,"api_name":"swap_to_gallery","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":2,"targets":[[9,"click"]],"inputs":[],"outputs":[7,8,6],"backend_fn":true,"js":null,"queue":true,"api_name":"remove_back_to_files","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":3,"targets":[[12,"click"]],"inputs":[],"outputs":[25],"backend_fn":true,"js":null,"queue":true,"api_name":"remove_tips","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":4,"targets":[[null,"then"]],"inputs":[19,20],"outputs":[19],"backend_fn":true,"js":null,"queue":false,"api_name":false,"scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":3,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":5,"targets":[[null,"then"]],"inputs":[6,10,14,11,15,16,17,18,19],"outputs":[24,25],"backend_fn":true,"js":null,"queue":true,"api_name":"generate_image","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":4,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":true,"rendered_in":null},{"id":6,"targets":[[26,"click"]],"inputs":[26],"outputs":[6,10,11,14],"backend_fn":true,"js":null,"queue":false,"api_name":"load_example","scroll_to_output":false,"show_progress":"hidden","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":7,"targets":[[null,"then"]],"inputs":[26,6,10,11,14],"outputs":[7,8,6],"backend_fn":true,"js":null,"queue":true,"api_name":"load_example_1","scroll_to_output":false,"show_progress":"full","every":null,"batch":false,"max_batch_size":4,"cancels":[],"types":{"continuous":false,"generator":true,"cancel":false},"collects_event_data":false,"trigger_after":6,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null}],"root":"https://tencentarc-photomaker.hf.space"};</script>
70<script>window.gradio_api_info = {"named_endpoints":{"/swap_to_gallery":{"parameters":[{"label":"Drag (Select) 1 or more photos of your face","parameter_name":"images","parameter_has_default":false,"parameter_default":null,"type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"}},"items":{"$ref":"#/$defs/FileData"},"title":"ListFiles","type":"array"},"python_type":{"type":"List[filepath]","description":""},"component":"File","example_input":[{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf","meta":{"_type":"gradio.FileData"},"orig_name":"sample_file.pdf","url":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"}]}],"returns":[{"label":"Your images","type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"GalleryImage":{"properties":{"image":{"$ref":"#/$defs/FileData"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Caption"}},"required":["image"],"title":"GalleryImage","type":"object"}},"items":{"$ref":"#/$defs/GalleryImage"},"title":"GalleryData","type":"array"},"python_type":{"type":"List[Dict(image: filepath, caption: str | None)]","description":""},"component":"Gallery"},{"label":"Drag (Select) 1 or more photos of your face","type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"}},"items":{"$ref":"#/$defs/FileData"},"title":"ListFiles","type":"array"},"python_type":{"type":"List[filepath]","description":""},"component":"File"}],"show_api":true},"/remove_back_to_files":{"parameters":[],"returns":[{"label":"Your images","type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"GalleryImage":{"properties":{"image":{"$ref":"#/$defs/FileData"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Caption"}},"required":["image"],"title":"GalleryImage","type":"object"}},"items":{"$ref":"#/$defs/GalleryImage"},"title":"GalleryData","type":"array"},"python_type":{"type":"List[Dict(image: filepath, caption: str | None)]","description":""},"component":"Gallery"},{"label":"Drag (Select) 1 or more photos of your face","type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"}},"items":{"$ref":"#/$defs/FileData"},"title":"ListFiles","type":"array"},"python_type":{"type":"List[filepath]","description":""},"component":"File"}],"show_api":true},"/remove_tips":{"parameters":[],"returns":[{"label":"Usage tips of PhotoMaker","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"}],"show_api":true},"/generate_image":{"parameters":[{"label":"Drag (Select) 1 or more photos of your face","parameter_name":"upload_images","parameter_has_default":false,"parameter_default":null,"type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"}},"items":{"$ref":"#/$defs/FileData"},"title":"ListFiles","type":"array"},"python_type":{"type":"List[filepath]","description":""},"component":"File","example_input":[{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf","meta":{"_type":"gradio.FileData"},"orig_name":"sample_file.pdf","url":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"}]},{"label":"Prompt","parameter_name":"prompt","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"Negative Prompt","parameter_name":"negative_prompt","parameter_has_default":true,"parameter_default":"nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"Style template","parameter_name":"style_name","parameter_has_default":true,"parameter_default":"Photographic (Default)","type":{"type":"string","enum":["(No style)","Cinematic","Disney Charactor","Digital Art","Photographic (Default)","Fantasy art","Neonpunk","Enhance","Comic book","Lowpoly","Line art"]},"python_type":{"type":"Literal[\u0027(No style)\u0027, \u0027Cinematic\u0027, \u0027Disney Charactor\u0027, \u0027Digital Art\u0027, \u0027Photographic (Default)\u0027, \u0027Fantasy art\u0027, \u0027Neonpunk\u0027, \u0027En
70hance\u0027, \u0027Comic book\u0027, \u0027Lowpoly\u0027, \u0027Line art\u0027]","description":""},"component":"Dropdown","example_input":"(No style)"},{"label":"Number of sample steps","parameter_name":"num_steps","parameter_has_default":true,"parameter_default":50,"type":{"type":"number","description":"numeric value between 20 and 100"},"python_type":{"type":"float","description":"numeric value between 20 and 100"},"component":"Slider","example_input":20},{"label":"Style strength (%)","parameter_name":"style_strength_ratio","parameter_has_default":true,"parameter_default":20,"type":{"type":"number","description":"numeric value between 15 and 50"},"python_type":{"type":"float","description":"numeric value between 15 and 50"},"component":"Slider","example_input":15},{"label":"Number of output images","parameter_name":"num_outputs","parameter_has_default":true,"parameter_default":2,"type":{"type":"number","description":"numeric value between 1 and 4"},"python_type":{"type":"float","description":"numeric value between 1 and 4"},"component":"Slider","example_input":1},{"label":"Guidance scale","parameter_name":"guidance_scale","parameter_has_default":true,"parameter_default":5,"type":{"type":"number","description":"numeric value between 0.1 and 10.0"},"python_type":{"type":"float","description":"numeric value between 0.1 and 10.0"},"component":"Slider","example_input":0.1},{"label":"Seed","parameter_name":"seed","parameter_has_default":true,"parameter_default":0,"type":{"type":"number","description":"numeric value between 0 and 2147483647"},"python_type":{"type":"float","description":"numeric value between 0 and 2147483647"},"component":"Slider","example_input":0}],"returns":[{"label":"Generated Images","type":{"$defs":{"FileData":{"properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"GalleryImage":{"properties":{"image":{"$ref":"#/$defs/FileData"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Caption"}},"required":["image"],"title":"GalleryImage","type":"object"}},"items":{"$ref":"#/$defs/GalleryImage"},"title":"GalleryData","type":"array"},"python_type":{"type":"List[Dict(image: filepath, caption: str | None)]","description":""},"component":"Gallery"},{"label":"Usage tips of PhotoMaker","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Markdown"}],"show_api":true}},"unnamed_endpoints":{}};</script>
70 71 72 <link rel="preconnect" href="https://fonts.googleapis.com" /> 73 <link 74 rel="preconnect" 75 href="https://fonts.gstatic.com" 76 crossorigin="anonymous" 77 /> 78
78<script 79 src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" 80 async 81 ></script>
81 82
82<script type="module" crossorigin src="./assets/index-CFkTeYR6.js"></script>
82 83 <link rel="stylesheet" crossorigin href="./assets/index-DQ_Hu8W_.css"> 84 </head> 85 86 <body 87 style=" 88 width: 100%; 89 margin: 0; 90 padding: 0; 91 display: flex; 92 flex-direction: column; 93 flex-grow: 1; 94 " 95 > 96 <gradio-app 97 control_page_title="true" 98 embed="false" 99 eager="true" 100 style="display: flex; flex-direction: column; flex-grow: 1" 101 > 102 </gradio-app> 103
103<script> 104 const ce = document.getElementsByTagName("gradio-app"); 105 106 if (ce[0]) { 107 ce[0].addEventListener("domchange", () => { 108 document.body.style.padding = "0"; 109 }); 110 document.body.style.padding = "0"; 111 } 112 </script>
112 113 </body> 114</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.