Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -215,8 +215,8 @@ def start_process(input1, input2, shape0_str, shape1_str, input_suffix=".pth"):
|
|
215 |
# 获取输出
|
216 |
example_output = traced_torch_model(example_input)
|
217 |
width_ratio = example_output.shape[2] / example_input.shape[2]
|
218 |
-
print_log(task_id, input2, "获得缩放倍率="+width_ratio+", 输出shape="+example_output.shape, "完成")
|
219 |
-
log+= "获得缩放倍率="+width_ratio+", 输出shape="+example_output.shape+"\n"
|
220 |
yield [], log
|
221 |
|
222 |
print_log(task_id, input2, "执行命令" + command, "开始")
|
|
|
215 |
# 获取输出
|
216 |
example_output = traced_torch_model(example_input)
|
217 |
width_ratio = example_output.shape[2] / example_input.shape[2]
|
218 |
+
print_log(task_id, input2, "获得缩放倍率="+ str(width_ratio+)", 输出shape="+str(list(example_output.shape)), "完成")
|
219 |
+
log+= print("获得缩放倍率="+str(width_ratio)+", 输出shape="+str(list(example_output.shape))+"\n")
|
220 |
yield [], log
|
221 |
|
222 |
print_log(task_id, input2, "执行命令" + command, "开始")
|