Fix process_video
This commit is contained in:
parent
3c6e600e48
commit
71c3820d2d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user