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

Revert "add stable diffusion integration" #1238

Merged
merged 1 commit into from
Sep 29, 2023
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
79 changes: 0 additions & 79 deletions evadb/functions/dalle.py

This file was deleted.

12 changes: 0 additions & 12 deletions evadb/functions/function_bootstrap_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,6 @@
MODEL 'yolov8n.pt';
"""

stablediffusion_function_query = """CREATE FUNCTION IF NOT EXISTS StableDiffusion
IMPL '{}/functions/stable_diffusion.py';
""".format(
EvaDB_INSTALLATION_DIR
)

dalle_function_query = """CREATE FUNCTION IF NOT EXISTS StableDiffusion
IMPL '{}/functions/dalle.py';
""".format(
EvaDB_INSTALLATION_DIR
)


def init_builtin_functions(db: EvaDBDatabase, mode: str = "debug") -> None:
"""Load the built-in functions into the system during system bootstrapping.
Expand Down
88 changes: 0 additions & 88 deletions evadb/functions/stable_diffusion.py

This file was deleted.

18 changes: 0 additions & 18 deletions evadb/utils/generic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,21 +596,3 @@ def string_comparison_case_insensitive(string_1, string_2) -> bool:
return False

return string_1.lower() == string_2.lower()


def try_to_import_replicate():
try:
import replicate # noqa: F401
except ImportError:
raise ValueError(
"""Could not import replicate python package.
Please install it with `pip install replicate`."""
)


def is_replicate_available():
try:
try_to_import_replicate()
return True
except ValueError:
return False
60 changes: 0 additions & 60 deletions test/integration_tests/long/functions/test_dalle.py

This file was deleted.

61 changes: 0 additions & 61 deletions test/integration_tests/long/functions/test_selfdiffusion.py

This file was deleted.

5 changes: 0 additions & 5 deletions test/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
is_ludwig_available,
is_pinecone_available,
is_qdrant_available,
is_replicate_available,
is_sklearn_available,
)

Expand Down Expand Up @@ -97,7 +96,3 @@
is_forecast_available() is False,
reason="Run only if forecasting packages available",
)

stable_diffusion_skip_marker = pytest.mark.skipif(
is_replicate_available() is False, reason="requires replicate"
)
Loading