Add Mistral, Qwen, Gemini support; Fix minor bugs
This commit is contained in:
@@ -328,6 +328,9 @@ def check_structure_sim(src_path, tgt_path):
|
||||
Check if the structure of the two images are similar
|
||||
gimp:2a729ded-3296-423d-aec4-7dd55ed5fbb3
|
||||
"""
|
||||
if src_path is None or tgt_path is None:
|
||||
return 0.
|
||||
|
||||
img_src = Image.open(src_path)
|
||||
img_tgt = Image.open(tgt_path)
|
||||
structure_same = structure_check_by_ssim(img_src, img_tgt)
|
||||
|
||||
Reference in New Issue
Block a user