mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove reference to globals in compel.py
This commit is contained in:
parent
afd2e32092
commit
25ce47c44f
@ -16,8 +16,6 @@ from compel.prompt_parser import (
|
|||||||
Fragment,
|
Fragment,
|
||||||
)
|
)
|
||||||
|
|
||||||
from invokeai.backend.globals import Globals
|
|
||||||
|
|
||||||
|
|
||||||
class ConditioningField(BaseModel):
|
class ConditioningField(BaseModel):
|
||||||
conditioning_name: Optional[str] = Field(default=None, description="The name of conditioning data")
|
conditioning_name: Optional[str] = Field(default=None, description="The name of conditioning data")
|
||||||
@ -102,7 +100,8 @@ class CompelInvocation(BaseInvocation):
|
|||||||
|
|
||||||
prompt: Union[FlattenedPrompt, Blend] = Compel.parse_prompt_string(prompt_str)
|
prompt: Union[FlattenedPrompt, Blend] = Compel.parse_prompt_string(prompt_str)
|
||||||
|
|
||||||
if getattr(Globals, "log_tokenization", False):
|
print('here i am')
|
||||||
|
if context.services.configuration.log_tokenization:
|
||||||
log_tokenization_for_prompt_object(prompt, tokenizer)
|
log_tokenization_for_prompt_object(prompt, tokenizer)
|
||||||
|
|
||||||
c, options = compel.build_conditioning_tensor_for_prompt_object(prompt)
|
c, options = compel.build_conditioning_tensor_for_prompt_object(prompt)
|
||||||
|
Loading…
Reference in New Issue
Block a user