-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Test picture #75
Comments
ref https://github.com/open-mmlab/mmaction2/blob/master/demo/demo.py#L17 @dreamerlin do we have rawframe examples in docs? |
Oh! I just find the demo.py already updated. it returns: |
maybe there are errors in your slurm script |
After update the mmaction2. Also moviepy and ImageMagick have been installed by : The top-5 labels with corresponding scores are: riding scooter: 6.93249
skateboarding: 6.3930197
parkour: 5.9693227
motorcycling: 5.3658776
riding unicycle: 5.1771736
Traceback (most recent call last):
File "/dat01/liuzhixiong/anaconda3/envs/mmaction/lib/python3.6/site-packages/moviepy/video/VideoClip.py", line 1137, in __init__
subprocess_call(cmd, logger=None)
File "/dat01/liuzhixiong/anaconda3/envs/mmaction/lib/python3.6/site-packages/moviepy/tools.py", line 54, in subprocess_call
raise IOError(err.decode('utf8'))
OSError: convert: unable to read font `Courier' @ warning/annotate.c/RenderType/962.
convert: unable to read font `Courier' @ error/annotate.c/RenderFreetype/1396.
convert: no images defined `PNG32:/tmp/tmpnv_m5ba_.png' @ error/convert.c/ConvertImageCommand/3285.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "demo/demo.py", line 134, in <module>
main()
File "demo/demo.py", line 130, in main
use_frames=args.use_frames)
File "demo/demo.py", line 89, in get_output
text_clips = TextClip(label, fontsize=font_size, color=font_color)
File "/dat01/liuzhixiong/anaconda3/envs/mmaction/lib/python3.6/site-packages/moviepy/video/VideoClip.py", line 1146, in __init__
raise IOError(error)
OSError: MoviePy Error: creation of None failed because of the following error:
convert: unable to read font `Courier' @ warning/annotate.c/RenderType/962.
convert: unable to read font `Courier' @ error/annotate.c/RenderFreetype/1396.
convert: no images defined `PNG32:/tmp/tmpnv_m5ba_.png' @ error/convert.c/ConvertImageCommand/3285.
.
.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect |
you can refer to this. |
well, let's see what happens in future. if more than three upvotes this issue or similar issues, we may consider to reimplement this functionality using opencv, and remove the moviepy dependency |
Specifically, Here are the solutions according to the official explanation by the
|
I check the policy.xml. |
Unfortunately, I did as suggested and still failed. |
It should be |
Also, you could try this repo to install imagemagick without sudo by using |
Thank you for answering my questions in time! The slurm_job.out reads: chunk: 0%| | 0/225 [00:00<?, ?it/s, now=None] t: 0%| | 0/245 [00:00<?, ?it/s, now=None] The top-5 labels with corresponding scores are: Moviepy - Done ! |
Would you mind sharing your video file if possible? We need a reproduce. |
No problem. How can I send it to you? email? Baidunetdisk? |
Email to me. |
It works well for me, the output file has emailed to you. The problems may caused by the |
Ok, I will try. Thanks |
I successfully used demo.py to test a video, but how can I test a picture from my own data?
If I can. I want to compare the result between video and pictures in order from the same data.
I have seen the " dataset_type = 'RawframeDataset' " and " dataset_type = 'VideoDataset' " in the config.
The text was updated successfully, but these errors were encountered: