mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
remove duplicate imports
This commit is contained in:
@@ -34,7 +34,6 @@ class PipelineBase(TorchCompatibleModule, diffusers.DiffusionPipeline, metaclass
|
||||
self.model_type = self.__class__.__name__
|
||||
|
||||
def to(self, *args, **kwargs):
|
||||
import optimum.onnxruntime
|
||||
if self.__class__ == OnnxRawPipeline: # cannot move pipeline which is not preprocessed.
|
||||
return self
|
||||
|
||||
|
||||
Reference in New Issue
Block a user