Julian Bilcke
Claude
commited on
Commit
·
189b70e
1
Parent(s):
15e5e2d
Fix AttributeError: Add missing flow_reverse and flow_solver parameters
Browse files- Added flow_reverse parameter (default: True) based on config.py defaults
- Added flow_solver parameter (default: "euler") based on config.py defaults
- These parameters are required by FlowMatchDiscreteScheduler initialization
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -91,6 +91,12 @@ def create_args():
|
|
| 91 |
args.text_states_dim = 4096
|
| 92 |
args.text_states_dim_2 = 768
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
return args
|
| 95 |
|
| 96 |
logger.info("Initializing Hunyuan-GameCraft model...")
|
|
|
|
| 91 |
args.text_states_dim = 4096
|
| 92 |
args.text_states_dim_2 = 768
|
| 93 |
|
| 94 |
+
# Add missing flow_reverse attribute (default is True based on config.py)
|
| 95 |
+
args.flow_reverse = True
|
| 96 |
+
|
| 97 |
+
# Add missing flow_solver attribute (default is "euler" based on config.py)
|
| 98 |
+
args.flow_solver = "euler"
|
| 99 |
+
|
| 100 |
return args
|
| 101 |
|
| 102 |
logger.info("Initializing Hunyuan-GameCraft model...")
|