upscale_4x.json 864 B

123456789101112131415161718192021222324252627
  1. {
  2. "_comment": "Standalone 4x upscale of an input image using ESRGAN. Required model: 4x-UltraSharp.pth (or any upscaler in models/upscale_models/). Upload with --input-image image=./photo.png.",
  3. "1": {
  4. "class_type": "LoadImage",
  5. "_meta": {"title": "Load Image"},
  6. "inputs": {"image": "REPLACE_WITH_UPLOADED_FILENAME.png"}
  7. },
  8. "2": {
  9. "class_type": "UpscaleModelLoader",
  10. "_meta": {"title": "Load Upscale Model"},
  11. "inputs": {"model_name": "4x-UltraSharp.pth"}
  12. },
  13. "3": {
  14. "class_type": "ImageUpscaleWithModel",
  15. "_meta": {"title": "Upscale Image (with Model)"},
  16. "inputs": {
  17. "upscale_method": "lanczos",
  18. "upscale_model": ["2", 0],
  19. "image": ["1", 0]
  20. }
  21. },
  22. "4": {
  23. "class_type": "SaveImage",
  24. "_meta": {"title": "Save"},
  25. "inputs": {"filename_prefix": "upscaled_4x", "images": ["3", 0]}
  26. }
  27. }