Skip to content

Commit

Permalink
fix(app): remove obsolete DEFAULT_PRECISION variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rikublock authored and psychedelicious committed Jan 6, 2025
1 parent 7d6c443 commit f4f7415
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions invokeai/app/invocations/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from typing import Literal

from invokeai.backend.util.devices import TorchDevice

LATENT_SCALE_FACTOR = 8
"""
HACK: Many nodes are currently hard-coded to use a fixed latent scale factor of 8. This is fragile, and will need to
Expand All @@ -12,5 +10,3 @@

IMAGE_MODES = Literal["L", "RGB", "RGBA", "CMYK", "YCbCr", "LAB", "HSV", "I", "F"]
"""A literal type for PIL image modes supported by Invoke"""

DEFAULT_PRECISION = TorchDevice.choose_torch_dtype()

0 comments on commit f4f7415

Please sign in to comment.