Skip to content

Commit 3f83425

Browse files
author
Andrey Ryabtsev
committed
training on real works (fix one more import)
1 parent d5c4b23 commit 3f83425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def compose_image_withshift(alpha_pred,fg_pred,bg,seg):
3131

3232
image_sh[t,...]=fg_pred_sh*alpha_pred_sh + (1-alpha_pred_sh)*bg[t,...]
3333

34-
return Variable(image_sh.cuda())
34+
return torch.autograd.Variable(image_sh.cuda())
3535

3636
def get_bbox(mask,R,C):
3737
where = np.array(np.where(mask))

0 commit comments

Comments
 (0)