Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Sep 13, 2024
1 parent 0497891 commit f6bf397
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion horde/bridge_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def parse_bridge_agent(bridge_agent):
@logger.catch(reraise=True)
def check_bridge_capability(capability, bridge_agent):
bridge_name, bridge_version = parse_bridge_agent(bridge_agent)
logger.debug([bridge_name, bridge_version])
# logger.debug([bridge_name, bridge_version])
if bridge_name not in BRIDGE_CAPABILITIES:
return False
total_capabilities = set()
Expand Down
2 changes: 1 addition & 1 deletion horde/classes/stable/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def can_generate(self, waiting_prompt):
if not waiting_prompt.safe_ip and not self.allow_unsafe_ipaddr:
return [False, "unsafe_ip"]
if self.limit_max_steps:
for mn in waiting_prompt.model_names():
for mn in waiting_prompt.get_model_names():
avg_steps = (
int(
model_reference.get_model_requirements(mn).get("min_steps", 20)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_flux_image_gen(api_key: str, HORDE_URL: str, CIVERSION: str) -> None:
"sampler_name": "k_euler",
},
"models": TEST_MODELS_FLUX,
# "extra_slow_workers": True,
"extra_slow_workers": True,
}
protocol = "http"
if HORDE_URL in ["dev.stablehorde.net", "stablehorde.net"]:
Expand All @@ -129,7 +129,7 @@ def test_flux_image_gen(api_key: str, HORDE_URL: str, CIVERSION: str) -> None:
pop_dict = {
"name": "CICD Fake Dreamer",
"models": TEST_MODELS_FLUX,
"bridge_agent": "AI Horde Worker reGen:9.0.0-citests:https://github.com/Haidra-Org/horde-worker-reGen",
"bridge_agent": "AI Horde Worker reGen:9.1.0-citests:https://github.com/Haidra-Org/horde-worker-reGen",
"nsfw": True,
"amount": 10,
"max_pixels": 4194304,
Expand All @@ -140,8 +140,8 @@ def test_flux_image_gen(api_key: str, HORDE_URL: str, CIVERSION: str) -> None:
"allow_controlnet": True,
"allow_sdxl_controlnet": True,
"allow_lora": True,
# "extra_slow_worker": True,
# "limit_max_steps": True,
"extra_slow_worker": True,
"limit_max_steps": True,
}
pop_req = requests.post(f"{protocol}://{HORDE_URL}/api/v2/generate/pop", json=pop_dict, headers=headers)
try:
Expand Down

0 comments on commit f6bf397

Please sign in to comment.