Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: new(): invalid data type 'str' #82

Open
wtt55 opened this issue Sep 6, 2022 · 0 comments
Open

TypeError: new(): invalid data type 'str' #82

wtt55 opened this issue Sep 6, 2022 · 0 comments

Comments

@wtt55
Copy link

wtt55 commented Sep 6, 2022

Namespace(batch_size=25, epochs=500, evaluate=False, lr=0.0005, resume='', start_epoch=0)
==> (Training video, Validation video):( 9537 3783 )
Eligible videos for training : 9492 videos
Eligible videos for validation: 3758 videos
==> Build model and setup loss and optimizer
==> Epoch:[0/500][training stage]
0%| | 0/380 [00:10<?, ?it/s]
Traceback (most recent call last):
File "spatial_cnn.py", line 263, in
main()
File "spatial_cnn.py", line 61, in main
model.run()
File "spatial_cnn.py", line 113, in run
self.train_1epoch()
File "spatial_cnn.py", line 154, in train_1epoch
output = Variable(torch.zeros(len(data_dict['img1']),101).float()).cuda()
TypeError: new(): invalid data type 'str'

when run spatial_cnn.py,I meet this,can anyone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant