mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-10-31 03:20:40 +00:00
59648dbe61
add some experiments
18 lines
413 B
Python
18 lines
413 B
Python
import sys
|
|
|
|
import pytest
|
|
|
|
from imaginairy import api
|
|
from imaginairy.suppress_logs import suppress_annoying_logs_and_warnings
|
|
from imaginairy.utils import fix_torch_nn_layer_norm
|
|
|
|
if "pytest" in str(sys.argv):
|
|
suppress_annoying_logs_and_warnings()
|
|
|
|
|
|
@pytest.fixture(scope="session", autouse=True)
|
|
def pre_setup():
|
|
api.IMAGINAIRY_SAFETY_MODE = "disabled"
|
|
with fix_torch_nn_layer_norm():
|
|
yield
|