Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
dist/
*.egg-info/
__pycache__/
*.py[cod]
*.pyo
*.pyd
*.egg-info/
_DS_Store
*.DS_Store
*.bak
*.log
*.log.*
*.log.*.*
*.log.*.*.*
*.log.*.*.*.*
*.log.*.*.*.*.*
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,31 @@ pip install -e .
# Optional: Install with TensorRT support
pip install -e .[tensorrt]
```
## Structure

```
flux/src/deforum_flux/ (GENERATOR)
├── animation/
│ ├── motion_engine.py
│ ├── motion_transforms.py
│ ├── motion_utils.py
│ └── parameter_engine.py
├── models/
│ ├── model_paths.py
│ ├── models.py
│ └── model_manager.py
├── bridge/
│ ├── bridge_config.py
│ ├── bridge_generation_utils.py
│ ├── bridge_stats_and_cleanup.py
│ └── dependency_config.py
│ └── flux_deforum_bridge.py
└── api/
│ ├── routes/
│ ├── models/

```


## Publish
```bash
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "deforum-flux"
version = "0.1.3"
version = "0.0.1"
description = "Flux backend for Deforum"
authors = [{name = "Deforum Inc", email = "hello@deforum.io"}]
license = "MIT" # Changed from {text = "MIT"}
Expand Down
38 changes: 37 additions & 1 deletion src/deforum_flux/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
__version__ = "0.1.0"
"""
Deforum Flux - Flux Model Integration and Animation Engine

This package provides Flux model integration for Deforum animations,
including the bridge, model management, animation engine, and generation API.
"""

try:
from .models.models import ModelManager
except ImportError:
# ModelManager might not be available in all environments
ModelManager = None

try:
from .bridge import FluxDeforumBridge
except ImportError:
# FluxDeforumBridge might not be available in all environments
FluxDeforumBridge = None

try:
from .animation.motion_engine import Flux16ChannelMotionEngine as MotionEngine
from .animation.parameter_engine import ParameterEngine
except ImportError:
# Animation components might not be available in all environments
MotionEngine = None
ParameterEngine = None

__version__ = "0.1.0"
__all__ = []
if ModelManager:
__all__.append("ModelManager")
if FluxDeforumBridge:
__all__.append("FluxDeforumBridge")
if MotionEngine:
__all__.append("MotionEngine")
if ParameterEngine:
__all__.append("ParameterEngine")
1 change: 1 addition & 0 deletions src/deforum_flux/animation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Package initialization."""
Loading