Skip to content

Commit fd3b4c0

Browse files
authored
omniarser avoi installing cv2 headless (#2676)
1 parent a11b88f commit fd3b4c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notebooks/omniparser/omniparser.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,21 @@
104104
" \"torch>=2.1\",\n",
105105
" \"torchvision\",\n",
106106
" \"accelerate\",\n",
107-
" \"supervision==0.18.0\",\n",
108107
" \"transformers>=4.45\",\n",
109108
" \"timm\",\n",
110109
" \"einops==0.8.0\",\n",
111110
" \"ultralytics==8.3.59\",\n",
112111
" \"pillow\",\n",
113112
" \"opencv-python\",\n",
114113
" \"gradio>=4.19\",\n",
114+
" \"defusedxml\",\n",
115+
" \"pyyaml\",\n",
116+
" \"scipy\",\n",
117+
" \"tqdm\",\n",
115118
" \"--extra-index-url\",\n",
116119
" \"https://download.pytorch.org/whl/cpu\",\n",
117120
")\n",
121+
"pip_install(\"--no-deps\", \"supervision==0.18.0\")\n",
118122
"pip_install(\"easyocr\", \"--extra-index-url\", \"https://download.pytorch.org/whl/cpu\")\n",
119123
"pip_install(\"openvino>=2024.4.0\")\n",
120124
"\n",

0 commit comments

Comments
 (0)