payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/191","repository_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch","labels_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/191/comments","events_url":"https://api.github.com/repos/NVIDIA/flownet2-pytorch/issues/191/events","html_url":"https://github.com/NVIDIA/flownet2-pytorch/issues/191","id":541778037,"node_id":"MDU6SXNzdWU1NDE3NzgwMzc=","number":191,"title":"Training error: TypeError: rsub() received an invalid combination of arguments - got (Tensor, tuple)","user":{"login":"kashyap92","id":24429204,"node_id":"MDQ6VXNlcjI0NDI5MjA0","avatar_url":"https://avatars3.githubusercontent.com/u/24429204?v=4","gravatar_id":"","url":"https://api.github.com/users/kashyap92","html_url":"https://github.com/kashyap92","followers_url":"https://api.github.com/users/kashyap92/followers","following_url":"https://api.github.com/users/kashyap92/following{/other_user}","gists_url":"https://api.github.com/users/kashyap92/gists{/gist_id}","starred_url":"https://api.github.com/users/kashyap92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashyap92/subscriptions","organizations_url":"https://api.github.com/users/kashyap92/orgs","repos_url":"https://api.github.com/users/kashyap92/repos","events_url":"https://api.github.com/users/kashyap92/events{/privacy}","received_events_url":"https://api.github.com/users/kashyap92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-23T14:28:47Z","updated_at":"2019-12-23T14:28:47Z","closed_at":null,"author_association":"NONE","body":"Hello all,\r\nI am training on flownet2C with MPI sintel data and i am running into this issue:\r\nTypeError: rsub() received an invalid combination of arguments - got (Tensor, tuple), but expected one of:\r\n * (Tensor input, Tensor other, Number alpha)\r\n * (Tensor input, Number other, Number alpha)\r\n\r\nComplete error is :\r\n\r\n File \"main.py\", line 426, in <module>t]\r\n   train_loss, iterations = train(args=args, epoch=epoch, start_iteration=global_iteration, data_loader=train_loader, model=model_and_loss, optimizer=optimizer, logger\r\n, offset=offset)   0%|                                                                       | 0/130.0 [00:00<?, ?it/s]\r\n File \"main.py\", line 267, in train\r\n   losses = model(data[0], target[0])\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 489, in __call__\r\n   result = self.forward(*input, **kwargs)\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py\", line 141, in forward\r\n   return self.module(*inputs[0], **kwargs[0])\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 489, in __call__\r\n   result = self.forward(*input, **kwargs)\r\n File \"main.py\", line 172, in forward\r\n   loss_values = self.loss(output, target)\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 489, in __call__\r\n   result = self.forward(*input, **kwargs)\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/flownet2-pytorch/losses.py\", line 37, in forward\r\n   lossvalue = self.loss(output, target)\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/nn/modules/module.py\", line 489, in __call__\r\n   result = self.forward(*input, **kwargs)\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/flownet2-pytorch/losses.py\", line 18, in forward\r\n   lossvalue = torch.abs(output - target).mean()\r\n File \"/datasets/Mahesh_kashyap/project/Opical_flow/env/lib/python3.6/site-packages/torch/tensor.py\", line 363, in __rsub__\r\n   return _C._VariableFunctions.rsub(self, other)\r\nypeError: rsub() received an invalid combination of arguments - got (Tensor, tuple), but expected one of:\r\n* (Tensor input, Tensor other, Number alpha)\r\n* (Tensor input, Number other, Number alpha)\r\n\r\n\r\nCLI i am using is as follows:\r\nCUDA_VISIBLE_DEVICES=1 python main.py --batch_size 8 --model FlowNet2C --loss=L1Loss --optimizer=Adam --optimizer_lr=1e-10 \\\r\n--training_dataset MpiSintelFinal --training_dataset_root  /datasets/Mahesh_kashyap/Optical_flow/flownet2-pytorch/MPI-Sintel/flow/training \\\r\n--validation_dataset MpiSintelClean --validation_dataset_root  /datasets/Mahesh_kashyap/Optical_flow/flownet2-pytorch/MPI-Sintel/flow/training\r\n\r\n\r\nAny help would be much appreciated.\r\n\r\nThank you."}}
other: {"actor":{"display_login":"kashyap92"}}