Skip to content

Commit da0bead

Browse files
Fix import sorting for SmartDiskCache (ruff I001)
SmartDiskCache import was placed after CollectPaths/DecodeVAE instead of in alphabetical order after SingleAspectCalculation.
1 parent f42347c commit da0bead

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/dataLoader/StableDiffusionFineTuneVaeDataLoader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from mgds.pipelineModules.CalcAspect import CalcAspect
1818
from mgds.pipelineModules.CollectPaths import CollectPaths
1919
from mgds.pipelineModules.DecodeVAE import DecodeVAE
20-
from mgds.pipelineModules.SmartDiskCache import SmartDiskCache
2120
from mgds.pipelineModules.EncodeVAE import EncodeVAE
2221
from mgds.pipelineModules.InlineAspectBatchSorting import InlineAspectBatchSorting
2322
from mgds.pipelineModules.LoadImage import LoadImage
@@ -34,6 +33,7 @@
3433
from mgds.pipelineModules.ScaleCropImage import ScaleCropImage
3534
from mgds.pipelineModules.ScaleImage import ScaleImage
3635
from mgds.pipelineModules.SingleAspectCalculation import SingleAspectCalculation
36+
from mgds.pipelineModules.SmartDiskCache import SmartDiskCache
3737
from mgds.pipelineModules.VariationSorting import VariationSorting
3838

3939
import torch

modules/dataLoader/mixin/DataLoaderText2ImageMixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from mgds.pipelineModules.CalcAspect import CalcAspect
2020
from mgds.pipelineModules.CapitalizeTags import CapitalizeTags
2121
from mgds.pipelineModules.CollectPaths import CollectPaths
22-
from mgds.pipelineModules.SmartDiskCache import SmartDiskCache
2322
from mgds.pipelineModules.DistributedSampler import DistributedSampler
2423
from mgds.pipelineModules.DownloadHuggingfaceDatasets import DownloadHuggingfaceDatasets
2524
from mgds.pipelineModules.DropTags import DropTags
@@ -48,6 +47,7 @@
4847
from mgds.pipelineModules.SelectRandomText import SelectRandomText
4948
from mgds.pipelineModules.ShuffleTags import ShuffleTags
5049
from mgds.pipelineModules.SingleAspectCalculation import SingleAspectCalculation
50+
from mgds.pipelineModules.SmartDiskCache import SmartDiskCache
5151
from mgds.pipelineModules.VariationSorting import VariationSorting
5252

5353
import torch

0 commit comments

Comments
 (0)