btw. The error `This demo is not optimized for your device ...` also appears when directory `/data/gallery` at the backend side is empty.
Backend log:
```
GraphQL request:2:3
1 | query DemoP...
I fixed it. This error has nothing to do with the tensordict version. It's because the installed pytorch is different from the cuda version of torchvision. I also met with similar error hydra. Erro...
Well, I haven't figure it out. But I found a solution to solve this problem. You can simply add a .env to the root directory of your project, and write this:
> PYTHONPATH="path_to_sam2"
let's...
I upgraded to tensordict==0.6 and pytorch==2.5, but meet this error :
[rank0]: hydra.errors.InstantiationException: Error in call to target 'training.trainer.Trainer':
[rank0]: InstantiationExcep...
They have upgraded the minimal pytorch version in the last tensordict release.
You can manually backport this https://github.com/pytorch/tensordict/pull/1049 if you want to work with pytorch 2.4
Same, you can try to clone the repo in the root directory of your project, and install it in the virtual enviroment of your project. In that way you can import it by adding another sam2 as its pref...