avBuffer / UNet3plus_pth

UNet3+/ UNet++/UNet, used in Deep Automatic Portrait Matting in Pytorth
233 stars 39 forks source link

IndexError: tuple index out of range #18

Open Universcle opened 1 year ago

Universcle commented 1 year ago

error on 21line of eval.py: mask_pred = net(imgs)

Huaqq commented 1 year ago

I also encountered this error, could you please tell me how you solved it?

Wzhengkai commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

Royalbx commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

Draven4396 commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

Wzhengkai commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439 or --> https://github.com/NVIDIA/apex/issues/694#issuecomment-918833904

Wzhengkai commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439 or --> https://github.com/NVIDIA/apex/issues/694#issuecomment-918833904

Draven4396 commented 1 year ago

change this “if cached_x.grad_fn.next_functions[1][0].variable is not x:” to “if cached_x.grad_fn.next_functions[0][0].variable is not x: ”

where is it ? I can't find it.

I found solution in this blog --> https://blog.csdn.net/starvapour/article/details/122275439 or --> NVIDIA/apex#694 (comment)

My problem is solved, thank you very much