When trying to run python scripts/launch.py, here's the error I am getting:
python ./scripts/launch.py
Traceback (most recent call last):
File "/Users/n/dataset-tag-editor-standalone/./scripts/launch.py", line 90, in <module>
prepare_environment()
File "/Users/n/dataset-tag-editor-standalone/./scripts/launch.py", line 84, in prepare_environment
import devices
File "/Users/n/dataset-tag-editor-standalone/scripts/devices.py", line 53, in <module>
device = get_optimal_device()
^^^^^^^^^^^^^^^^^^^^
File "/Users/n/dataset-tag-editor-standalone/scripts/devices.py", line 33, in get_optimal_device
if has_mps():
^^^^^^^^^
File "/Users/n/dataset-tag-editor-standalone/scripts/devices.py", line 10, in has_mps
from modules import mac_specific
ModuleNotFoundError: No module named 'modules'
When trying to run
python scripts/launch.py
, here's the error I am getting:It comes from this function: https://github.com/toshiaki1729/dataset-tag-editor-standalone/blob/97ee181f42d4d03fb555df1d2586e3fbcf5934d2/scripts/devices.py#L6-L13 I am on Mac m2, so apple silicon, and it seems that nobody with this chip already reported this issue. I did my researches, and to check if
MPS
is available on silicon chips, we have to usetorch.has_mps
, as easy as it follows: