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

Add PuLID VRAM leak reproduction tests #2891

Merged
merged 2 commits into from
May 15, 2024
Merged

Conversation

huchenlei
Copy link
Collaborator

#2862

This PR adds tests on detect endpoint on PuLID and generation with PuLID.

To run test:

  • Open task manager to monitor VRAM usage
  • Make sure an SDXL model is selected
  • Install test dependencies by executing pip install -r requirements-test.txt under webui directory
  • Under webui directory, execute python -m pytest --junitxml=test/results.xml --cov .\extensions\sd-webui-controlnet\ --cov-report=xml --verify-base-url .\extensions\sd-webui-controlnet\tests\web_api\generation_test.py::test_pulid to run generation test.

Observation:
image
You can observe that vram generally kept stable after 6 runs with different ref images.

@huchenlei huchenlei merged commit 58f620c into Mikubill:main May 15, 2024
2 checks passed
@huchenlei huchenlei deleted the repro branch May 15, 2024 02:15
@JIAOJIAYUASD
Copy link

When I use Pulid with the new version of controlnet, I also get a OOM after 9 reference images change. My controlnet version is v1.1.448.

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

Successfully merging this pull request may close these issues.

2 participants