from Util.CommonUtil import * # API地址 url = "http://192.168.1.21:7860" # 用户输入的源图 input_source_img = '../Image/1ae93e2587822c291362abf9504cb49ec.jpeg' # 输出图片 output_file = "../Out/Result.png" # 调用图生图 img2img(url, 28, 1, input_source_img, output_file)