mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
refactor: address remaining PR #4640 review comments
- Remove _get_device_dtype() indirection, inline device/dtype at call sites - Remove commented-out fallback blocks and try/finally wrappers - Add modules/sharpfin to ruff and pylint excludes in pyproject.toml - Fix import ordering in joytag.py and pixelart.py
This commit is contained in:
committed by
vladmandic
parent
162651cbdb
commit
dc8ecb0a64
@@ -3,14 +3,13 @@ from typing import List
|
||||
import math
|
||||
import torch
|
||||
import numpy as np
|
||||
from modules import images_sharpfin
|
||||
|
||||
from PIL import Image
|
||||
from diffusers.utils import CONFIG_NAME
|
||||
from diffusers.image_processor import PipelineImageInput
|
||||
from diffusers.configuration_utils import ConfigMixin, register_to_config
|
||||
from transformers import ImageProcessingMixin
|
||||
|
||||
from modules import images_sharpfin
|
||||
from modules import devices
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user