Former-commit-id: 9de553f30b
group-chat
Kye 1 year ago
parent a3d78cca78
commit 4460f97e56

@ -1,7 +1,7 @@
from swarms.agents import MultiModalAgent from swarms.agents import MultiModalAgent
load_dict = { load_dict = {
"ImageCaptioning": "default_device" "ImageCaptioning": "cuda:0"
} }
node = MultiModalAgent(load_dict) node = MultiModalAgent(load_dict)

@ -1478,7 +1478,7 @@ class MultiModalVisualAgent:
self.models = {} self.models = {}
for class_name, device in load_dict.items(): for class_name, device in load_dict.items():
self.models[class_name] = globals()[class_name]#(device=device) self.models[class_name] = globals()[class_name](device=device)
for class_name, module in globals().items(): for class_name, module in globals().items():
if getattr(module, 'template_model', False): if getattr(module, 'template_model', False):

Loading…
Cancel
Save