vision-agent 0.2.191__tar.gz → 0.2.192__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {vision_agent-0.2.191 → vision_agent-0.2.192}/PKG-INFO +1 -1
- {vision_agent-0.2.191 → vision_agent-0.2.192}/pyproject.toml +1 -1
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/tools.py +6 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/LICENSE +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/README.md +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/agent.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/agent_utils.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_coder.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_coder_prompts.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_planner.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_planner_prompts.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_prompts.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/clients/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/clients/http.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/clients/landing_public_api.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/fonts/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/fonts/default_font_ch_en.ttf +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/lmm/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/lmm/lmm.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/lmm/types.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/meta_tools.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/prompts.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/tool_utils.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/tools/tools_types.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/__init__.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/exceptions.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/execute.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/image_utils.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/sim.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/type_defs.py +0 -0
- {vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/utils/video.py +0 -0
@@ -1806,6 +1806,12 @@ def flux_image_inpainting(
|
|
1806
1806
|
):
|
1807
1807
|
raise ValueError("The image or mask does not have enough size for inpainting")
|
1808
1808
|
|
1809
|
+
if image.shape[0] % 8 != 0 or image.shape[1] % 8 != 0:
|
1810
|
+
new_height = (image.shape[0] // 8) * 8
|
1811
|
+
new_width = (image.shape[1] // 8) * 8
|
1812
|
+
image = cv2.resize(image, (new_width, new_height))
|
1813
|
+
mask = cv2.resize(mask, (new_width, new_height))
|
1814
|
+
|
1809
1815
|
if np.array_equal(mask, mask.astype(bool).astype(int)):
|
1810
1816
|
mask = np.where(mask > 0, 255, 0).astype(np.uint8)
|
1811
1817
|
else:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_coder_prompts.py
RENAMED
File without changes
|
File without changes
|
{vision_agent-0.2.191 → vision_agent-0.2.192}/vision_agent/agent/vision_agent_planner_prompts.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|