Comments (8)
This CUDA_VISIBLE_DEVICES=6
might be the problem.
We do not use this to specify which GPU to use. Instead, you can issue the following command when you update to the latest version.
python test_models.py ucf101 RGB ../temporal-segment-networks/data/ucf101_rgb_val_split_1.txt models/ucf101_bninception_RGB_1_rgb_checkpoint.pth --arch BNInception --save_scores tsn_pytorch_rgb_split_1 --gpu 6 -j 1
from tsn-pytorch.
Please try again with the latest version. Have to say that the logic of torch.nn.DataParallel
on non-zero GPUs is indeed a pain in the neck.
from tsn-pytorch.
Hi @utsavgarg , thanks for filing the issue.
I have fixed the first problem in the latest commit.
For the second one, I cannot reproduce the error. Would you please post your testing command and environment settings?
from tsn-pytorch.
My pytorch version is 0.2.0_1, the testing command is
CUDA_VISIBLE_DEVICES=6 python test_models.py ucf101 RGB ../temporal-segment-networks/data/ucf101_rgb_val_split_1.txt models/ucf101_bninception_RGB_1_rgb_checkpoint.pth --arch BNInception --save_scores tsn_pytorch_rgb_split_1
And you can download the checkpoint from https://www.dropbox.com/s/upa0nnrrmi4q36z/ucf101_bninception_RGB_1_rgb_checkpoint.pth?dl=0
to test it
from tsn-pytorch.
@yjxiong thanks for the quick fix, but there still seems to some issue
Traceback (most recent call last):
File "test_models.py", line 129, in <module>
rst = eval_video((i, data, label))
File "test_models.py", line 117, in eval_video
rst = net(input_var).data.cpu().numpy().copy()
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 224, in __call__
result = self.forward(*input, **kwargs)
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 58, in forward
return self.module(*inputs[0], **kwargs[0])
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 224, in __call__
result = self.forward(*input, **kwargs)
File "/export/home/utsav/tsn/tsn-pytorch/models.py", line 197, in forward
base_out = self.base_model(input.view((-1, sample_len) + input.size()[-2:]))
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 224, in __call__
result = self.forward(*input, **kwargs)
File "/export/home/utsav/tsn/tsn-pytorch/tf_model_zoo/bninception/pytorch_load.py", line 48, in forward
data_dict[op[2]] = getattr(self, op[0])(data_dict[op[-1]])
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 224, in __call__
result = self.forward(*input, **kwargs)
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 254, in forward
self.padding, self.dilation, self.groups)
File "/export/home/utsav/.local/lib/python2.7/site-packages/torch/nn/functional.py", line 52, in conv2d
return f(input, weight, bias)
RuntimeError: tensors are on different GPUs
from tsn-pytorch.
@yjxiong one more thing, the Flow model is taking much longer to complete one epoch compared to the RGB model.
The timings for one epoch are:
- RGB - 93.2s
- Flow - 793.2s
What do you think is the reason for such a large difference ? Any solutions ?
from tsn-pytorch.
The flow model reads a lot of images for each video. This makes the data feeding slower than RGB. I have added pin memory in the latest commit. Maybe that could help. Also, try increasing the -j
parameter for the flow model to prefetch more.
from tsn-pytorch.
https://www.dropbox.com/s/upa0nnrrmi4q36z/ucf101_bninception_RGB_1_rgb_checkpoint.pth?dl=0
It appears this checkpoint is deleted can you provide this checkpoint.
from tsn-pytorch.
Related Issues (20)
- Error: return int(self._data[1]) IndexError: list index out of range
- what is the command of RGB and Flow modality fusion? HOT 2
- what is the command of RGB and Flow modality fusion? Thanks!! HOT 3
- How to fuse the scores from both RGB and FLOW on training and testing? HOT 1
- No module named 'mmaction.datasets.utils' HOT 1
- 请问经过模型后的输出是什么格式呢? HOT 2
- weried phenomenon about using main.py train ucf101 dataset HOT 1
- error about epoch print statement when i use the main.py to train with ucf101 dataset HOT 1
- RuntimeError: bool value of non-empty torch.cuda.ByteTensor objects is ambiguous
- getting 84% in ucf101 on split 1 HOT 2
- RuntimeError: Legacy autograd function HOT 1
- The score of rgb and flow
- Solved
- video live test?
- Training the TSN model on custom dataset - couldn't implement as mentioned in paper HOT 1
- Why subtract 'new_length' to calculate 'average_duration' ?
- Need pre-trained ActivityNet weights for Pytorch
- 报错求助magic_number = pickle_module.load(f, **pickle_load_args) _pickle.UnpicklingError: invalid load key, '<'.(困扰我很久了救救孩子吧)) HOT 2
- f**k-est implementation HOT 3
- mean() received an invalid combination of arguments - got (Tensor, list, keepdim=bool), but expected one of: * (Tensor input) * (Tensor input, torch.dtype dtype) * (Tensor input, int dim, torch.dtype dtype, Tensor out) * (Tensor input, int dim, bool keepdim, torch.dtype dtype, Tensor out) * (Tensor input, int dim, bool keepdim, Tensor out)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsn-pytorch.