-
Notifications
You must be signed in to change notification settings - Fork 43
Description
I put some images which does not have label in it i.e completely black mask with respect to those images and the output of it is tensors having nan's instead of 0's
outputs----- tensor([[[[nan, nan, nan, ..., nan, nan, nan], [nan, nan, nan, ..., nan, nan, nan], [nan, nan, nan, ..., nan, nan, nan], ..., ..., [nan, nan, nan, ..., nan, nan, nan], [nan, nan, nan, ..., nan, nan, nan], [nan, nan, nan, ..., nan, nan, nan]]]], device='cuda:0',
due to which there is an error coming up in loss.backward()
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass RuntimeError: CUDA error: device-side assert triggered
My idea was to put some negative images into training so that model understands a bit clearly about the busy background, and as we remove these negative images and corresponding masks the code is working fine.
Please confirm , how to resolve this so that i can consider those negative images as well ???