Skip to content

Conversation

@hahminlew
Copy link

@hahminlew hahminlew commented Sep 23, 2025

This PR fixes incorrect import statements in models.py.
Previously, the code attempted to import attention processor classes from src.ip_adapter.*, which caused ModuleNotFoundError when running the project.

Changes:
Updated imports to reference the correct top-level modules:

from src.attention_processor import AttnProcessor2_0 as AttnProcessor
from src.attention_processor import IPAttnProcessor2_0 as IPAttnProcessor
from src.mask_attention_processor import IPAttnProcessor2_0WithIPMaskController

Reason
The attention processor modules are located directly under src/, not under src/ip_adapter/. This fix ensures the project can be executed without import errors.

Test
Verified that the project runs after this change without raising ModuleNotFoundError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant