-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Refactor high-level APIs (#1410)
* add high-level inference api and run conditional model good. * [high-level api] run unconditional model. * [high-level api] add matting inferencer. * [high-level api] add inpainting inferencer. * [high-level api] add translation inferencer. * [high-level api] add restoration inferencer. * [high-level api] add inference functions * [high-level api] add video interpolation inference * [high-level api] add video restoration inferencer * [high-level api] pass linter check * [hight-level api] append linter check * [high-level api] delete old interface py code * [high-level api] remove unused code. * [high-level api] add comments for inferences. * [high-level api] delete unused parameters and add extra parameters. * [high-level api] add inference tutorial. * [high-level api] add unit test for inference_functions * [high-level api] fix path error. * [high-level api] delete old unit test file. * [high-level api] add ut for edit and conditional inferncer. * [high-level api] fix edit ut bug and add ut of base_inference, inpainting. * [high-level api] fix edit.py ut and add two uts. * [high-level api] add result_out_dir to UTs and add two new uts. * [high-level api] fix unconditional ut out of ram and add two uts. * [high-level api] try to satisfy ut code coverage. * [high-level api] use pytest.raises to catch ut error. * [high-level api] add more test case in inference_functions * [high-level api] add video restoration test case. * [high-level api] video interpolation support dir input output and add ut case * [high-level api] video restoration support input_dir and add uts. * [high-level api] add more uts for inference funcs. * [high-level api] fix bug in inference_functions * [high-level api] add more uts. * [high-level api] make colorization inference be tested. * [high-level api] roll back last commit. * [high-level api] delete unused code. * [high-level api] remove default value. * [high-level api] rename version to setting. * [high-level api] add examples in edit.py and remove duplicated funcs. * [high-level api] add log for functions not used. * [high-level api] load mean std from cfg and use basedataelement * [high-level api] do unittest with cu102 version. * [high-level api] add more uts. * [high-level api] revert change in da2557b * [high-level api] add uts. * [high-level api] replace ckpt to http url./ * [high-level api] read config from metafile and download ckpt automatically. * [high-level api] make default setting all to 0. * [high-level api] add content in ipynb * [high-level api] add ut for test_edit modification. * [high-level api] fix task in scripts and metafiles * [high-level api] read task name from metafile * [high-level api] reproduce nafnet metafile * [high-level api] put good example to inference ipynb * [high-level api] revert inpainting demo to global local. * [high-level api] add model setting and extra parameters in ipynb * [high-level api] add README.md and more instructions in ipynb. * [high-level api] append to last commit. * [high-level api] fix typo. * [high-level api] add ut to refresh building. * [high-level api] fix readme review comments. * [high-level api] refresh readme. * [high-level api] refresh demo readme and fix typo * [high-level api] resolve review comment * [high-level api] fix type. * [high-level api] revert change. * [high-level api] misc change. * [high-level api] fix type again. Co-authored-by: liuwenran <[email protected]>
- Loading branch information
Showing
98 changed files
with
4,991 additions
and
1,513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.