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

Run attention generator tests without spaCy #709

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
with:
python-version: "3.10"
cache: "pip"
- name: Install CPU Torch
run: pip3 install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
- name: Install dependencies
run: |
python -m pip install pytest-cov
Expand Down
4 changes: 0 additions & 4 deletions tests/prompts/test_attention_generator.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import pytest

from sd_dynamic_prompts.attention_generator import SpecialSyntaxAwareAttentionGenerator


@pytest.mark.slow
def test_default_generator():
pytest.importorskip("spacy")
generator = SpecialSyntaxAwareAttentionGenerator()
for prompt in generator.generate(
"purple cat singing opera, artistic, painting "
Expand Down