You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your work.
I'm facing two problems when I run your project.
1.I installed the project successfully according to your README.md.
2.In order to use GPU, I changed the code in /SCR/crowd_nav/train.py def main(): parser.add_argument('--gpu', default=False, action='store_true')
to parser.add_argument('--gpu', default=True, action='store_true')
However, I got some errors in the terminator RuntimeError: Expected object of backend CUDA but got backend CPU ...
3. Then I changed the code in /SCR/crowd_nav/empowerment/source.py class Source(nn.Module):
I did the same change in /SCR/crowd_nav/empowerment/transition.py and /SCR/crowd_nav/empowerment/planning.py
4. Then I run python train.py --policy scr
However, I got the error in the terminator: RuntimeError: expected device cuda:0 but got device cpu
What's the version of your torch?
My environment is
Ubuntu = 16.04
python = 3.6.10
torch version = 0.6.0
pyTorch = 1.5.0
GPU GTX 2070s
NVIDIA-SMI 430.64
CUDA Version: 10.1
I got an error when I use cpu: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
So I changed all the a += b to a = a + b in the code of your project.
For example epoch_loss += loss to epoch_loss = epoch_loss + loss
But it dosen't work, I got the same error.
Maybe the version of torch is the reason of this error.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Thanks for your work.
I'm facing two problems when I run your project.
1.I installed the project successfully according to your README.md.
2.In order to use GPU, I changed the code in /SCR/crowd_nav/train.py def main():
parser.add_argument('--gpu', default=False, action='store_true')
to
parser.add_argument('--gpu', default=True, action='store_true')
However, I got some errors in the terminator
RuntimeError: Expected object of backend CUDA but got backend CPU ...
3. Then I changed the code in /SCR/crowd_nav/empowerment/source.py class Source(nn.Module):
to
I did the same change in
/SCR/crowd_nav/empowerment/transition.py
and/SCR/crowd_nav/empowerment/planning.py
4. Then I run
python train.py --policy scr
However, I got the error in the terminator:
RuntimeError: expected device cuda:0 but got device cpu
What's the version of your torch?
My environment is
Ubuntu = 16.04
python = 3.6.10
torch version = 0.6.0
pyTorch = 1.5.0
GPU GTX 2070s
NVIDIA-SMI 430.64
CUDA Version: 10.1
I got an error when I use cpu:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
So I changed all the
a += b
toa = a + b
in the code of your project.For example
epoch_loss += loss
toepoch_loss = epoch_loss + loss
But it dosen't work, I got the same error.
Maybe the version of torch is the reason of this error.
Thanks a lot!
The text was updated successfully, but these errors were encountered: