microsoft/X-Decoder

About running the x-decoder demo

Opened this issue · 1 comments

Thank you for your great work.

I am trying to run the X-Decoder demo in a local environment.

I want to run run_demo.sh but it doesn't work because torch and triton versions conflict.
Also, there is no demo.py in python demo/seem/demo.py.

I also get the error No module named 'modeling' when I try to run app.py. Is there a solution to this?

I look forward to hearing from you.

  1. I tested my local environment, triton is not needed for X-Decoder/SEEM, as I didn't install it.
Screenshot 2023-10-11 at 11 39 01 PM
  1. Which demo do you want to run? The current run_demo.sh are referring to SEEM (I highly suggest you run from SEEM repo that is better supported for now). If you want to run X-Decoder, please temporarily refer to https://huggingface.co/spaces/xdecoder/Demo/tree/main

  2. Thanks for your references, I just fixed demo.py to app.py, that is a typo.

  3. This is very strange, are you running python3 demo/seem/app.py? You could try to add at the very top of app.py
    pth = '/'.join(sys.path[0].split('/')[:-2]) sys.path.insert(0, pth)