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

Docker env not work, and need few modifications to run the code #87

Open
iLori-Jiang opened this issue Jul 2, 2024 · 0 comments
Open

Comments

@iLori-Jiang
Copy link

First of all, thanks for your amazing job.

However, when I try to run the code, I failed to use the docker environment that you provided.

After a long time struggling, I took modifications suggested by
(1) #66
(2) #33

Then build the conda environment from ./demo/environment.yaml, where I also met a package version conflict and I changed the NumPy to 'numpy==1.23.5' version.

What's more, the model that you provided in the HF are of '.bin' format, while in the 'gligen_inference.py' it will read the model in '.pth' format. What I did is to rename the model by the code, and change the reading format directly to '.bin' in the code.

After all these modifications, I can successfully run the inference and yield results. It would be nice if you could update the README to make the tutorial more clear, and I hope my struggle can help other people.

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

1 participant