[FFmpeg-devel] [PATCH 6/7] libavfilter/vf_sr.c: Removes uint8 -> float and float -> uint8 conversions.

Pedro Arthur bygrandao at gmail.com
Wed Oct 10 02:47:02 EEST 2018


Hi,
Em seg, 8 de out de 2018 às 23:59, Liu Steven <lq at chinaffmpeg.org> escreveu:
>
>
>
> > 在 2018年8月15日,上午2:37,Pedro Arthur <bygrandao at gmail.com> 写道:
> >
> > Patch pushed.
>
> How should i test it?
If you already performed the training (train_srcnn.sh/train_espcn.sh)
you can generate the model files using the script
'generate_header_and_model.py' provided in the repo. If not I'm
attaching my generated models.
Then
./ffmpeg -i img -vf sr=model=model_file_name output
or if you have TF
./ffmpeg -i img -vf sr=model=model_file_name:dnn_backend=tensorflow output


>
>
> bash generate_datasets.sh
> (py3k) [root at onvideo sr]# ls logdir/srcnn_batch_32_lr_1e-3_decay_adam/train/model_100*
> logdir/srcnn_batch_32_lr_1e-3_decay_adam/train/model_100.ckpt.data-00000-of-00001  logdir/srcnn_batch_32_lr_1e-3_decay_adam/train/model_100.ckpt.index  logdir/srcnn_batch_32_lr_1e-3_decay_adam/train/model_100.ckpt.meta
> (py3k) [root at onvideo sr]#
>
> [root at onvideo nvidia]# ./ffmpeg
> ffmpeg version N-91943-g1b98bfb Copyright (c) 2000-2018 the FFmpeg developers
>   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
>   configuration: --enable-ffnvcodec --enable-libtensorflow --extra-ldflags=-L/data/liuqi/tensorflow/bazel-bin/tensorflow/
>   libavutil      56. 19.101 / 56. 19.101
>   libavcodec     58. 30.100 / 58. 30.100
>   libavformat    58. 18.100 / 58. 18.100
>   libavdevice    58.  4.103 / 58.  4.103
>   libavfilter     7. 31.100 /  7. 31.100
>   libswscale      5.  2.100 /  5.  2.100
>   libswresample   3.  2.100 /  3.  2.100
> Hyper fast Audio and Video encoder
> usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
>
> Use -h to get full help or, even better, run 'man ffmpeg'
> [root at onvideo nvidia]# pwd
> /data/liuqi/ffmpeg/nvidia
> [root at onvideo nvidia]#
>
>
> BTW, the GitHub link looks no body maintaining it. https://github.com/HighVoltageRocknRoll/sr
Is there anything that is not working?

>
>
> Thanks
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list