生成128x128的图片测Style_score 为什么是这个结果 sk_pil = coords_render(preds[i], split=True, width=128, height=128, thickness=8, board=0)
因为风格分数模型不是在128*128的数据上训练的,这样评测会有很大的泛化误差。
但是用64x64会tensor形状不匹配
sk_pil = coords_render(preds[i], split=True, width=48, height=48, thickness=1, board=0) sk_pil = sk_pil.resize((113, 113))
用上述代码替换下面这行代码即可:
SDT/test.py
Line 94 in 339aa21
Activity
SupremeU commentedon Apr 1, 2025
sk_pil = coords_render(preds[i], split=True, width=128, height=128, thickness=8, board=0)
dailenson commentedon Apr 24, 2025
因为风格分数模型不是在128*128的数据上训练的,这样评测会有很大的泛化误差。
SupremeU commentedon Apr 24, 2025
但是用64x64会tensor形状不匹配
dailenson commentedon Apr 24, 2025
用上述代码替换下面这行代码即可:
SDT/test.py
Line 94 in 339aa21