runtime error

Exit code: 1. Reason: emo) File "/usr/local/lib/python3.10/site-packages/torch/_tensor.py", line 140, in __deepcopy__ return handle_torch_function(Tensor.__deepcopy__, (self,), self, memo) File "/usr/local/lib/python3.10/site-packages/torch/overrides.py", line 1728, in handle_torch_function result = mode.__torch_function__(public_api, types, args, kwargs) File "/usr/local/lib/python3.10/site-packages/spaces/zero/torch/patching.py", line 226, in __torch_function__ raise RuntimeError( RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 (ZeroGPU) and cpu! The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/app.py", line 289, in <module> initialize_models(sam_path, adapter_pth, model_cfg, cfg) File "/home/user/app/app.py", line 253, in initialize_models sam2_model = build_sam2(model_cfg, sam_path, device="cpu", apply_postprocessing=False) File "/usr/local/lib/python3.10/site-packages/sam2/build_sam.py", line 92, in build_sam2 model = instantiate(cfg.model, _recursive_=True) File "/usr/local/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 226, in instantiate return instantiate_node( File "/usr/local/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 342, in instantiate_node value = instantiate_node( File "/usr/local/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 347, in instantiate_node return _call_target(_target_, partial, args, kwargs, full_key) File "/usr/local/lib/python3.10/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 97, in _call_target raise InstantiationException(msg) from e hydra.errors.InstantiationException: Error in call to target 'sam2.modeling.memory_attention.MemoryAttention': RuntimeError('Expected all tensors to be on the same device, but found at least two devices, cuda:0 (ZeroGPU) and cpu!') full_key: model.memory_attention

Container logs:

Fetching error logs...