You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sam Detector from Load Image doesn't have a CPU only option, which makes it impossible to run on an AMD card.
This would be an issue for @ltdrdata but from my looking through the code, you can definitely set it to run cpu only.
@server.PromptServer.instance.routes.post("/sam/detect")
async def sam_detect(request):
global sam_predictor
with sam_lock:
if sam_predictor is not None:
if impact.config.get_config()['sam_editor_cpu']:
device = 'cpu'
else:
device = comfy.model_management.get_torch_device()
sam_predictor.model.to(device=device)
My bad, it is a feature of Impact pack not of main ComfyUI! I modified the .ini file from impact folder and could make it work. Many thanks @shawnington
Sam Detector from Load Image doesn't have a CPU only option, which makes it impossible to run on an AMD card.
The text was updated successfully, but these errors were encountered: