Skip to content

Error: 'NoneType' object has no attribute 'enhance' #487

@glonlas

Description

@glonlas

Describe your environment

  • GPU: [cuda/amd/mps/cpu] MPS and Cuda
  • VRAM: [if known] N/A
  • CPU arch: [x86/arm] ARM
  • OS: [Linux/Windows/macOS] macOS
  • Python: [Anaconda/miniconda/miniforge/pyenv/other (explain)] miniconda
  • Branch: [if git status says anything other than "On branch main" paste it here] development
  • Commit: [run git show and paste the line that starts with "Merge" here] bfb2781

Describe the bug
Error 'NoneType' object has no attribute 'enhance' when using GFPGAN via the Web UI.

>> Error running RealESRGAN or GFPGAN. Your image was not upscaled.
'NoneType' object has no attribute 'enhance'

To Reproduce
On MPS:
Steps to reproduce the behavior:

  1. Run the server with python scripts/dream.py --full_precision --web
  2. Generate an image with Upscaling Level = x2|x3|x4 (GPFGAN Strength can be anything)

On CUDA
Steps to reproduce the behavior:

  1. Run the server with python scripts/dream.py --full_precision --web
  2. Generate an image with Upscaling Level = x3 (GPFGAN Strength can be anything)

The terminal will return

>> Real-ESRGAN Upscaling seed:XXXX : scale:3x
>> Error running RealESRGAN or GFPGAN. Your image was not upscaled.
'NoneType' object has no attribute 'enhance'

Expected behavior
The generation of the image works with GPFGAN and Upscaling without any trouble.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions