microsoft / X-Decoder

[CVPR 2023] Official Implementation of X-Decoder for generalized decoding for pixel, image and language
Apache License 2.0
1.29k stars 135 forks source link

About running the x-decoder demo #85

Open 1020154KazumaSato opened 1 year ago

1020154KazumaSato commented 1 year ago

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.

MaureenZOU commented 1 year ago
  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
  2. 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

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

  4. 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)