From 9e64985051e664917df836679aefd730365ccd27 Mon Sep 17 00:00:00 2001 From: ckkelvinchan Date: Fri, 3 Dec 2021 19:22:00 +0800 Subject: [PATCH 1/2] Add unittest (GPU only) --- tests/data/test_inference.mp4 | Bin 0 -> 25569 bytes tests/test_inference.py | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/data/test_inference.mp4 diff --git a/tests/data/test_inference.mp4 b/tests/data/test_inference.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..1c61f2a2fb041b8ad7bfdf7d27aad02d1f1d8fa1 GIT binary patch literal 25569 zcmY(qdpy(s|Np<)Y;)YKWQiTva*UBAG;<0=$tfY`R3?g&BxYmfm^mMN<$UH9LMLT& zjPy=KqF09ULV7hqbN=n~-}m>&F3-QW$L^2k{dT?GZU6v4;d1z$P}35C8yBFNFB}gaZJ;CjbOg_-IE^Ls&cp!m4~^-E!25FcfL)@~u_` z^@mfBM8?BJ$O1Uyh9{qeg9XP_H0ojx$;H*&j%ToP9)G;YjeNgFqG`GUXJ8S~w{akH zR7;I52BZc?&PYaN!z-@Ma~HBDPdPoG;b#w8yknyjXJ5fkjk%p(alR|6bQ76o^|CD- zyP&QJ6fk(qW+VIOo-}7O#^o1`c0i5|WXh0|)UxV+`_)<;W#yW!P}7Wp?^w;`H0Yp^n2i5XCKA@Y-q*W5l|6bjC^n7g{!W4&2dkGNdn+~^VH;hOUo zSH+@vf2=C7vpq*Hg=~78= zyA%<`a3cgaL6N&^@fyifOPS&e4$iGC19o9p&cQown6o51JWCOsD9%j*mky^6XB&T* zE!}FCSUj-#2yX}Tb@2yrWsBhn-CU`vQRX}p#0wbHCBy@I3n-NisX#^&pR5ITJ$MNM zqB(9~VfpZNQ$c0U3Qb-$=IA`Q1>^EwHi~4|qor+!6H{^p+z6F8aD?5S`y(jlS7zla zr^V|DSySIqtA6!=6?HWI9en4cdKKz_EwCig>OmFX?ZtuzwmHef@y$JvVjw@AheDQZCanhka{ev7!_ zbSmT5$-{T{<1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uc@oV_wX;u?g`7V$zxs z;x~zDdB{e`5DI1O2l`i^KaBs=Hr=J~Zgw*Wr0VAzeijGpE5T*0SI4ytQ;7dPhz$PNV7g&zrf08rM4z={U;2Z3>+XwtOB;dk%pduL&@veRoe22tuRLP6NZBKxvMZ*d-ywTz0b{Kp_AU zYXOpmqz^! Date: Sat, 4 Dec 2021 13:08:59 +0800 Subject: [PATCH 2/2] minor update --- demo/restoration_video_demo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/restoration_video_demo.py b/demo/restoration_video_demo.py index fa9a588bc7..6aeb1adea4 100644 --- a/demo/restoration_video_demo.py +++ b/demo/restoration_video_demo.py @@ -62,7 +62,7 @@ def main(): args.filename_tmpl, args.max_seq_len) file_extension = os.path.splitext(args.output_dir)[1] - if file_extension in VIDEO_EXTENSIONS: # save as mp4 + if file_extension in VIDEO_EXTENSIONS: # save as video h, w = output.shape[-2:] fourcc = cv2.VideoWriter_fourcc(*'mp4v') video_writer = cv2.VideoWriter(args.output_dir, fourcc, 25, (w, h))