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

A problem I meet in spatial_cnn and spatial_dataloader #22

Closed
ttthappy opened this issue Apr 4, 2018 · 5 comments
Closed

A problem I meet in spatial_cnn and spatial_dataloader #22

ttthappy opened this issue Apr 4, 2018 · 5 comments

Comments

@ttthappy
Copy link

ttthappy commented Apr 4, 2018

Dear jeffreyhuang,
I read your readme, the input of spatial_cnn is from feichtenhofer/twostreamfusion ,
So the path in spatial_cnn and spatial_dataloader equals to feichtenhofer’s Directory.
Is it right?
When I run the spatial_cnn, I have a problem:

Traceback (most recent call last):
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/spatial_cnn.py", line 272, in
main()
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/spatial_cnn.py", line 55, in main
train_loader, test_loader, test_video = data_loader.run()
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/dataloader/spatial_dataloader.py", line 100, in run
train_loader = self.train()
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/dataloader/spatial_dataloader.py", line 133, in train
print(training_set[1][0]['img1'].size())
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/dataloader/spatial_dataloader.py", line 60, in getitem
data[key] = self.load_ucf_image(video_name, index)
File "/home/tangjun/jeffreyhuang/two-stream-action-recognition/dataloader/spatial_dataloader.py", line 30, in load_ucf_image
img = Image.open(path +str(index)+'.jpg')

File "/home/tangjun/anaconda2/lib/python2.7/site-packages/PIL/Image.py", line 2272, in open
fp = builtins.open(filename, "rb")
IOError: [Errno 2] No such file or directory: '/home/tangjun/dataset1/jpegs_256/Swing/separated_images/v_Swing_g09_c02/v_Swing_g09_c02_29.jpg'

Best regards,
Yours sincerely
Tang Jun

@Zhuysheng
Copy link

hello @ttthappy do you solve it, I meet the same question

@menon92
Copy link

menon92 commented Jul 21, 2018

Hello @ttthappy @Zhuysheng,
Do you solve the problem. I have the same problem

@Atul997
Copy link

Atul997 commented Oct 26, 2018

@ttthappy @Zhuysheng @menon92
Did you solve the problem, as i m getting the same error.

@menon92
Copy link

menon92 commented Oct 26, 2018

@Atul997
You need to modify your spatial_dataloader.py to solve this problem

@Atul997
Copy link

Atul997 commented Oct 27, 2018

Which line i have to change in the function load_ucf_images().

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

4 participants