pytorch-labs / segment-anything-fast

A batched offline inference oriented version of segment-anything
Apache License 2.0
1.21k stars 72 forks source link

amg _ example.py #106

Open yang606 opened 11 months ago

yang606 commented 11 months ago

Why is it that when I run amg _ example.py, the result shows RuntimeError : Windows not yet supported for torch.compile?Can it run on the Ubuntu system ?

cpuhrsch commented 11 months ago

Hello @yang606, yes it should work on Ubuntu.

yang606 commented 11 months ago

So why do I run amg _ example.py and the results show that RuntimeError : Windows not still support for torch.compile ?

cpuhrsch commented 10 months ago

@yang606 - It looks like PyTorch thinks you're trying to run it on Windows. Are you running on the linux subsystem for Windows or somesuch?

yang606 commented 10 months ago

@yang606 - It looks like PyTorch thinks you're trying to run it on Windows. Are you running on the linux subsystem for Windows or somesuch?

No, I 'm running on Windows11. Thank you for your reply !

cpuhrsch commented 10 months ago

@yang606 - For now we don't have support for torch.compile on Windows (with the default compiler backend), but you could try running on Ubuntu or without torch.compile (but it'll be slower). Sorry for the inconvenience. See https://discuss.pytorch.org/t/windows-support-timeline-for-torch-compile/182268 for more details.

yang606 commented 10 months ago

@yang606 - For now we don't have support for torch.compile on Windows (with the default compiler backend), but you could try running on Ubuntu or without torch.compile (but it'll be slower). Sorry for the inconvenience. See https://discuss.pytorch.org/t/windows-support-timeline-for-torch-compile/182268 for more details.

Okay. Thank you very much for your suggestion !