Instance_Insertion icon indicating copy to clipboard operation
Instance_Insertion copied to clipboard

Error while running main.py

Open vijaykartha opened this issue 4 years ago • 0 comments

Hi, I get this error while running main.py

/usr/local/lib/python3.7/dist-packages/torch/nn/functional.py:4044: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. "Default grid_sample and affine_grid behavior has changed " /usr/local/lib/python3.7/dist-packages/torch/nn/functional.py:3982: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. "Default grid_sample and affine_grid behavior has changed " Traceback (most recent call last): File "main.py", line 181, in model.forward_where_sup(mode='train') File "/content/gdrive/My Drive/Project P2/Instance_Insertion/model.py", line 297, in forward_where_sup self.where_sup_reparam_expand = self.where_sup_reparam.expand([-1, -1, self.opt.image_sizey_small, self.opt.image_sizex_small], 1) TypeError: expand() takes 1 positional argument but 2 were given

Please let me know what could be the reason.``

vijaykartha avatar Nov 07 '21 04:11 vijaykartha