mindspore-lab / mindone

one for all, Optimal generator with No Exception
https://mindspore-lab.github.io/mindone/
Apache License 2.0
354 stars 68 forks source link

[sdxl] replace relative path by absolute path #347

Closed townwish4git closed 7 months ago

townwish4git commented 7 months ago

What does this PR do?

Fixes: The original code relied on relative path when sys.path.append(), which means the code can only run or be imported at the examples/stable_diffusion_xl. Therefore we use __file__ to get absolute path to replace relative path.

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.