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
[x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you make sure to update the documentation with your changes? E.g. record bug fixes or new features in What's New. Here are the
documentation guidelines
[x] Did you build and run the code without any errors?
[x] Did you report the running environment (NPU type/MS version) and performance in the doc? (better record it for data loading, model inference, or training tasks)
[x] Did you write any new necessary tests?
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.
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 theexamples/stable_diffusion_xl
. Therefore we use__file__
to get absolute path to replace relative path.Before submitting
What's New
. Here are the documentation guidelinesWho 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.