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

Demo is not working, help required #16

Open
ghost opened this issue Jan 15, 2021 · 10 comments
Open

Demo is not working, help required #16

ghost opened this issue Jan 15, 2021 · 10 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2021

Hi there,
First of all I would like to congratulate you for this great work and thank you for saharing the this awsome content publicly.
I am trying to run the demo.py after following all the steps described in the demo paragraph but unfortunately I am encountering problems and no visual results are generated in results folder except an empty results.txt file. Following is the terminal output that I am getting. The "Datalist len" is 0. I don't know why it is so. I have provided a total of 778 frames but I am not getting any output. Is there a minimum nunber of frames to be provided for detection?
Please help, Thanks.

python3 demo.py
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Loading pretrain model from pretrained/ava_step.pth
Building I3D model...
Building I3D head for global branch...
Building I3D head for global branch...
Building I3D head for global branch...
Building I3D head for context branch...
Datalist len: 0

@xyang35
Copy link
Contributor

xyang35 commented Jan 15, 2021

Thanks for your interest in our work! It seems that the dataloader cannot find the frames you provided. Could you please double check the data folder you've created? Make sure to follow the structure mentioned in the Demo section. It may be also helpful to take a quick look at the code snippet for processing the input frames.

@ghost
Copy link
Author

ghost commented Jan 20, 2021

Hi there, thanks for reply. Unfortunately I am still not able to run the demo. I am getting following error when i try to run customize.py
Traceback (most recent call last): File "customize.py", line 14, in <module> from utils.tube_utils import scale_tubes, scale_tubes_abs ModuleNotFoundError: No module named 'utils.tube_utils'

Althoug utils package is installed but still Iam getting this error.
Also Could please eloberate further on the placement of the input frames and video. At the moment I have placed video frames at two places.

|datasets/
| |-- frames/
| |-- <video_id1>/
| |-- frame0000.jpg
| |-- frame0001.jpg
| |-- ...

and

|--data/
| |--data_root/
| |-- frames/
| |-- <video_id1>/
| |-- frame0000.jpg
| |-- frame0001.jpg
| |...

Still getting same results:
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Warning: If you want to use fp16, please apex with cuda support (https://github.com/NVIDIA/apex) and update pytorch to 1.0
Loading pretrain model from pretrained/ava_step.pth
Building I3D model...
Building I3D head for global branch...
Building I3D head for global branch...
Building I3D head for global branch...
Building I3D head for context branch...
Datalist len: 0

Please help me solve this use thanks :)

@ronghui19
Copy link

args.data_root = 'datasets/demo/frames/' not args.data_root = '/datasets/demo/frames/'

@AhmadManzoor
Copy link

@IronHide99 please try to give absolute path

@ghost
Copy link
Author

ghost commented Feb 10, 2021

@AhmadManzoor can we get in touch?

@AhmadManzoor
Copy link

@IronHide99 sure , how may i help you. [email protected]

@EllisHui
Copy link

hello ,Have you solve your problems? I met the same Questions

@ronghui19
Copy link

CHANGE args.data_root = '/datasets/demo/frames/' TO args.data_root = 'datasets/demo/frames/'

@ghost
Copy link
Author

ghost commented Mar 30, 2021

hello ,Have you solve your problems? I met the same Questions

After multiple attempts I haven't been able to run this code. I don't know what is the problem here even though I have followed the demo tutorial down to detail.

@EllisHui
Copy link

EllisHui commented Mar 30, 2021 via email

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