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

0.15.0 windows not working #56

Closed
Tobe2d opened this issue Jul 25, 2022 · 8 comments
Closed

0.15.0 windows not working #56

Tobe2d opened this issue Jul 25, 2022 · 8 comments

Comments

@Tobe2d
Copy link

Tobe2d commented Jul 25, 2022

I updated from V0.14.0 to V0.15.0 and try to run it using:
python main.py

(lama015) C:\Users\username\Documents\Ai_Ml\lama-cleaner-0.15>python main.py
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

I installed it using conda new env and installed pytorch
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch

I wax using 0.14.0 and it was working perfictly with almost 0 issues
something had changed cusing this.

@Sanster
Copy link
Owner

Sanster commented Jul 25, 2022

I found the solution here

I don't have an environment to reproduce the problem, please try this command: KMP_DUPLICATE_LIB_OK=True python main.py

@Tobe2d
Copy link
Author

Tobe2d commented Jul 25, 2022

When I try KMP_DUPLICATE_LIB_OK=True python main.py

Got this error:
KMP_DUPLICATE_LIB_OK is not recognized as an internal or external command,
operable program or batch file.

@Sanster
Copy link
Owner

Sanster commented Jul 25, 2022

On windows it should be set KMP_DUPLICATE_LIB_OK=True && python main.py

@Tobe2d
Copy link
Author

Tobe2d commented Jul 25, 2022

It work using set KMP_DUPLICATE_LIB_OK=True && python main.py
However, when i try to use it It show this error:
image
it show this on the Terminal:
127.0.0.1 - - [25/Jul/2022 17:38:16] "POST /inpaint HTTP/1.1" 400 -

One more thing to note, in settings it does not show the new model (ZITS):
image

@Sanster
Copy link
Owner

Sanster commented Jul 25, 2022

I tried set KMP_DUPLICATE_LIB_OK=True && python main.py in a new conda environment on windows, it works fine. Not sure why there are the problems you are experiencing

@Tobe2d
Copy link
Author

Tobe2d commented Jul 25, 2022

I will test on new env, thx

@Tobe2d
Copy link
Author

Tobe2d commented Jul 25, 2022

Yes you are right. On new Env. it does work. I think something changed since 0.14

Any ways, thank you so much ;-)

@Sanster
Copy link
Owner

Sanster commented Jul 26, 2022

🥳

cookieranger pushed a commit to cookieranger/lama-cleaner that referenced this issue Jan 16, 2023
keeneyetact added a commit to keeneyetact/lama that referenced this issue Jul 4, 2023
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