sujaykhandekar / Automated-objects-removal-inpainter

Automated object remover Inpainter is a project that combines Semantic segmentation and EdgeConnect architectures with minor changes in order to remove specified object/s from list of 20 objects from all the input photos
Other
199 stars 40 forks source link

Non writable array #28

Open hdnh2006 opened 1 year ago

hdnh2006 commented 1 year ago

Hello, I am running the test.py with all the parameters you suggested in the README, and I am getting the following warning:

/pytorch/torch/csrc/utils/tensor_numpy.cpp:141: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program.

And unfortunatelly, these are the results gotten: image

Any idea in which part of the code this is gotten? I need to make the numpy array writable but I don't know where this warning is being gotten.

hdnh2006 commented 1 year ago

I was able to suppress the warning by commenting/deleting this line of code but I am still unable to get correct results.

nikunjkothiya commented 8 months ago

I have the same problem.

Is there anything solution for this ???