Skip to content

Commit

Permalink
Revert "add stable diffusion integration" (#1238)
Browse files Browse the repository at this point in the history
Reverts #1111 

This PR breaks the staging. I will work with @sudoboi to fix and improve
the issues we found.

Co-authored-by: Abhijith S Raj <[email protected]>
  • Loading branch information
xzdandy and sudoboi authored Sep 29, 2023
1 parent 551f066 commit 90ac532
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 642 deletions.
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

0 comments on commit 90ac532

Please sign in to comment.