ollamadiffuser 1.0.0__py3-none-any.whl → 1.1.1__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.
- ollamadiffuser/api/server.py +147 -2
- ollamadiffuser/cli/main.py +325 -25
- ollamadiffuser/core/inference/engine.py +180 -9
- ollamadiffuser/core/models/manager.py +136 -2
- ollamadiffuser/core/utils/controlnet_preprocessors.py +317 -0
- ollamadiffuser/core/utils/download_utils.py +209 -60
- ollamadiffuser/ui/templates/index.html +384 -7
- ollamadiffuser/ui/web.py +181 -100
- ollamadiffuser-1.1.1.dist-info/METADATA +470 -0
- {ollamadiffuser-1.0.0.dist-info → ollamadiffuser-1.1.1.dist-info}/RECORD +14 -13
- ollamadiffuser-1.0.0.dist-info/METADATA +0 -493
- {ollamadiffuser-1.0.0.dist-info → ollamadiffuser-1.1.1.dist-info}/WHEEL +0 -0
- {ollamadiffuser-1.0.0.dist-info → ollamadiffuser-1.1.1.dist-info}/entry_points.txt +0 -0
- {ollamadiffuser-1.0.0.dist-info → ollamadiffuser-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {ollamadiffuser-1.0.0.dist-info → ollamadiffuser-1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ollamadiffuser
|
|
3
|
+
Version: 1.1.1
|
|
4
|
+
Summary: 🎨 Local AI Image Generation with Ollama-style CLI for Stable Diffusion, FLUX.1, and LoRA support
|
|
5
|
+
Home-page: https://github.com/ollamadiffuser/ollamadiffuser
|
|
6
|
+
Author: OllamaDiffuser Team
|
|
7
|
+
Author-email: OllamaDiffuser Team <ollamadiffuser@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://www.ollamadiffuser.com/
|
|
10
|
+
Project-URL: Website, https://www.ollamadiffuser.com/
|
|
11
|
+
Project-URL: Repository, https://github.com/ollamadiffuser/ollamadiffuser
|
|
12
|
+
Project-URL: Issues, https://github.com/ollamadiffuser/ollamadiffuser/issues
|
|
13
|
+
Project-URL: Documentation, https://www.ollamadiffuser.com/
|
|
14
|
+
Project-URL: Bug Reports, https://github.com/ollamadiffuser/ollamadiffuser/issues
|
|
15
|
+
Project-URL: Feature Requests, https://github.com/ollamadiffuser/ollamadiffuser/issues
|
|
16
|
+
Project-URL: Source Code, https://github.com/ollamadiffuser/ollamadiffuser
|
|
17
|
+
Keywords: diffusion,image-generation,ai,machine-learning,lora,ollama,stable-diffusion,flux,local-ai,controlnet,web-ui,cli
|
|
18
|
+
Classifier: Development Status :: 4 - Beta
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Operating System :: OS Independent
|
|
23
|
+
Classifier: Programming Language :: Python :: 3
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
29
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
30
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
31
|
+
Classifier: Environment :: Console
|
|
32
|
+
Classifier: Environment :: Web Environment
|
|
33
|
+
Requires-Python: >=3.10
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: torch>=2.1.0
|
|
37
|
+
Requires-Dist: diffusers>=0.26.0
|
|
38
|
+
Requires-Dist: transformers>=4.35.0
|
|
39
|
+
Requires-Dist: accelerate>=0.25.0
|
|
40
|
+
Requires-Dist: fastapi>=0.104.0
|
|
41
|
+
Requires-Dist: uvicorn>=0.23.0
|
|
42
|
+
Requires-Dist: huggingface-hub>=0.16.0
|
|
43
|
+
Requires-Dist: Pillow>=9.0.0
|
|
44
|
+
Requires-Dist: click>=8.0.0
|
|
45
|
+
Requires-Dist: rich>=13.0.0
|
|
46
|
+
Requires-Dist: pydantic>=2.0.0
|
|
47
|
+
Requires-Dist: protobuf>=3.20.0
|
|
48
|
+
Requires-Dist: sentencepiece>=0.1.99
|
|
49
|
+
Requires-Dist: safetensors>=0.3.0
|
|
50
|
+
Requires-Dist: python-multipart>=0.0.0
|
|
51
|
+
Requires-Dist: psutil>=5.9.0
|
|
52
|
+
Requires-Dist: jinja2>=3.0.0
|
|
53
|
+
Requires-Dist: peft>=0.10.0
|
|
54
|
+
Requires-Dist: controlnet-aux>=0.0.7
|
|
55
|
+
Requires-Dist: opencv-python>=4.8.0
|
|
56
|
+
Provides-Extra: dev
|
|
57
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
58
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
59
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
60
|
+
Requires-Dist: isort>=5.12.0; extra == "dev"
|
|
61
|
+
Requires-Dist: flake8>=6.0.0; extra == "dev"
|
|
62
|
+
Dynamic: author
|
|
63
|
+
Dynamic: home-page
|
|
64
|
+
Dynamic: license-file
|
|
65
|
+
Dynamic: requires-python
|
|
66
|
+
|
|
67
|
+
# OllamaDiffuser 🎨
|
|
68
|
+
|
|
69
|
+
[](https://badge.fury.io/py/ollamadiffuser)
|
|
70
|
+
[](https://opensource.org/licenses/MIT)
|
|
71
|
+
[](https://www.python.org/downloads/)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Local AI Image Generation with OllamaDiffuser
|
|
75
|
+
|
|
76
|
+
**OllamaDiffuser** simplifies local deployment of **Stable Diffusion**, **FLUX.1**, and other AI image generation models. An intuitive **local SD** tool inspired by **Ollama's** simplicity - perfect for **local diffuser** workflows with CLI, web UI, and LoRA support.
|
|
77
|
+
|
|
78
|
+
🌐 **Website**: [ollamadiffuser.com](https://www.ollamadiffuser.com/) | 📦 **PyPI**: [pypi.org/project/ollamadiffuser](https://pypi.org/project/ollamadiffuser/)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## ✨ Features
|
|
83
|
+
|
|
84
|
+
- **🚀 Fast Startup**: Instant application launch with lazy loading architecture
|
|
85
|
+
- **🎛️ ControlNet Support**: Precise image generation control with 10+ control types
|
|
86
|
+
- **🔄 LoRA Integration**: Dynamic LoRA loading and management
|
|
87
|
+
- **🌐 Multiple Interfaces**: CLI, Python API, Web UI, and REST API
|
|
88
|
+
- **📦 Model Management**: Easy installation and switching between models
|
|
89
|
+
- **⚡ Performance Optimized**: Memory-efficient with GPU acceleration
|
|
90
|
+
- **🎨 Professional Results**: High-quality image generation with fine-tuned control
|
|
91
|
+
|
|
92
|
+
## 🚀 Quick Start
|
|
93
|
+
|
|
94
|
+
### Option 1: Install from PyPI (Recommended)
|
|
95
|
+
```bash
|
|
96
|
+
# Install from PyPI
|
|
97
|
+
pip install ollamadiffuser
|
|
98
|
+
|
|
99
|
+
# Pull and run a model (4-command setup)
|
|
100
|
+
ollamadiffuser pull flux.1-schnell
|
|
101
|
+
ollamadiffuser run flux.1-schnell
|
|
102
|
+
|
|
103
|
+
# Generate via API
|
|
104
|
+
curl -X POST http://localhost:8000/api/generate \
|
|
105
|
+
-H "Content-Type: application/json" \
|
|
106
|
+
-d '{"prompt": "A beautiful sunset"}' \
|
|
107
|
+
--output image.png
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Option 2: Development Installation
|
|
111
|
+
```bash
|
|
112
|
+
# Clone the repository
|
|
113
|
+
git clone https://github.com/ollamadiffuser/ollamadiffuser.git
|
|
114
|
+
cd ollamadiffuser
|
|
115
|
+
|
|
116
|
+
# Install dependencies
|
|
117
|
+
pip install -e .
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Basic Usage
|
|
121
|
+
```bash
|
|
122
|
+
# Install a model
|
|
123
|
+
ollamadiffuser pull stable-diffusion-1.5
|
|
124
|
+
|
|
125
|
+
# Run the model (loads and starts API server)
|
|
126
|
+
ollamadiffuser run stable-diffusion-1.5
|
|
127
|
+
|
|
128
|
+
# Generate an image via API
|
|
129
|
+
curl -X POST http://localhost:8000/api/generate \
|
|
130
|
+
-H "Content-Type: application/json" \
|
|
131
|
+
-d '{"prompt": "a beautiful sunset over mountains"}' \
|
|
132
|
+
--output image.png
|
|
133
|
+
|
|
134
|
+
# Start web interface
|
|
135
|
+
ollamadiffuser --mode ui
|
|
136
|
+
|
|
137
|
+
open http://localhost:8001 in your browser
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### ControlNet Quick Start
|
|
141
|
+
```bash
|
|
142
|
+
# Install ControlNet model
|
|
143
|
+
ollamadiffuser pull controlnet-canny-sd15
|
|
144
|
+
|
|
145
|
+
# Run ControlNet model (loads and starts API server)
|
|
146
|
+
ollamadiffuser run controlnet-canny-sd15
|
|
147
|
+
|
|
148
|
+
# Generate with control image
|
|
149
|
+
curl -X POST http://localhost:8000/api/generate/controlnet \
|
|
150
|
+
-F "prompt=a beautiful landscape" \
|
|
151
|
+
-F "control_image=@your_image.jpg"
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 🎯 Supported Models
|
|
157
|
+
|
|
158
|
+
Choose from a variety of state-of-the-art image generation models:
|
|
159
|
+
|
|
160
|
+
| Model | License | Quality | Speed | Commercial Use |
|
|
161
|
+
|-------|---------|---------|-------|----------------|
|
|
162
|
+
| **FLUX.1-schnell** | Apache 2.0 | High | **4 steps** (12x faster) | ✅ Commercial OK |
|
|
163
|
+
| **FLUX.1-dev** | Non-commercial | High | 50 steps | ❌ Non-commercial |
|
|
164
|
+
| **Stable Diffusion 3.5** | CreativeML | Medium | 28 steps | ⚠️ Check License |
|
|
165
|
+
| **Stable Diffusion 1.5** | CreativeML | Fast | Lightweight | ⚠️ Check License |
|
|
166
|
+
|
|
167
|
+
### Why Choose FLUX.1-schnell?
|
|
168
|
+
- **Apache 2.0 license** - Perfect for commercial use
|
|
169
|
+
- **4-step generation** - Lightning fast results
|
|
170
|
+
- **Commercial OK** - Use in your business
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🎛️ ControlNet Features
|
|
175
|
+
|
|
176
|
+
### ⚡ Lazy Loading Architecture
|
|
177
|
+
**New in v1.1.0**: ControlNet preprocessors use intelligent lazy loading:
|
|
178
|
+
|
|
179
|
+
- **Instant Startup**: `ollamadiffuser --help` runs immediately without downloading models
|
|
180
|
+
- **On-Demand Loading**: Preprocessors initialize only when actually needed
|
|
181
|
+
- **Automatic Initialization**: Seamless loading when uploading control images
|
|
182
|
+
- **User Control**: Manual initialization available for pre-loading
|
|
183
|
+
|
|
184
|
+
### Available Control Types
|
|
185
|
+
- **Canny Edge Detection**: Structural control with edge maps
|
|
186
|
+
- **Depth Estimation**: 3D structure control with depth maps
|
|
187
|
+
- **OpenPose**: Human pose and body position control
|
|
188
|
+
- **Scribble/Sketch**: Artistic control with hand-drawn inputs
|
|
189
|
+
- **Advanced Types**: HED, MLSD, Normal, Lineart, Anime Lineart, Content Shuffle
|
|
190
|
+
|
|
191
|
+
### ControlNet Models
|
|
192
|
+
```bash
|
|
193
|
+
# SD 1.5 ControlNet Models
|
|
194
|
+
ollamadiffuser pull controlnet-canny-sd15
|
|
195
|
+
ollamadiffuser pull controlnet-depth-sd15
|
|
196
|
+
ollamadiffuser pull controlnet-openpose-sd15
|
|
197
|
+
ollamadiffuser pull controlnet-scribble-sd15
|
|
198
|
+
|
|
199
|
+
# SDXL ControlNet Models
|
|
200
|
+
ollamadiffuser pull controlnet-canny-sdxl
|
|
201
|
+
ollamadiffuser pull controlnet-depth-sdxl
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## 🔄 LoRA Support
|
|
205
|
+
|
|
206
|
+
### Dynamic LoRA Management
|
|
207
|
+
```bash
|
|
208
|
+
# Download LoRA from Hugging Face
|
|
209
|
+
ollamadiffuser lora pull "openfree/flux-chatgpt-ghibli-lora"
|
|
210
|
+
|
|
211
|
+
# Load LoRA with custom strength
|
|
212
|
+
ollamadiffuser lora load ghibli --scale 1.2
|
|
213
|
+
|
|
214
|
+
# Unload LoRA
|
|
215
|
+
ollamadiffuser lora unload
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Web UI LoRA Integration
|
|
219
|
+
- **Easy Download**: Enter Hugging Face repository ID
|
|
220
|
+
- **Strength Control**: Adjust LoRA influence with sliders
|
|
221
|
+
- **Real-time Loading**: Load/unload LoRAs without restarting
|
|
222
|
+
- **Alias Support**: Create custom names for your LoRAs
|
|
223
|
+
|
|
224
|
+
## 🌐 Multiple Interfaces
|
|
225
|
+
|
|
226
|
+
### Command Line Interface
|
|
227
|
+
```bash
|
|
228
|
+
# Pull and run a model
|
|
229
|
+
ollamadiffuser pull stable-diffusion-1.5
|
|
230
|
+
ollamadiffuser run stable-diffusion-1.5
|
|
231
|
+
|
|
232
|
+
# In another terminal, generate images via API
|
|
233
|
+
curl -X POST http://localhost:8000/api/generate \
|
|
234
|
+
-H "Content-Type: application/json" \
|
|
235
|
+
-d '{
|
|
236
|
+
"prompt": "a futuristic cityscape",
|
|
237
|
+
"negative_prompt": "blurry, low quality",
|
|
238
|
+
"num_inference_steps": 30,
|
|
239
|
+
"guidance_scale": 7.5,
|
|
240
|
+
"width": 1024,
|
|
241
|
+
"height": 1024
|
|
242
|
+
}' \
|
|
243
|
+
--output image.png
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Web UI
|
|
247
|
+
```bash
|
|
248
|
+
# Start web interface
|
|
249
|
+
ollamadiffuser --mode ui
|
|
250
|
+
Open http://localhost:8001
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Features:
|
|
254
|
+
- **Responsive Design**: Works on desktop and mobile
|
|
255
|
+
- **Real-time Status**: Model and LoRA loading indicators
|
|
256
|
+
- **ControlNet Integration**: File upload with preprocessing
|
|
257
|
+
- **Parameter Controls**: Intuitive sliders and inputs
|
|
258
|
+
|
|
259
|
+
### REST API
|
|
260
|
+
```bash
|
|
261
|
+
# Start API server
|
|
262
|
+
ollamadiffuser --mode api
|
|
263
|
+
|
|
264
|
+
ollamadiffuser load stable-diffusion-1.5
|
|
265
|
+
|
|
266
|
+
# Generate image
|
|
267
|
+
curl -X POST http://localhost:8000/api/generate \
|
|
268
|
+
-H "Content-Type: application/json" \
|
|
269
|
+
-d '{"prompt": "a beautiful landscape", "width": 1024, "height": 1024}'
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Python API
|
|
273
|
+
```python
|
|
274
|
+
from ollamadiffuser.core.models.manager import model_manager
|
|
275
|
+
|
|
276
|
+
# Load model
|
|
277
|
+
success = model_manager.load_model("stable-diffusion-1.5")
|
|
278
|
+
if success:
|
|
279
|
+
engine = model_manager.loaded_model
|
|
280
|
+
|
|
281
|
+
# Generate image
|
|
282
|
+
image = engine.generate_image(
|
|
283
|
+
prompt="a beautiful sunset",
|
|
284
|
+
width=1024,
|
|
285
|
+
height=1024
|
|
286
|
+
)
|
|
287
|
+
image.save("output.jpg")
|
|
288
|
+
else:
|
|
289
|
+
print("Failed to load model")
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## 📦 Supported Models
|
|
293
|
+
|
|
294
|
+
### Base Models
|
|
295
|
+
- **Stable Diffusion 1.5**: Classic, reliable, fast
|
|
296
|
+
- **Stable Diffusion XL**: High-resolution, detailed
|
|
297
|
+
- **Stable Diffusion 3**: Latest architecture
|
|
298
|
+
- **FLUX.1**: State-of-the-art quality
|
|
299
|
+
|
|
300
|
+
### ControlNet Models
|
|
301
|
+
- **SD 1.5 ControlNet**: 4 control types (canny, depth, openpose, scribble)
|
|
302
|
+
- **SDXL ControlNet**: 2 control types (canny, depth)
|
|
303
|
+
|
|
304
|
+
### LoRA Support
|
|
305
|
+
- **Hugging Face Integration**: Direct download from HF Hub
|
|
306
|
+
- **Local LoRA Files**: Support for local .safetensors files
|
|
307
|
+
- **Dynamic Loading**: Load/unload without model restart
|
|
308
|
+
- **Strength Control**: Adjustable influence (0.1-2.0)
|
|
309
|
+
|
|
310
|
+
## ⚙️ Configuration
|
|
311
|
+
|
|
312
|
+
### Model Configuration
|
|
313
|
+
Models are automatically configured with optimal settings:
|
|
314
|
+
- **Memory Optimization**: Attention slicing, CPU offloading
|
|
315
|
+
- **Device Detection**: Automatic CUDA/MPS/CPU selection
|
|
316
|
+
- **Precision Handling**: FP16/BF16 support for efficiency
|
|
317
|
+
- **Safety Features**: NSFW filter bypass for creative freedom
|
|
318
|
+
|
|
319
|
+
## 🔧 Advanced Usage
|
|
320
|
+
|
|
321
|
+
### ControlNet Parameters
|
|
322
|
+
```python
|
|
323
|
+
# Fine-tune ControlNet behavior
|
|
324
|
+
image = engine.generate_image(
|
|
325
|
+
prompt="architectural masterpiece",
|
|
326
|
+
control_image=control_img,
|
|
327
|
+
controlnet_conditioning_scale=1.2, # Strength (0.0-2.0)
|
|
328
|
+
control_guidance_start=0.0, # When to start (0.0-1.0)
|
|
329
|
+
control_guidance_end=1.0 # When to end (0.0-1.0)
|
|
330
|
+
)
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Batch Processing
|
|
334
|
+
```python
|
|
335
|
+
from ollamadiffuser.core.utils.controlnet_preprocessors import controlnet_preprocessor
|
|
336
|
+
|
|
337
|
+
# Pre-initialize for faster processing
|
|
338
|
+
controlnet_preprocessor.initialize()
|
|
339
|
+
|
|
340
|
+
# Process multiple images
|
|
341
|
+
prompt = "beautiful landscape" # Define the prompt
|
|
342
|
+
for i, image_path in enumerate(image_list):
|
|
343
|
+
control_img = controlnet_preprocessor.preprocess(image_path, "canny")
|
|
344
|
+
result = engine.generate_image(prompt, control_image=control_img)
|
|
345
|
+
result.save(f"output_{i}.jpg")
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### API Integration
|
|
349
|
+
```python
|
|
350
|
+
import requests
|
|
351
|
+
|
|
352
|
+
# Initialize ControlNet preprocessors
|
|
353
|
+
response = requests.post("http://localhost:8000/api/controlnet/initialize")
|
|
354
|
+
|
|
355
|
+
# Check available preprocessors
|
|
356
|
+
response = requests.get("http://localhost:8000/api/controlnet/preprocessors")
|
|
357
|
+
print(response.json()["available_types"])
|
|
358
|
+
|
|
359
|
+
# Generate with file upload
|
|
360
|
+
with open("control.jpg", "rb") as f:
|
|
361
|
+
response = requests.post(
|
|
362
|
+
"http://localhost:8000/api/generate/controlnet",
|
|
363
|
+
data={"prompt": "beautiful landscape"},
|
|
364
|
+
files={"control_image": f}
|
|
365
|
+
)
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
## 📚 Documentation & Guides
|
|
369
|
+
|
|
370
|
+
- **[ControlNet Guide](CONTROLNET_GUIDE.md)**: Comprehensive ControlNet usage and examples
|
|
371
|
+
- **[Website Documentation](https://www.ollamadiffuser.com/)**: Complete tutorials and guides
|
|
372
|
+
|
|
373
|
+
## 🚀 Performance & Hardware
|
|
374
|
+
|
|
375
|
+
### Minimum Requirements
|
|
376
|
+
- **RAM**: 8GB system RAM
|
|
377
|
+
- **Storage**: 10GB free space
|
|
378
|
+
- **Python**: 3.8+
|
|
379
|
+
|
|
380
|
+
### Recommended Hardware
|
|
381
|
+
- **GPU**: 8GB+ VRAM (NVIDIA/AMD)
|
|
382
|
+
- **RAM**: 16GB+ system RAM
|
|
383
|
+
- **Storage**: SSD with 50GB+ free space
|
|
384
|
+
|
|
385
|
+
### Supported Platforms
|
|
386
|
+
- **CUDA**: NVIDIA GPUs (recommended)
|
|
387
|
+
- **MPS**: Apple Silicon (M1/M2/M3)
|
|
388
|
+
- **CPU**: All platforms (slower but functional)
|
|
389
|
+
|
|
390
|
+
## 🔧 Troubleshooting
|
|
391
|
+
|
|
392
|
+
### Common Issues
|
|
393
|
+
|
|
394
|
+
#### Slow Startup
|
|
395
|
+
If you experience slow startup, ensure you're using the latest version with lazy loading:
|
|
396
|
+
```bash
|
|
397
|
+
git pull origin main
|
|
398
|
+
pip install -e .
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
#### ControlNet Not Working
|
|
402
|
+
```bash
|
|
403
|
+
# Check preprocessor status
|
|
404
|
+
python -c "
|
|
405
|
+
from ollamadiffuser.core.utils.controlnet_preprocessors import controlnet_preprocessor
|
|
406
|
+
print('Available:', controlnet_preprocessor.is_available())
|
|
407
|
+
print('Initialized:', controlnet_preprocessor.is_initialized())
|
|
408
|
+
"
|
|
409
|
+
|
|
410
|
+
# Manual initialization
|
|
411
|
+
curl -X POST http://localhost:8000/api/controlnet/initialize
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
#### Memory Issues
|
|
415
|
+
```bash
|
|
416
|
+
# Use smaller image sizes via API
|
|
417
|
+
curl -X POST http://localhost:8000/api/generate \
|
|
418
|
+
-H "Content-Type: application/json" \
|
|
419
|
+
-d '{"prompt": "test", "width": 512, "height": 512}' \
|
|
420
|
+
--output test.png
|
|
421
|
+
|
|
422
|
+
# CPU offloading is automatic
|
|
423
|
+
# Close other applications to free memory
|
|
424
|
+
# Use basic preprocessors instead of advanced ones
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Debug Mode
|
|
428
|
+
```bash
|
|
429
|
+
# Enable verbose logging
|
|
430
|
+
ollamadiffuser --verbose run model-name
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
## 🤝 Contributing
|
|
434
|
+
|
|
435
|
+
We welcome contributions! Please check the GitHub repository for contribution guidelines.
|
|
436
|
+
|
|
437
|
+
## 🤝 Community & Support
|
|
438
|
+
|
|
439
|
+
### Quick Actions
|
|
440
|
+
|
|
441
|
+
- **🐛 [Report a Bug](https://github.com/ollamadiffuser/ollamadiffuser/issues)** - Found an issue? Let us know
|
|
442
|
+
- **💡 [Feature Request](https://github.com/ollamadiffuser/ollamadiffuser/issues)** - Have an idea? Share it with us
|
|
443
|
+
- **💬 [Join Discussions](https://github.com/ollamadiffuser/ollamadiffuser/discussions)** - Community discussion
|
|
444
|
+
- **⭐ [Star on GitHub](https://github.com/ollamadiffuser/ollamadiffuser)** - Show your support
|
|
445
|
+
|
|
446
|
+
### Community Driven
|
|
447
|
+
|
|
448
|
+
OllamaDiffuser is an open-source project that thrives on community feedback. Every suggestion, bug report, and contribution helps make it better for everyone.
|
|
449
|
+
|
|
450
|
+
**Open Source** • **Community Driven** • **Actively Maintained**
|
|
451
|
+
|
|
452
|
+
## 📄 License
|
|
453
|
+
|
|
454
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
455
|
+
|
|
456
|
+
## 🙏 Acknowledgments
|
|
457
|
+
|
|
458
|
+
- **Stability AI**: For Stable Diffusion models
|
|
459
|
+
- **Hugging Face**: For model hosting and diffusers library
|
|
460
|
+
- **ControlNet Team**: For ControlNet architecture
|
|
461
|
+
- **Community**: For feedback and contributions
|
|
462
|
+
|
|
463
|
+
## 📞 Support
|
|
464
|
+
|
|
465
|
+
- **Issues**: [GitHub Issues](https://github.com/ollamadiffuser/ollamadiffuser/issues)
|
|
466
|
+
- **Discussions**: [GitHub Discussions](https://github.com/ollamadiffuser/ollamadiffuser/discussions)
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
**Ready to get started?** Install from PyPI: `pip install ollamadiffuser` or visit [ollamadiffuser.com](https://www.ollamadiffuser.com/) 🎨✨
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
ollamadiffuser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
ollamadiffuser/__main__.py,sha256=-3WVAex0P3PgfIUtOhVof9nF4Zor8mvMNTK5nKFlrHU,1841
|
|
3
3
|
ollamadiffuser/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
ollamadiffuser/api/server.py,sha256=
|
|
4
|
+
ollamadiffuser/api/server.py,sha256=4-3gT8W1404bxvJ7y9htvKbd2yxrrbtAUvT7shOlJss,17679
|
|
5
5
|
ollamadiffuser/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
ollamadiffuser/cli/main.py,sha256=
|
|
6
|
+
ollamadiffuser/cli/main.py,sha256=Ck_JGfD1o2eSR8dNcK8Bw0ZRIeBym4eCSND2ADDe-Ao,38722
|
|
7
7
|
ollamadiffuser/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
ollamadiffuser/core/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
ollamadiffuser/core/config/settings.py,sha256=VhI1vLGmOAQ7-XtyHrT5KoMpcGeGt-Mij-9NxX_ZKsI,4881
|
|
10
10
|
ollamadiffuser/core/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
ollamadiffuser/core/inference/engine.py,sha256=
|
|
11
|
+
ollamadiffuser/core/inference/engine.py,sha256=ky76lAjWexlrgmHSZZILa3FPQP7xx2WQ0_DdW34M9Xk,57808
|
|
12
12
|
ollamadiffuser/core/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
ollamadiffuser/core/models/manager.py,sha256=
|
|
13
|
+
ollamadiffuser/core/models/manager.py,sha256=vO1Az_aO5lZKMgSyK_6j2wT5nzPMowZgKhcH2mQVLkI,24139
|
|
14
14
|
ollamadiffuser/core/utils/__init__.py,sha256=ZdXZWX1hfDnnV6OmRD6UStNljDJIQ892da2CtC-zdDw,31
|
|
15
|
-
ollamadiffuser/core/utils/
|
|
15
|
+
ollamadiffuser/core/utils/controlnet_preprocessors.py,sha256=JcLxvnuYAJdQb9EM1mAgyye1nARHwyjFdWzyl7yh7So,12684
|
|
16
|
+
ollamadiffuser/core/utils/download_utils.py,sha256=DvCt-cjH6WSBJniJT112b4a9AUzlwOYhQtPuEfISmtM,20961
|
|
16
17
|
ollamadiffuser/core/utils/lora_manager.py,sha256=SrZydPSGJqCS_Vek35bEdG2Q51qCOLZmPvnNzUjjIN0,14328
|
|
17
18
|
ollamadiffuser/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
18
|
-
ollamadiffuser/ui/web.py,sha256=
|
|
19
|
-
ollamadiffuser/ui/templates/index.html,sha256=
|
|
19
|
+
ollamadiffuser/ui/web.py,sha256=xZ5Ja47B-51LRyadfC-gW_aE_B3D571RgpQX0RDzVxM,15290
|
|
20
|
+
ollamadiffuser/ui/templates/index.html,sha256=qTQVFxiTbeZ90O-iNqWC_4pYP6yyIs2z6U69VJPqAB4,38176
|
|
20
21
|
ollamadiffuser/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
ollamadiffuser-1.
|
|
22
|
-
ollamadiffuser-1.
|
|
23
|
-
ollamadiffuser-1.
|
|
24
|
-
ollamadiffuser-1.
|
|
25
|
-
ollamadiffuser-1.
|
|
26
|
-
ollamadiffuser-1.
|
|
22
|
+
ollamadiffuser-1.1.1.dist-info/licenses/LICENSE,sha256=cnGL9l2P510Uk3TCnv62kot6vAfdSawhOZh7Y-oYoIE,1071
|
|
23
|
+
ollamadiffuser-1.1.1.dist-info/METADATA,sha256=ZQOmzyft8wVpr3oZ6WczxfjUIu0G_m7_rzJ_g68hawY,15353
|
|
24
|
+
ollamadiffuser-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
25
|
+
ollamadiffuser-1.1.1.dist-info/entry_points.txt,sha256=tHXXO3N0GSnIobDe_eSOLfHPjjVFjeTg2Fd-APoD6sY,64
|
|
26
|
+
ollamadiffuser-1.1.1.dist-info/top_level.txt,sha256=97wOGgTCxDE765Nr_o7B4Kwr_M_jy8fCCeQ81sMKlC4,15
|
|
27
|
+
ollamadiffuser-1.1.1.dist-info/RECORD,,
|