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

Not able to install package using setuptools (setup.py) on AzureML #243

Open
oliviervluijk opened this issue Jan 5, 2024 · 1 comment
Open

Comments

@oliviervluijk
Copy link

oliviervluijk commented Jan 5, 2024

I'm currently working on the implementation of this github on AzureML. I've succesfully created an environment with CUDA and torch and this environment is succesfully compiled. Step 4 of the installation guide is installing the package using a setup.py file (to install MultiScaleDeformableAttention):

python setup.py build install

The method I used now if using subprocess in the main.py file to install this setup.py directly to the compute.

subprocess.run(["python", "setup.py", "build", "install"])

I can find the following information in my logfile, which indicates that the installation was succesfull:

Installed /opt/conda/envs/ptca/lib/python3.8/site-packages/MultiScaleDeformableAttention-1.0-py3.8-linux-x86_64.egg Processing dependencies for MultiScaleDeformableAttention==1.0 Finished processing dependencies for MultiScaleDeformableAttention==1.0

When MultiScaleDeformableAttention is imported (either manually or in the code function build_model_main()) I get the following error: ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'.
I've also tried installing it after this installing with pip install multiscaledeformableattention, but got the same error unfortunately

Question: How can I succesfully import/install the package on AzureML?

BTW: I checked whether GPU is available using and the output is True

print(torch.cuda.is_available())

Thanks for your help

@meirashaf
Copy link

you have the same problem as this issue https://github.com/CASIA-IVA-LAB/DPT/issues/1

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