mattyamonaca / layerdivider

A tool to divide a single illustration into a layered structure.
MIT License
695 stars 55 forks source link

When I run_gui into the local site and click on Create PSD, it shows the following error message #41

Open smallpostman10086 opened 1 year ago

smallpostman10086 commented 1 year ago

Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Task exception was never retrieved future: <Task finished name='zuvuz58rdno_1' coro=<Queue.process_events() done, defined at D:\layerdivider-main\venv\lib\site-packages\gradio\queueing.py:324> exception=AssertionError('No event data')> Traceback (most recent call last): File "D:\layerdivider-main\venv\lib\site-packages\gradio\queueing.py", line 338, in process_events response = await self.call_prediction(awake_events, batch) File "D:\layerdivider-main\venv\lib\site-packages\gradio\queueing.py", line 298, in call_prediction assert data is not None, "No event data" AssertionError: No event data

forestsource commented 1 year ago

This repo has soooooooooooooooo many environment problems. The owner of the repository is likely reusing the environment and therefore may not be aware of the issue.

I use anaconda on windows.

prepare

Install CUDA(11.6) and CUDNN(8.x) from NVIDIA and do https://github.com/mattyamonaca/layerdivider/issues/29#issuecomment-1653061845

install packages.

  1. conda create -n 'layerdivider' python=3.10
  2. conda activate layerdivider
  3. python -m pip install -r requirements.txt
  4. python -m pip install opencv-python pycocotools matplotlib onnxruntime onnx belong here:https://github.com/facebookresearch/segment-anything
  5. python -m pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
  6. python -m pip install cython packbits onnx onnxruntime-gpu opencv-python numpy Pillow scikit-learn psd-tools requests # maybe already installed.
  7. python -m pip uninstall gradio # Avoid gradio queue's bug.
  8. python -m pip install gradio==3.39.0
  9. python -m pip uninstall pytoshop
  10. python -m pip install pytoshop --no-cache-dir # Avoid pytoshop's bug.
my pip freeze results aggdraw==1.3.16 aiofiles==23.1.0 aiohttp==3.8.5 aiosignal==1.3.1 altair==5.0.1 annotated-types==0.5.0 anyio==3.7.1 async-timeout==4.0.2 attrs==23.1.0 certifi==2023.7.22 charset-normalizer==3.2.0 click==8.1.6 colorama==0.4.6 coloredlogs==15.0.1 contourpy==1.1.0 cycler==0.11.0 Cython==3.0.0 docopt==0.6.2 exceptiongroup==1.1.2 fastapi==0.100.0 ffmpy==0.3.1 filelock==3.12.2 flatbuffers==23.5.26 fonttools==4.41.1 frozenlist==1.4.0 fsspec==2023.6.0 gradio==3.39.0 gradio_client==0.3.0 h11==0.14.0 httpcore==0.17.3 httpx==0.24.1 huggingface-hub==0.16.4 humanfriendly==10.0 idna==3.4 imageio==2.31.1 Jinja2==3.1.2 joblib==1.3.1 jsonschema==4.18.4 jsonschema-specifications==2023.7.1 kiwisolver==1.4.4 linkify-it-py==2.0.2 markdown-it-py==2.2.0 MarkupSafe==2.1.3 matplotlib==3.7.2 mdit-py-plugins==0.3.3 mdurl==0.1.2 mpmath==1.3.0 multidict==6.0.4 networkx==3.1 numpy==1.25.1 onnx==1.14.0 onnxruntime==1.15.1 onnxruntime-gpu==1.15.1 opencv-python==4.7.0.68 orjson==3.9.2 packaging==23.1 packbits==0.6 pandas==1.5.3 Pillow==9.4.0 protobuf==4.23.4 psd-tools==1.9.24 pycocotools==2.0.6 pycryptodome==3.18.0 pydantic==2.1.1 pydantic_core==2.4.0 pydub==0.25.1 pyparsing==3.0.9 pyreadline3==3.4.1 python-dateutil==2.8.2 python-multipart==0.0.6 pytoshop==1.2.1 pytz==2023.3 PyWavelets==1.4.1 PyYAML==6.0.1 referencing==0.30.0 requests==2.31.0 rpds-py==0.9.2 scikit-image==0.19.3 scikit-learn==1.2.1 scipy==1.11.1 segment-anything==1.0 semantic-version==2.10.0 six==1.16.0 sniffio==1.3.0 starlette==0.27.0 sympy==1.12 threadpoolctl==3.2.0 tifffile==2023.7.18 toolz==0.12.0 torch==2.0.1+cu118 torchvision==0.15.2+cu118 tqdm==4.63.0 typing_extensions==4.7.1 uc-micro-py==1.0.2 urllib3==2.0.4 uvicorn==0.23.1 websockets==11.0.3 yarl==1.9.2

I hope this helps someone.

taidilixiang commented 1 year ago

This repo has soooooooooooooooo many environment problems. The owner of the repository is likely reusing the environment and therefore may not be aware of the issue.

I use anaconda on windows.

prepare

Install CUDA(11.6) and CUDNN(8.x) from NVIDIA and do #29 (comment)

install packages.

  1. conda create -n 'layerdivider' python=3.10
  2. conda activate layerdivider
  3. python -m pip install -r requirements.txt
  4. python -m pip install opencv-python pycocotools matplotlib onnxruntime onnx belong here:https://github.com/facebookresearch/segment-anything
  5. python -m pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
  6. python -m pip install cython packbits onnx onnxruntime-gpu opencv-python numpy Pillow scikit-learn psd-tools requests # maybe already installed.
  7. python -m pip uninstall gradio # Avoid gradio queue's bug.
  8. python -m pip install gradio==3.39.0
  9. python -m pip uninstall pytoshop
  10. python -m pip install pytoshop --no-cache-dir # Avoid pytoshop's bug.

my pip freeze results I hope this helps someone.

Thank you for solving my problem