ollamadiffuser 2.0.5__py3-none-any.whl → 2.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ OllamaDiffuser - Local AI Image Generation with Ollama-style CLI
4
4
  A tool for managing and running Stable Diffusion, FLUX.1, and other AI image generation models locally.
5
5
  """
6
6
 
7
- __version__ = "2.0.5"
7
+ __version__ = "2.0.6"
8
8
  __author__ = "LocalKinAI Team"
9
9
  __email__ = "contact@localkin.ai"
10
10
  __description__ = "🎨 Local AI Image Generation with Ollama-style CLI for Stable Diffusion, FLUX.1, and LoRA support"
@@ -68,9 +68,19 @@ class GenericPipelineStrategy(InferenceStrategy):
68
68
  load_kwargs["variant"] = model_config.variant
69
69
 
70
70
  logger.info(f"Loading {pipeline_class_name} from {model_config.path} (dtype={dtype})")
71
- self.pipeline = pipeline_cls.from_pretrained(
72
- model_config.path, **load_kwargs
73
- )
71
+ try:
72
+ self.pipeline = pipeline_cls.from_pretrained(
73
+ model_config.path, **load_kwargs
74
+ )
75
+ except (OSError, ValueError):
76
+ if "variant" in load_kwargs:
77
+ logger.info(f"No {model_config.variant} variant files found, loading without variant")
78
+ load_kwargs.pop("variant")
79
+ self.pipeline = pipeline_cls.from_pretrained(
80
+ model_config.path, **load_kwargs
81
+ )
82
+ else:
83
+ raise
74
84
 
75
85
  # Device placement
76
86
  enable_offload = params.get("enable_cpu_offload", False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ollamadiffuser
3
- Version: 2.0.5
3
+ Version: 2.0.6
4
4
  Summary: Local AI Image Generation with Ollama-style CLI for Stable Diffusion, FLUX, and LoRA support
5
5
  Home-page: https://github.com/ollamadiffuser/ollamadiffuser
6
6
  Author: LocalKinAI Team
@@ -1,4 +1,4 @@
1
- ollamadiffuser/__init__.py,sha256=yjQGtY5CBRV3GJ1AF-Dsqnt-UMYo0RayYBG8BuHjidw,1118
1
+ ollamadiffuser/__init__.py,sha256=0eGsryuywTWlzKEhS98ci0ilAkC5-9TpSsxa1iSY9Po,1118
2
2
  ollamadiffuser/__main__.py,sha256=tNWMvEHq4ddtKLp7DrhIoOdnFw3F8RNrETC_u5xpkFI,141
3
3
  ollamadiffuser/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  ollamadiffuser/api/server.py,sha256=MqEKjckz8x8pU9dhZlLXET5XWt7ERfVcAfvdVfDLFWw,15464
@@ -20,7 +20,7 @@ ollamadiffuser/core/inference/engine.py,sha256=xUCSQmGke9yAIoKGzh9jRaH1XE3GP9-uG
20
20
  ollamadiffuser/core/inference/strategies/__init__.py,sha256=5LQgTeS5JVin-HiGX7UvjlPzd0awombKrNhvAVr3SSw,53
21
21
  ollamadiffuser/core/inference/strategies/controlnet_strategy.py,sha256=_lGlCaYhrrdn7N6Aw0X9a4L90wKPjCrr6EBfQqPVH2E,6712
22
22
  ollamadiffuser/core/inference/strategies/flux_strategy.py,sha256=V11exUxKw256YGACGcLQD0Kzla6ZHF0HnxrKT5Ri1Cw,5351
23
- ollamadiffuser/core/inference/strategies/generic_strategy.py,sha256=loUDqgVIfYqSaIIY-1IRPeRRYJ6kU2yIgFaDJCzZ5zI,6228
23
+ ollamadiffuser/core/inference/strategies/generic_strategy.py,sha256=CLriTGxv8ccvojB_ki97Cf5NcBl00i78DjxYQExcnLs,6691
24
24
  ollamadiffuser/core/inference/strategies/gguf_strategy.py,sha256=kIGT85tDCcSsliXdaxEJoQz4Gm7Xt7TfEcu6xcmTvJg,3893
25
25
  ollamadiffuser/core/inference/strategies/hidream_strategy.py,sha256=27XSeXQDvlDl7yMlVhkHzf7tdDr7udQyPyYowkDdZmM,3696
26
26
  ollamadiffuser/core/inference/strategies/sd15_strategy.py,sha256=qz5eGA2xkcA_3oNywP-rCliXzP7jYpH60728QmOT5fw,4966
@@ -53,9 +53,9 @@ ollamadiffuser/ui/samples/scribble/face_sketch.png,sha256=MVVYy_aS48xoS_RnIDzLUa
53
53
  ollamadiffuser/ui/samples/scribble/tree_sketch.png,sha256=3P-NGgW25xRwreDxiBYKcDhd2oHZAwKSkjNVM5oPTWY,3017
54
54
  ollamadiffuser/ui/templates/index.html,sha256=XcrYZqtDR65dAiu959Ea19t3MbtYmXl9PVyMnR1Telk,42358
55
55
  ollamadiffuser/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- ollamadiffuser-2.0.5.dist-info/licenses/LICENSE,sha256=cnGL9l2P510Uk3TCnv62kot6vAfdSawhOZh7Y-oYoIE,1071
57
- ollamadiffuser-2.0.5.dist-info/METADATA,sha256=m8Tx6yEFssX6IP3RmU5IPPh3dUTVrB7UIEOvaZgRRy8,31084
58
- ollamadiffuser-2.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
59
- ollamadiffuser-2.0.5.dist-info/entry_points.txt,sha256=Bp-ZzV3F7QpQu02Mcafeza-oTMjDslomz9qrhvfcQUA,116
60
- ollamadiffuser-2.0.5.dist-info/top_level.txt,sha256=97wOGgTCxDE765Nr_o7B4Kwr_M_jy8fCCeQ81sMKlC4,15
61
- ollamadiffuser-2.0.5.dist-info/RECORD,,
56
+ ollamadiffuser-2.0.6.dist-info/licenses/LICENSE,sha256=cnGL9l2P510Uk3TCnv62kot6vAfdSawhOZh7Y-oYoIE,1071
57
+ ollamadiffuser-2.0.6.dist-info/METADATA,sha256=ix9N9vYQvdXxFTlXCACYTV-27Crnblp_rkNz6oNPF48,31084
58
+ ollamadiffuser-2.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
59
+ ollamadiffuser-2.0.6.dist-info/entry_points.txt,sha256=Bp-ZzV3F7QpQu02Mcafeza-oTMjDslomz9qrhvfcQUA,116
60
+ ollamadiffuser-2.0.6.dist-info/top_level.txt,sha256=97wOGgTCxDE765Nr_o7B4Kwr_M_jy8fCCeQ81sMKlC4,15
61
+ ollamadiffuser-2.0.6.dist-info/RECORD,,