toshiaki1729 / dataset-tag-editor-standalone

WebUI to edit dataset captions for txt2img models
MIT License
134 stars 15 forks source link

Crash on start #24

Open CognitiveDiffusion opened 1 year ago

CognitiveDiffusion commented 1 year ago

They toshiaki,

Thanks for working on this tag editor. It's been a huge help so far.

Since the extension version is very slow nowadays and has several bugs (not sure why), I'm trying to get the standalone to run.

When I start up the .bat, I get this error:

Traceback (most recent call last): File "E:\StableDiffusion\dataset-tag-editor-standalone\scripts\launch.py", line 90, in <module> prepare_environment() File "E:\StableDiffusion\dataset-tag-editor-standalone\scripts\launch.py", line 84, in prepare_environment import devices File "E:\StableDiffusion\dataset-tag-editor-standalone\scripts\devices.py", line 3, in <module> import torch File "E:\StableDiffusion\dataset-tag-editor-standalone\venv\Lib\site-packages\torch\__init__.py", line 443, in <module> raise ImportError(textwrap.dedent(''' ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded thetorch/_Cfolder of the PyTorch repository rather than the C extensions which are expected in thetorch._Cnamespace. This can occur when using theinstall` workflow. e.g. $ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow
    $ python setup.py develop && python -c "import torch"  # This should succeed
or by running Python from a different directory.`