cannot access local variable 'act_fn' where it is not associated with a value
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
### Expected Behavior
getting this when trying the FRAME PACK MODEL INSTEAD OF IT RUNNING
### Actual Behavior

### Steps to Reproduce
using the new frame pack model
### Debug Logs
```powershell
!!! Exception during processing !!! cannot access local variable 'act_fn' where it is not associated with a value
Traceback (most recent call last):
File "D:\comfyuistudio\V200\App\ComfyUI\execution.py", line 345, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\ComfyUI\execution.py", line 220, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\ComfyUI\execution.py", line 192, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\comfyuistudio\V200\App\ComfyUI\execution.py", line 181, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\nodes.py", line 200, in loadmodel
transformer = HunyuanVideoTransformer3DModelPacked(**config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\python_embeded\Lib\site-packages\diffusers\configuration_utils.py", line 665, in inner_init
init(self, *args, **init_kwargs)
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\diffusers_helper\models\hunyuan_video_packed.py", line 739, in __init__
self.context_embedder = HunyuanVideoTokenRefiner(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\diffusers_helper\models\hunyuan_video_packed.py", line 373, in __init__
self.token_refiner = HunyuanVideoIndividualTokenRefiner(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\diffusers_helper\models\hunyuan_video_packed.py", line 320, in __init__
[
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\diffusers_helper\models\hunyuan_video_packed.py", line 321, in
HunyuanVideoIndividualTokenRefinerBlock(
File "D:\comfyuistudio\V200\App\ComfyUI\custom_nodes\ComfyUI-FramePackWrapper\diffusers_helper\models\hunyuan_video_packed.py", line 280, in __init__
self.ff = FeedForward(hidden_size, mult=mlp_width_ratio, activation_fn="linear-silu", dropout=mlp_drop_rate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\comfyuistudio\V200\App\python_embeded\Lib\site-packages\diffusers\models\attention.py", line 1228, in __init__
self.net.append(act_fn)
^^^^^^
UnboundLocalError: cannot access local variable 'act_fn' where it is not associated with a value
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.