Patch TextTokens improper model_management usage
This commit is contained in:
+2
-2
@@ -831,8 +831,8 @@ class TextTokens:
|
||||
self.tokens = {
|
||||
'[time]': str(time.time()).replace('.','_'),
|
||||
'[hostname]': socket.gethostname(),
|
||||
'[cuda_device]': comfy.model_management.get_torch_device(),
|
||||
'[cuda_name]': comfy.model_management.get_torch_device_name(),
|
||||
'[cuda_device]': str(comfy.model_management.get_torch_device()),
|
||||
'[cuda_name]': str(comfy.model_management.get_torch_device_name(device=comfy.model_management.get_torch_device())),
|
||||
}
|
||||
|
||||
if '.' in self.tokens['[time]']:
|
||||
|
||||
Reference in New Issue
Block a user