How to visualize halide schedule?

♀尐吖头ヾ 提交于 2019-12-11 08:44:15

问题


How to visualize halide schedule like this video? HalideTraceViz with viz.sh in halide repository seems to visualize that. But camera_pipe.avi generated by viz.sh just shows nothing but black about 10 seconds. This is the log while playing the .avi file with mplayer.

$ mplayer bin/camera_pipe.avi 
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing bin/camera_pipe.avi.
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
AVI file format detected.
[aviheader] Video stream found, -vid 0
AVI: No audio stream found -> no sound.
VIDEO:  [H264]  1920x1080  24bpp  25.000 fps   15.0 kbps ( 1.8 kbyte/s)
Clip info:
 Software: Lavf54.20.4
Load subtitles in bin/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.35.0 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Unsupported AVPixelFormat 53
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12 
V:  10.0 250/250  5%  4%  0.0% 0 0 


Exiting... (End of file)

回答1:


That viz script is just stale and buggy. I'll fix it. Try the ones in local_laplacian and bilateral_grid.

Unfortunately the visualizer is super user-unfriendly right now. Perhaps it should take json or something as the input instead of just positional command-line arguments.



来源:https://stackoverflow.com/questions/42345885/how-to-visualize-halide-schedule

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!