Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Xihui Liu authored Aug 27, 2021
1 parent 820b347 commit f2101d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
print(message)

# manipulation results after optimizing perturbations
visuals['optimized'] = open_edit_optimizer.get_latest_generated()[0]
manipulated_opt = open_edit_optimizer.open_edit_model(data, mode='manipulate', ori_cap=ori_txt, new_cap=new_txt, alpha=alpha)
visuals['optimized_manipulated'] = manipulated_opt[0]


visualizer.save_images(webpage, visuals, [opt.img_path], gray=True)
Expand Down

0 comments on commit f2101d7

Please sign in to comment.