图像超分
This commit is contained in:
BIN
Zenity-Edition/SR-PNG
Executable file
BIN
Zenity-Edition/SR-PNG
Executable file
Binary file not shown.
11
Zenity-Edition/SR-PNG.py
Normal file
11
Zenity-Edition/SR-PNG.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import sys
|
||||||
|
import PIL.Image as Image
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
input_image_path = sys.argv[1]
|
||||||
|
output_image_path = sys.argv[2]
|
||||||
|
|
||||||
|
input_image = Image.open(input_image_path)
|
||||||
|
output_image = input_image.resize((512, 512), Image.BICUBIC)
|
||||||
|
output_image.save(output_image_path)
|
||||||
|
|
||||||
Reference in New Issue
Block a user