自定义宽高
This commit is contained in:
@@ -310,6 +310,8 @@ def main_dev(opt):
|
|||||||
|
|
||||||
# 生成图片数
|
# 生成图片数
|
||||||
batch_size = task['number']
|
batch_size = task['number']
|
||||||
|
opt.H = task['height'] if task['height'] else 256
|
||||||
|
opt.W = task['width'] if task['width'] else 256
|
||||||
|
|
||||||
if not opt.from_file:
|
if not opt.from_file:
|
||||||
prompt = task['prompt']
|
prompt = task['prompt']
|
||||||
|
Reference in New Issue
Block a user