File size: 675 Bytes
e75ac26 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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("")
|