Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Feb 7, 2024
1 parent 6ee96c3 commit adaea46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/dml/hijack/realesrgan_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import math
import torch
from modules.postprocess.realesrgan_model_arch import RealESRGANer
from realesrgan import RealESRGANer


# DML Solution: Some of contents of output tensor turn to 0 after Extended Slices. Move it to cpu.
Expand Down
1 change: 0 additions & 1 deletion modules/dml/hijack/stablediffusion.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import torch
from ldm.models.diffusion.ddim import DDIMSampler
from ldm.modules.diffusionmodules.util import noise_like
import modules.devices as devices


@torch.no_grad()
Expand Down

5 comments on commit adaea46

@Roninos
Copy link

@Roninos Roninos commented on adaea46 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. I hope the update is good, but I have this stable-diffusion-webui-directml\modules\onnx_impl_init_.py", line 7, in
import optimum.onnxruntime
ModuleNotFoundError: No module named 'optimum'

@Roninos
Copy link

@Roninos Roninos commented on adaea46 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay, I figured it out myself, you have to do
pip install optimum

@Roninos
Copy link

@Roninos Roninos commented on adaea46 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to do this anymore ERROR: Exception in ASGI application
stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\encoders.py", line 160, in jsonable_encoder
raise ValueError(errors) from e
ValueError: [TypeError("'_abc._abc_data' object is not iterable"), TypeError('vars() argument must have dict attribute')]

@ride5k
Copy link

@ride5k ride5k commented on adaea46 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roninos, same problem here

@lshqqytiger
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.