vision-agent 0.2.191__py3-none-any.whl → 0.2.192__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vision-agent
3
- Version: 0.2.191
3
+ Version: 0.2.192
4
4
  Summary: Toolset for Vision Agent
5
5
  Author: Landing AI
6
6
  Author-email: dev@landing.ai
@@ -20,7 +20,7 @@ vision_agent/tools/__init__.py,sha256=UrpGFB1ACOZZCAyj8vNw0IHhKm9wGp0qHOtci2cqAM
20
20
  vision_agent/tools/meta_tools.py,sha256=by7TIbH7lsLIayX_Pe2mS1iw8aeLn2T8yqAo8SkB9Kg,32074
21
21
  vision_agent/tools/prompts.py,sha256=V1z4YJLXZuUl_iZ5rY0M5hHc_2tmMEUKr0WocXKGt4E,1430
22
22
  vision_agent/tools/tool_utils.py,sha256=VPGqGJ2ZYEJA6AW7K9X7hQv6vRlMtAQcybE4izdToCw,8196
23
- vision_agent/tools/tools.py,sha256=72Ml8kxtaqIqrh4hiZQ81f5Mrl-7z-W1a6bCjIMBvoA,84952
23
+ vision_agent/tools/tools.py,sha256=-tLscn7UpBr7lwCopqm3ikReB7wnQ5--XNK9RG7Cnn0,85221
24
24
  vision_agent/tools/tools_types.py,sha256=8hYf2OZhI58gvf65KGaeGkt4EQ56nwLFqIQDPHioOBc,2339
25
25
  vision_agent/utils/__init__.py,sha256=7fMgbZiEwbNS0fBOS_hJI5PuEYBblw36zLi_UjUzvj4,244
26
26
  vision_agent/utils/exceptions.py,sha256=booSPSuoULF7OXRr_YbC4dtKt6gM_HyiFQHBuaW86C4,2052
@@ -29,7 +29,7 @@ vision_agent/utils/image_utils.py,sha256=rm9GfXvD4JrjnqKrP_f2gfq4SzmqYC0IdC1kKwd
29
29
  vision_agent/utils/sim.py,sha256=ZuSS07TUXFGjipmiQoY8TKRmSes7XXCdtU9PI8PC1sw,5609
30
30
  vision_agent/utils/type_defs.py,sha256=BE12s3JNQy36QvauXHjwyeffVh5enfcvd4vTzSwvEZI,1384
31
31
  vision_agent/utils/video.py,sha256=tRcGp4vEnaDycigL1hBO9k0FBPtDH35fCQciVr9GqYI,6013
32
- vision_agent-0.2.191.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
33
- vision_agent-0.2.191.dist-info/METADATA,sha256=eZGSUWuHBTmyStliR_oxFyoWMeLW0_0qP2ULx8y_-1E,18067
34
- vision_agent-0.2.191.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
35
- vision_agent-0.2.191.dist-info/RECORD,,
32
+ vision_agent-0.2.192.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
33
+ vision_agent-0.2.192.dist-info/METADATA,sha256=t9RdkK_2KK8hR7VDCWagcQHnzXCObxoeSK0o2Fsn8cI,18067
34
+ vision_agent-0.2.192.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
35
+ vision_agent-0.2.192.dist-info/RECORD,,