臥槽!老照片修復(fù),微軟開源又一力作!!


▍Demo測試


▍要求
該代碼已在裝有Nvidia GPU和CUDA的Ubuntu上進(jìn)行了測試。需要Python> = 3.6才能運(yùn)行代碼。
▍如何使用
python?run.py?--input_folder?[test_image_folder_path]?\
?????????????????????????--output_folder?[output_path]?\
?????????????????????????--GPU?0
python?run.py?--input_folder?[test_image_folder_path]?\
?????????????????????????--output_folder?[output_path]?\
?????????????????????????--GPU?0?\
?????????????????????????--with_scratch
cd?Global/
python?detection.py?--test_path?[test_image_folder_path]?\
????????????????????????????????????--output_dir?[output_path]?\
????????????????????????????????????--input_size?[resize_256|full_size|scale_256]


cd?Global/
python?test.py?--Scratch_and_Quality_restore?\
???????????????--test_input?[test_image_folder_path]?\
???????????????--test_mask?[corresponding?mask]?\
???????????????--outputs_dir?[output_path]
python?test.py?--Quality_restore?\
?--test_input?[test_image_folder_path]?\
?--outputs_dir?[output_path]



評(píng)論
圖片
表情
