Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About running the x-decoder demo #85

Open
1020154KazumaSato opened this issue Oct 12, 2023 · 1 comment
Open

About running the x-decoder demo #85

1020154KazumaSato opened this issue Oct 12, 2023 · 1 comment

Comments

@1020154KazumaSato
Copy link

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
Copy link
Collaborator

  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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants