Spaces:
Runtime error
Runtime error
fix namespace bug.
Browse files- README.md +1 -0
- inference_codeformer.py +2 -2
README.md
CHANGED
|
@@ -36,6 +36,7 @@ S-Lab, Nanyang Technological University
|
|
| 36 |
|
| 37 |
### TODO
|
| 38 |
- [ ] Add checkpoint for face inpainting
|
|
|
|
| 39 |
- [ ] Add training code and config files
|
| 40 |
- [x] ~~Add background image enhancement~~
|
| 41 |
|
|
|
|
| 36 |
|
| 37 |
### TODO
|
| 38 |
- [ ] Add checkpoint for face inpainting
|
| 39 |
+
- [ ] Add checkpoint for face colorization
|
| 40 |
- [ ] Add training code and config files
|
| 41 |
- [x] ~~Add background image enhancement~~
|
| 42 |
|
inference_codeformer.py
CHANGED
|
@@ -57,7 +57,7 @@ if __name__ == '__main__':
|
|
| 57 |
parser.add_argument('-o', '--output_path', type=str, default=None,
|
| 58 |
help='Output folder. Default: results/<input_name>_<w>')
|
| 59 |
parser.add_argument('-w', '--fidelity_weight', type=float, default=0.5,
|
| 60 |
-
help='Balance the quality and fidelity')
|
| 61 |
parser.add_argument('-s', '--upscale', type=int, default=2,
|
| 62 |
help='The final upsampling scale of the image. Default: 2')
|
| 63 |
parser.add_argument('--has_aligned', action='store_true', help='Input are cropped and aligned faces. Default: False')
|
|
@@ -77,7 +77,7 @@ if __name__ == '__main__':
|
|
| 77 |
args = parser.parse_args()
|
| 78 |
|
| 79 |
# ------------------------ input & output ------------------------
|
| 80 |
-
w = args.
|
| 81 |
input_video = False
|
| 82 |
if args.input_path.endswith(('jpg', 'png')): # input single img path
|
| 83 |
input_img_list = [args.input_path]
|
|
|
|
| 57 |
parser.add_argument('-o', '--output_path', type=str, default=None,
|
| 58 |
help='Output folder. Default: results/<input_name>_<w>')
|
| 59 |
parser.add_argument('-w', '--fidelity_weight', type=float, default=0.5,
|
| 60 |
+
help='Balance the quality and fidelity. Default: 0.5')
|
| 61 |
parser.add_argument('-s', '--upscale', type=int, default=2,
|
| 62 |
help='The final upsampling scale of the image. Default: 2')
|
| 63 |
parser.add_argument('--has_aligned', action='store_true', help='Input are cropped and aligned faces. Default: False')
|
|
|
|
| 77 |
args = parser.parse_args()
|
| 78 |
|
| 79 |
# ------------------------ input & output ------------------------
|
| 80 |
+
w = args.fidelity_weight
|
| 81 |
input_video = False
|
| 82 |
if args.input_path.endswith(('jpg', 'png')): # input single img path
|
| 83 |
input_img_list = [args.input_path]
|