Fix process_video

This commit is contained in:
James Betker 2020-10-21 11:08:12 -06:00
parent 3c6e600e48
commit 71c3820d2d

View File

@ -161,11 +161,8 @@ if __name__ == "__main__":
model.feed_data(data, need_GT=need_GT)
model.test()
visuals = model.get_current_visuals()['rlt']
if isinstance(model.fake_H, tuple):
visuals = model.fake_H[img_index].detach()
else:
visuals = model.fake_H.detach()
if recurrent_mode:
recurrent_entry = visuals
visuals = visuals.cpu().float()