controlnet_dev / model_compare /gen_markdown.py
takuma104's picture
add scripts and markdown table
e75ac26
raw
history blame
675 Bytes
import sys
output_types = sys.argv[1:]
print("## ControlNet Canny Comparison")
print("")
# header
print("|seed|", end="")
for ot in output_types:
print(f"{ot}|", end="")
print("")
print("|", end="")
for _ in range(len(output_types) + 1):
print("---|", end="")
print("")
def get_url(path):
#url = "./canny/"
url = 'https://huggingface.co/takuma104/controlnet_dev/resolve/main/model_compare/canny/'
return url + path
for seed in range(32):
print(f"|{seed}|", end="")
for ot in output_types:
url = get_url(path=f"{ot}/output_{seed:02d}.png")
print(f'<a href="{url}"><img width="128" src="{url}"/></a>|', end="")
print("")