Spaces:
Paused
Paused
alessandro trinca tornidor
commited on
Commit
·
7355def
1
Parent(s):
60fa201
[ci] prepare integration into samgis
Browse files- lisa_on_cuda/utils/app_helpers.py +7 -5
- notebooks/tests_colab.ipynb +624 -84
- poetry.lock +0 -0
- pyproject.toml +41 -0
lisa_on_cuda/utils/app_helpers.py
CHANGED
|
@@ -206,11 +206,11 @@ def get_inference_model_by_args(args_to_parse):
|
|
| 206 |
no_seg_out, error_happened = placeholders["no_seg_out"], placeholders["error_happened"]
|
| 207 |
|
| 208 |
@session_logger.set_uuid_logging
|
| 209 |
-
def inference(input_str,
|
| 210 |
## filter out special chars
|
| 211 |
input_str = get_cleaned_input(input_str)
|
| 212 |
-
logging.info(f"input_str type: {type(input_str)}, input_image type: {type(
|
| 213 |
-
logging.info(f"input_str: {input_str}, input_image: {type(
|
| 214 |
|
| 215 |
## input valid check
|
| 216 |
if not re.match(r"^[A-Za-z ,.!?\'\"]+$", input_str) or len(input_str) < 1:
|
|
@@ -232,8 +232,10 @@ def get_inference_model_by_args(args_to_parse):
|
|
| 232 |
conv.append_message(conv.roles[1], "")
|
| 233 |
prompt = conv.get_prompt()
|
| 234 |
|
| 235 |
-
image_np =
|
| 236 |
-
|
|
|
|
|
|
|
| 237 |
original_size_list = [image_np.shape[:2]]
|
| 238 |
|
| 239 |
image_clip = (
|
|
|
|
| 206 |
no_seg_out, error_happened = placeholders["no_seg_out"], placeholders["error_happened"]
|
| 207 |
|
| 208 |
@session_logger.set_uuid_logging
|
| 209 |
+
def inference(input_str: str, input_image: str | np.ndarray):
|
| 210 |
## filter out special chars
|
| 211 |
input_str = get_cleaned_input(input_str)
|
| 212 |
+
logging.info(f"input_str type: {type(input_str)}, input_image type: {type(input_image)}.")
|
| 213 |
+
logging.info(f"input_str: {input_str}, input_image: {type(input_image)}.")
|
| 214 |
|
| 215 |
## input valid check
|
| 216 |
if not re.match(r"^[A-Za-z ,.!?\'\"]+$", input_str) or len(input_str) < 1:
|
|
|
|
| 232 |
conv.append_message(conv.roles[1], "")
|
| 233 |
prompt = conv.get_prompt()
|
| 234 |
|
| 235 |
+
image_np = input_image
|
| 236 |
+
if isinstance(input_image, str):
|
| 237 |
+
image_np = cv2.imread(input_image)
|
| 238 |
+
image_np = cv2.cvtColor(image_np, cv2.COLOR_BGR2RGB)
|
| 239 |
original_size_list = [image_np.shape[:2]]
|
| 240 |
|
| 241 |
image_clip = (
|
notebooks/tests_colab.ipynb
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"accelerator": "GPU",
|
| 17 |
"widgets": {
|
| 18 |
"application/vnd.jupyter.widget-state+json": {
|
| 19 |
-
"
|
| 20 |
"model_module": "@jupyter-widgets/controls",
|
| 21 |
"model_name": "HBoxModel",
|
| 22 |
"model_module_version": "1.5.0",
|
|
@@ -31,14 +31,14 @@
|
|
| 31 |
"_view_name": "HBoxView",
|
| 32 |
"box_style": "",
|
| 33 |
"children": [
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
],
|
| 38 |
-
"layout": "
|
| 39 |
}
|
| 40 |
},
|
| 41 |
-
"
|
| 42 |
"model_module": "@jupyter-widgets/controls",
|
| 43 |
"model_name": "HTMLModel",
|
| 44 |
"model_module_version": "1.5.0",
|
|
@@ -53,13 +53,13 @@
|
|
| 53 |
"_view_name": "HTMLView",
|
| 54 |
"description": "",
|
| 55 |
"description_tooltip": null,
|
| 56 |
-
"layout": "
|
| 57 |
"placeholder": "",
|
| 58 |
-
"style": "
|
| 59 |
"value": "Loading checkpoint shards: 100%"
|
| 60 |
}
|
| 61 |
},
|
| 62 |
-
"
|
| 63 |
"model_module": "@jupyter-widgets/controls",
|
| 64 |
"model_name": "FloatProgressModel",
|
| 65 |
"model_module_version": "1.5.0",
|
|
@@ -75,15 +75,15 @@
|
|
| 75 |
"bar_style": "success",
|
| 76 |
"description": "",
|
| 77 |
"description_tooltip": null,
|
| 78 |
-
"layout": "
|
| 79 |
"max": 3,
|
| 80 |
"min": 0,
|
| 81 |
"orientation": "horizontal",
|
| 82 |
-
"style": "
|
| 83 |
"value": 3
|
| 84 |
}
|
| 85 |
},
|
| 86 |
-
"
|
| 87 |
"model_module": "@jupyter-widgets/controls",
|
| 88 |
"model_name": "HTMLModel",
|
| 89 |
"model_module_version": "1.5.0",
|
|
@@ -98,13 +98,13 @@
|
|
| 98 |
"_view_name": "HTMLView",
|
| 99 |
"description": "",
|
| 100 |
"description_tooltip": null,
|
| 101 |
-
"layout": "
|
| 102 |
"placeholder": "",
|
| 103 |
-
"style": "
|
| 104 |
-
"value": " 3/3 [
|
| 105 |
}
|
| 106 |
},
|
| 107 |
-
"
|
| 108 |
"model_module": "@jupyter-widgets/base",
|
| 109 |
"model_name": "LayoutModel",
|
| 110 |
"model_module_version": "1.2.0",
|
|
@@ -156,7 +156,7 @@
|
|
| 156 |
"width": null
|
| 157 |
}
|
| 158 |
},
|
| 159 |
-
"
|
| 160 |
"model_module": "@jupyter-widgets/base",
|
| 161 |
"model_name": "LayoutModel",
|
| 162 |
"model_module_version": "1.2.0",
|
|
@@ -208,7 +208,7 @@
|
|
| 208 |
"width": null
|
| 209 |
}
|
| 210 |
},
|
| 211 |
-
"
|
| 212 |
"model_module": "@jupyter-widgets/controls",
|
| 213 |
"model_name": "DescriptionStyleModel",
|
| 214 |
"model_module_version": "1.5.0",
|
|
@@ -223,7 +223,7 @@
|
|
| 223 |
"description_width": ""
|
| 224 |
}
|
| 225 |
},
|
| 226 |
-
"
|
| 227 |
"model_module": "@jupyter-widgets/base",
|
| 228 |
"model_name": "LayoutModel",
|
| 229 |
"model_module_version": "1.2.0",
|
|
@@ -275,7 +275,7 @@
|
|
| 275 |
"width": null
|
| 276 |
}
|
| 277 |
},
|
| 278 |
-
"
|
| 279 |
"model_module": "@jupyter-widgets/controls",
|
| 280 |
"model_name": "ProgressStyleModel",
|
| 281 |
"model_module_version": "1.5.0",
|
|
@@ -291,7 +291,7 @@
|
|
| 291 |
"description_width": ""
|
| 292 |
}
|
| 293 |
},
|
| 294 |
-
"
|
| 295 |
"model_module": "@jupyter-widgets/base",
|
| 296 |
"model_name": "LayoutModel",
|
| 297 |
"model_module_version": "1.2.0",
|
|
@@ -343,7 +343,7 @@
|
|
| 343 |
"width": null
|
| 344 |
}
|
| 345 |
},
|
| 346 |
-
"
|
| 347 |
"model_module": "@jupyter-widgets/controls",
|
| 348 |
"model_name": "DescriptionStyleModel",
|
| 349 |
"model_module_version": "1.5.0",
|
|
@@ -394,6 +394,7 @@
|
|
| 394 |
"sudo apt install git-lfs -y\n",
|
| 395 |
"echo \"installed git-lfs\"\n",
|
| 396 |
"git clone https://huggingface.co/spaces/aletrn/lisa-on-cuda\n",
|
|
|
|
| 397 |
"# cd lisa-on-cuda\n",
|
| 398 |
"# git pull\n",
|
| 399 |
"echo \"cloned.\""
|
|
@@ -403,7 +404,7 @@
|
|
| 403 |
"base_uri": "https://localhost:8080/"
|
| 404 |
},
|
| 405 |
"id": "mbt3zCgrIXQd",
|
| 406 |
-
"outputId": "
|
| 407 |
},
|
| 408 |
"execution_count": 1,
|
| 409 |
"outputs": [
|
|
@@ -427,7 +428,53 @@
|
|
| 427 |
"\n",
|
| 428 |
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
|
| 429 |
"\n",
|
| 430 |
-
"Cloning into 'lisa-on-cuda'...\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 431 |
]
|
| 432 |
}
|
| 433 |
]
|
|
@@ -440,10 +487,499 @@
|
|
| 440 |
"print(\"ok\")"
|
| 441 |
],
|
| 442 |
"metadata": {
|
| 443 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 444 |
},
|
| 445 |
-
"execution_count":
|
| 446 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |
},
|
| 448 |
{
|
| 449 |
"cell_type": "code",
|
|
@@ -460,15 +996,15 @@
|
|
| 460 |
"base_uri": "https://localhost:8080/"
|
| 461 |
},
|
| 462 |
"id": "jwcwJ__nPhx-",
|
| 463 |
-
"outputId": "
|
| 464 |
},
|
| 465 |
-
"execution_count":
|
| 466 |
"outputs": [
|
| 467 |
{
|
| 468 |
"output_type": "stream",
|
| 469 |
"name": "stdout",
|
| 470 |
"text": [
|
| 471 |
-
"start notebook: now is 2024-03-
|
| 472 |
"Mounted at /content/gdrive/\n"
|
| 473 |
]
|
| 474 |
}
|
|
@@ -490,9 +1026,9 @@
|
|
| 490 |
"base_uri": "https://localhost:8080/"
|
| 491 |
},
|
| 492 |
"id": "RHo4vB4tRQL8",
|
| 493 |
-
"outputId": "
|
| 494 |
},
|
| 495 |
-
"execution_count":
|
| 496 |
"outputs": [
|
| 497 |
{
|
| 498 |
"output_type": "stream",
|
|
@@ -528,9 +1064,9 @@
|
|
| 528 |
"base_uri": "https://localhost:8080/"
|
| 529 |
},
|
| 530 |
"id": "E_d_5lEKRzyo",
|
| 531 |
-
"outputId": "
|
| 532 |
},
|
| 533 |
-
"execution_count":
|
| 534 |
"outputs": [
|
| 535 |
{
|
| 536 |
"output_type": "stream",
|
|
@@ -544,7 +1080,7 @@
|
|
| 544 |
"drwx------ 5 root root 4096 Mar 6 22:54 pip\n",
|
| 545 |
"drwx------ 2 root root 4096 Mar 8 21:12 torch\n",
|
| 546 |
"drwx------ 2 root root 4096 Mar 8 13:35 transformers\n",
|
| 547 |
-
"lrwxrwxrwx 1 root root 51 Mar
|
| 548 |
"ok\n"
|
| 549 |
]
|
| 550 |
}
|
|
@@ -564,9 +1100,9 @@
|
|
| 564 |
"base_uri": "https://localhost:8080/"
|
| 565 |
},
|
| 566 |
"id": "7C5Qjf6JMmGf",
|
| 567 |
-
"outputId": "
|
| 568 |
},
|
| 569 |
-
"execution_count":
|
| 570 |
"outputs": [
|
| 571 |
{
|
| 572 |
"output_type": "stream",
|
|
@@ -612,9 +1148,9 @@
|
|
| 612 |
"base_uri": "https://localhost:8080/"
|
| 613 |
},
|
| 614 |
"id": "rg7Hx-D06PI7",
|
| 615 |
-
"outputId": "
|
| 616 |
},
|
| 617 |
-
"execution_count":
|
| 618 |
"outputs": [
|
| 619 |
{
|
| 620 |
"output_type": "stream",
|
|
@@ -828,9 +1364,9 @@
|
|
| 828 |
"base_uri": "https://localhost:8080/"
|
| 829 |
},
|
| 830 |
"id": "LLQWY0bGO60Z",
|
| 831 |
-
"outputId": "
|
| 832 |
},
|
| 833 |
-
"execution_count":
|
| 834 |
"outputs": [
|
| 835 |
{
|
| 836 |
"output_type": "stream",
|
|
@@ -1355,7 +1891,11 @@
|
|
| 1355 |
"source": [
|
| 1356 |
"%cd /content/lisa-on-cuda/\n",
|
| 1357 |
"\n",
|
| 1358 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1359 |
"\n",
|
| 1360 |
"print(\"ok\")"
|
| 1361 |
],
|
|
@@ -1364,9 +1904,9 @@
|
|
| 1364 |
"base_uri": "https://localhost:8080/"
|
| 1365 |
},
|
| 1366 |
"id": "5ZTfd2uu-ii0",
|
| 1367 |
-
"outputId": "
|
| 1368 |
},
|
| 1369 |
-
"execution_count":
|
| 1370 |
"outputs": [
|
| 1371 |
{
|
| 1372 |
"output_type": "stream",
|
|
@@ -1382,7 +1922,7 @@
|
|
| 1382 |
"cell_type": "code",
|
| 1383 |
"source": [
|
| 1384 |
"import logging\n",
|
| 1385 |
-
"from utils import utils\n",
|
| 1386 |
"import matplotlib.pyplot as plt\n",
|
| 1387 |
"\n",
|
| 1388 |
"logging.basicConfig(level=logging.INFO, force = True)\n",
|
|
@@ -1397,9 +1937,9 @@
|
|
| 1397 |
"base_uri": "https://localhost:8080/"
|
| 1398 |
},
|
| 1399 |
"id": "a8YNIvLRQePo",
|
| 1400 |
-
"outputId": "
|
| 1401 |
},
|
| 1402 |
-
"execution_count":
|
| 1403 |
"outputs": [
|
| 1404 |
{
|
| 1405 |
"output_type": "stream",
|
|
@@ -1433,9 +1973,9 @@
|
|
| 1433 |
"colab": {
|
| 1434 |
"base_uri": "https://localhost:8080/"
|
| 1435 |
},
|
| 1436 |
-
"outputId": "
|
| 1437 |
},
|
| 1438 |
-
"execution_count":
|
| 1439 |
"outputs": [
|
| 1440 |
{
|
| 1441 |
"output_type": "stream",
|
|
@@ -1462,23 +2002,23 @@
|
|
| 1462 |
"base_uri": "https://localhost:8080/",
|
| 1463 |
"height": 319,
|
| 1464 |
"referenced_widgets": [
|
| 1465 |
-
"
|
| 1466 |
-
"
|
| 1467 |
-
"
|
| 1468 |
-
"
|
| 1469 |
-
"
|
| 1470 |
-
"
|
| 1471 |
-
"
|
| 1472 |
-
"
|
| 1473 |
-
"
|
| 1474 |
-
"
|
| 1475 |
-
"
|
| 1476 |
]
|
| 1477 |
},
|
| 1478 |
"id": "aJHut43ETK3P",
|
| 1479 |
-
"outputId": "
|
| 1480 |
},
|
| 1481 |
-
"execution_count":
|
| 1482 |
"outputs": [
|
| 1483 |
{
|
| 1484 |
"output_type": "stream",
|
|
@@ -1492,7 +2032,7 @@
|
|
| 1492 |
"output_type": "stream",
|
| 1493 |
"name": "stdout",
|
| 1494 |
"text": [
|
| 1495 |
-
"start the creation of the inference function, now is 2024-03-10
|
| 1496 |
]
|
| 1497 |
},
|
| 1498 |
{
|
|
@@ -1517,7 +2057,7 @@
|
|
| 1517 |
"application/vnd.jupyter.widget-view+json": {
|
| 1518 |
"version_major": 2,
|
| 1519 |
"version_minor": 0,
|
| 1520 |
-
"model_id": "
|
| 1521 |
}
|
| 1522 |
},
|
| 1523 |
"metadata": {}
|
|
@@ -1564,9 +2104,9 @@
|
|
| 1564 |
"base_uri": "https://localhost:8080/"
|
| 1565 |
},
|
| 1566 |
"id": "rtPoSzRMTOOH",
|
| 1567 |
-
"outputId": "
|
| 1568 |
},
|
| 1569 |
-
"execution_count":
|
| 1570 |
"outputs": [
|
| 1571 |
{
|
| 1572 |
"output_type": "stream",
|
|
@@ -1582,7 +2122,7 @@
|
|
| 1582 |
"output_type": "stream",
|
| 1583 |
"name": "stdout",
|
| 1584 |
"text": [
|
| 1585 |
-
"start inference using inference_fn, now is 2024-03-10
|
| 1586 |
"input_prompt:Where can the driver see the car speed in this image? Please output segmentation mask..\n"
|
| 1587 |
]
|
| 1588 |
},
|
|
@@ -1628,12 +2168,12 @@
|
|
| 1628 |
"metadata": {
|
| 1629 |
"colab": {
|
| 1630 |
"base_uri": "https://localhost:8080/",
|
| 1631 |
-
"height":
|
| 1632 |
},
|
| 1633 |
"id": "euOi0BKETQXG",
|
| 1634 |
-
"outputId": "
|
| 1635 |
},
|
| 1636 |
-
"execution_count":
|
| 1637 |
"outputs": [
|
| 1638 |
{
|
| 1639 |
"output_type": "stream",
|
|
@@ -1659,7 +2199,7 @@
|
|
| 1659 |
"source": [
|
| 1660 |
"import cv2\n",
|
| 1661 |
"from PIL import Image\n",
|
| 1662 |
-
"from utils import utils\n",
|
| 1663 |
"\n",
|
| 1664 |
"\"\"\"\n",
|
| 1665 |
"# current_example_path = str(utils.ROOT / \"tests\" / \"imgs\" / f\"example{idx_example+1}_mask_0.png\")\n",
|
|
@@ -1684,9 +2224,9 @@
|
|
| 1684 |
"height": 506
|
| 1685 |
},
|
| 1686 |
"id": "0PEXxxgwVRRn",
|
| 1687 |
-
"outputId": "
|
| 1688 |
},
|
| 1689 |
-
"execution_count":
|
| 1690 |
"outputs": [
|
| 1691 |
{
|
| 1692 |
"output_type": "stream",
|
|
@@ -1707,11 +2247,11 @@
|
|
| 1707 |
"output_type": "execute_result",
|
| 1708 |
"data": {
|
| 1709 |
"text/plain": [
|
| 1710 |
-
"<matplotlib.image.AxesImage at
|
| 1711 |
]
|
| 1712 |
},
|
| 1713 |
"metadata": {},
|
| 1714 |
-
"execution_count":
|
| 1715 |
},
|
| 1716 |
{
|
| 1717 |
"output_type": "display_data",
|
|
@@ -1769,9 +2309,9 @@
|
|
| 1769 |
"base_uri": "https://localhost:8080/"
|
| 1770 |
},
|
| 1771 |
"id": "sZy30KDUVVJ_",
|
| 1772 |
-
"outputId": "
|
| 1773 |
},
|
| 1774 |
-
"execution_count":
|
| 1775 |
"outputs": [
|
| 1776 |
{
|
| 1777 |
"output_type": "stream",
|
|
@@ -1797,16 +2337,16 @@
|
|
| 1797 |
"\n",
|
| 1798 |
"ls -l /root/.cache/huggingface/hub/models--xinlai--LISA*/*/*\n",
|
| 1799 |
"\n",
|
| 1800 |
-
"echo \"end
|
| 1801 |
],
|
| 1802 |
"metadata": {
|
| 1803 |
"colab": {
|
| 1804 |
"base_uri": "https://localhost:8080/"
|
| 1805 |
},
|
| 1806 |
"id": "d7HoGCK_6ePE",
|
| 1807 |
-
"outputId": "
|
| 1808 |
},
|
| 1809 |
-
"execution_count":
|
| 1810 |
"outputs": [
|
| 1811 |
{
|
| 1812 |
"output_type": "stream",
|
|
@@ -1854,15 +2394,15 @@
|
|
| 1854 |
"base_uri": "https://localhost:8080/"
|
| 1855 |
},
|
| 1856 |
"id": "W7fsszLV7YCK",
|
| 1857 |
-
"outputId": "
|
| 1858 |
},
|
| 1859 |
-
"execution_count":
|
| 1860 |
"outputs": [
|
| 1861 |
{
|
| 1862 |
"output_type": "stream",
|
| 1863 |
"name": "stdout",
|
| 1864 |
"text": [
|
| 1865 |
-
"start notebook: now is 2024-03-10
|
| 1866 |
]
|
| 1867 |
}
|
| 1868 |
]
|
|
@@ -1877,7 +2417,7 @@
|
|
| 1877 |
"metadata": {
|
| 1878 |
"id": "1h1eIdUibJXo"
|
| 1879 |
},
|
| 1880 |
-
"execution_count":
|
| 1881 |
"outputs": []
|
| 1882 |
}
|
| 1883 |
]
|
|
|
|
| 16 |
"accelerator": "GPU",
|
| 17 |
"widgets": {
|
| 18 |
"application/vnd.jupyter.widget-state+json": {
|
| 19 |
+
"e968b46a1ecb485fa9f164f6ec0f5569": {
|
| 20 |
"model_module": "@jupyter-widgets/controls",
|
| 21 |
"model_name": "HBoxModel",
|
| 22 |
"model_module_version": "1.5.0",
|
|
|
|
| 31 |
"_view_name": "HBoxView",
|
| 32 |
"box_style": "",
|
| 33 |
"children": [
|
| 34 |
+
"IPY_MODEL_759af27e6e3e439f9a8739c470d9b4ed",
|
| 35 |
+
"IPY_MODEL_5d5bd7bb543c44c48acb5a38d0e2b392",
|
| 36 |
+
"IPY_MODEL_77f3526c940841ec8c3d3bb1da85dbc8"
|
| 37 |
],
|
| 38 |
+
"layout": "IPY_MODEL_5eca36e7aa8a4775911eeb4c8684af6d"
|
| 39 |
}
|
| 40 |
},
|
| 41 |
+
"759af27e6e3e439f9a8739c470d9b4ed": {
|
| 42 |
"model_module": "@jupyter-widgets/controls",
|
| 43 |
"model_name": "HTMLModel",
|
| 44 |
"model_module_version": "1.5.0",
|
|
|
|
| 53 |
"_view_name": "HTMLView",
|
| 54 |
"description": "",
|
| 55 |
"description_tooltip": null,
|
| 56 |
+
"layout": "IPY_MODEL_944fa9555ead4941aa855bbd35a4f5d7",
|
| 57 |
"placeholder": "",
|
| 58 |
+
"style": "IPY_MODEL_2ad8fb9acc93495ca60d355ea4b0c161",
|
| 59 |
"value": "Loading checkpoint shards: 100%"
|
| 60 |
}
|
| 61 |
},
|
| 62 |
+
"5d5bd7bb543c44c48acb5a38d0e2b392": {
|
| 63 |
"model_module": "@jupyter-widgets/controls",
|
| 64 |
"model_name": "FloatProgressModel",
|
| 65 |
"model_module_version": "1.5.0",
|
|
|
|
| 75 |
"bar_style": "success",
|
| 76 |
"description": "",
|
| 77 |
"description_tooltip": null,
|
| 78 |
+
"layout": "IPY_MODEL_a03fbfb4742342758d99d4354a9191e5",
|
| 79 |
"max": 3,
|
| 80 |
"min": 0,
|
| 81 |
"orientation": "horizontal",
|
| 82 |
+
"style": "IPY_MODEL_e7f6ff163e4846388f621f41ad287bfb",
|
| 83 |
"value": 3
|
| 84 |
}
|
| 85 |
},
|
| 86 |
+
"77f3526c940841ec8c3d3bb1da85dbc8": {
|
| 87 |
"model_module": "@jupyter-widgets/controls",
|
| 88 |
"model_name": "HTMLModel",
|
| 89 |
"model_module_version": "1.5.0",
|
|
|
|
| 98 |
"_view_name": "HTMLView",
|
| 99 |
"description": "",
|
| 100 |
"description_tooltip": null,
|
| 101 |
+
"layout": "IPY_MODEL_de68261aa80941afb2759b764aa10226",
|
| 102 |
"placeholder": "",
|
| 103 |
+
"style": "IPY_MODEL_8d9f42c52f604fb590e77a3f5441ec09",
|
| 104 |
+
"value": " 3/3 [11:05<00:00, 210.21s/it]"
|
| 105 |
}
|
| 106 |
},
|
| 107 |
+
"5eca36e7aa8a4775911eeb4c8684af6d": {
|
| 108 |
"model_module": "@jupyter-widgets/base",
|
| 109 |
"model_name": "LayoutModel",
|
| 110 |
"model_module_version": "1.2.0",
|
|
|
|
| 156 |
"width": null
|
| 157 |
}
|
| 158 |
},
|
| 159 |
+
"944fa9555ead4941aa855bbd35a4f5d7": {
|
| 160 |
"model_module": "@jupyter-widgets/base",
|
| 161 |
"model_name": "LayoutModel",
|
| 162 |
"model_module_version": "1.2.0",
|
|
|
|
| 208 |
"width": null
|
| 209 |
}
|
| 210 |
},
|
| 211 |
+
"2ad8fb9acc93495ca60d355ea4b0c161": {
|
| 212 |
"model_module": "@jupyter-widgets/controls",
|
| 213 |
"model_name": "DescriptionStyleModel",
|
| 214 |
"model_module_version": "1.5.0",
|
|
|
|
| 223 |
"description_width": ""
|
| 224 |
}
|
| 225 |
},
|
| 226 |
+
"a03fbfb4742342758d99d4354a9191e5": {
|
| 227 |
"model_module": "@jupyter-widgets/base",
|
| 228 |
"model_name": "LayoutModel",
|
| 229 |
"model_module_version": "1.2.0",
|
|
|
|
| 275 |
"width": null
|
| 276 |
}
|
| 277 |
},
|
| 278 |
+
"e7f6ff163e4846388f621f41ad287bfb": {
|
| 279 |
"model_module": "@jupyter-widgets/controls",
|
| 280 |
"model_name": "ProgressStyleModel",
|
| 281 |
"model_module_version": "1.5.0",
|
|
|
|
| 291 |
"description_width": ""
|
| 292 |
}
|
| 293 |
},
|
| 294 |
+
"de68261aa80941afb2759b764aa10226": {
|
| 295 |
"model_module": "@jupyter-widgets/base",
|
| 296 |
"model_name": "LayoutModel",
|
| 297 |
"model_module_version": "1.2.0",
|
|
|
|
| 343 |
"width": null
|
| 344 |
}
|
| 345 |
},
|
| 346 |
+
"8d9f42c52f604fb590e77a3f5441ec09": {
|
| 347 |
"model_module": "@jupyter-widgets/controls",
|
| 348 |
"model_name": "DescriptionStyleModel",
|
| 349 |
"model_module_version": "1.5.0",
|
|
|
|
| 394 |
"sudo apt install git-lfs -y\n",
|
| 395 |
"echo \"installed git-lfs\"\n",
|
| 396 |
"git clone https://huggingface.co/spaces/aletrn/lisa-on-cuda\n",
|
| 397 |
+
"git checkout packaging\n",
|
| 398 |
"# cd lisa-on-cuda\n",
|
| 399 |
"# git pull\n",
|
| 400 |
"echo \"cloned.\""
|
|
|
|
| 404 |
"base_uri": "https://localhost:8080/"
|
| 405 |
},
|
| 406 |
"id": "mbt3zCgrIXQd",
|
| 407 |
+
"outputId": "bd1fe583-a85b-43ea-8eb9-255774e0b409"
|
| 408 |
},
|
| 409 |
"execution_count": 1,
|
| 410 |
"outputs": [
|
|
|
|
| 428 |
"\n",
|
| 429 |
"WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
|
| 430 |
"\n",
|
| 431 |
+
"Cloning into 'lisa-on-cuda'...\n",
|
| 432 |
+
"Filtering content: 48% (15/31)\rFiltering content: 51% (16/31)\rFiltering content: 54% (17/31)\rFiltering content: 58% (18/31)\rFiltering content: 61% (19/31)\rFiltering content: 64% (20/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 67% (21/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 70% (22/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 74% (23/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 77% (24/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 80% (25/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 83% (26/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 87% (27/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 90% (28/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 93% (29/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 96% (30/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 100% (31/31), 17.74 MiB | 33.28 MiB/s\rFiltering content: 100% (31/31), 19.13 MiB | 12.35 MiB/s, done.\n",
|
| 433 |
+
"fatal: not a git repository (or any of the parent directories): .git\n"
|
| 434 |
+
]
|
| 435 |
+
}
|
| 436 |
+
]
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"cell_type": "code",
|
| 440 |
+
"source": [
|
| 441 |
+
"%%bash\n",
|
| 442 |
+
"\n",
|
| 443 |
+
"cd /content/lisa-on-cuda/\n",
|
| 444 |
+
"git checkout packaging\n",
|
| 445 |
+
"git log|head"
|
| 446 |
+
],
|
| 447 |
+
"metadata": {
|
| 448 |
+
"colab": {
|
| 449 |
+
"base_uri": "https://localhost:8080/"
|
| 450 |
+
},
|
| 451 |
+
"id": "d1VEHQ5Zkq-8",
|
| 452 |
+
"outputId": "72e819bb-433e-408a-b382-5b3c5febc19a"
|
| 453 |
+
},
|
| 454 |
+
"execution_count": 6,
|
| 455 |
+
"outputs": [
|
| 456 |
+
{
|
| 457 |
+
"output_type": "stream",
|
| 458 |
+
"name": "stdout",
|
| 459 |
+
"text": [
|
| 460 |
+
"Branch 'packaging' set up to track remote branch 'packaging' from 'origin'.\n",
|
| 461 |
+
"commit 60fa201359a4a3ae870f114f647a9fd05b7a0d13\n",
|
| 462 |
+
"Author: alessandro trinca tornidor <[email protected]>\n",
|
| 463 |
+
"Date: Sun Mar 10 19:12:36 2024 +0100\n",
|
| 464 |
+
"\n",
|
| 465 |
+
" [refactor] prepare packaging moving all the modules under 'lisa_on_cuda' (renamed from 'model')\n",
|
| 466 |
+
"\n",
|
| 467 |
+
"commit 52318ecdc84c7f3e099ad62e05b0bb4956888985\n",
|
| 468 |
+
"Author: alessandro trinca tornidor <[email protected]>\n",
|
| 469 |
+
"Date: Sun Mar 10 01:30:58 2024 +0100\n",
|
| 470 |
+
"\n"
|
| 471 |
+
]
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"output_type": "stream",
|
| 475 |
+
"name": "stderr",
|
| 476 |
+
"text": [
|
| 477 |
+
"Switched to a new branch 'packaging'\n"
|
| 478 |
]
|
| 479 |
}
|
| 480 |
]
|
|
|
|
| 487 |
"print(\"ok\")"
|
| 488 |
],
|
| 489 |
"metadata": {
|
| 490 |
+
"colab": {
|
| 491 |
+
"base_uri": "https://localhost:8080/"
|
| 492 |
+
},
|
| 493 |
+
"id": "NzJXs40cfFFH",
|
| 494 |
+
"outputId": "436dbb22-2420-43c5-898c-c9184155c1c3"
|
| 495 |
},
|
| 496 |
+
"execution_count": 7,
|
| 497 |
+
"outputs": [
|
| 498 |
+
{
|
| 499 |
+
"output_type": "stream",
|
| 500 |
+
"name": "stdout",
|
| 501 |
+
"text": [
|
| 502 |
+
"absl-py==1.4.0\n",
|
| 503 |
+
"aiohttp==3.9.3\n",
|
| 504 |
+
"aiosignal==1.3.1\n",
|
| 505 |
+
"alabaster==0.7.16\n",
|
| 506 |
+
"albumentations==1.3.1\n",
|
| 507 |
+
"altair==4.2.2\n",
|
| 508 |
+
"annotated-types==0.6.0\n",
|
| 509 |
+
"anyio==3.7.1\n",
|
| 510 |
+
"appdirs==1.4.4\n",
|
| 511 |
+
"argon2-cffi==23.1.0\n",
|
| 512 |
+
"argon2-cffi-bindings==21.2.0\n",
|
| 513 |
+
"array-record==0.5.0\n",
|
| 514 |
+
"arviz==0.15.1\n",
|
| 515 |
+
"astropy==5.3.4\n",
|
| 516 |
+
"astunparse==1.6.3\n",
|
| 517 |
+
"async-timeout==4.0.3\n",
|
| 518 |
+
"atpublic==4.0\n",
|
| 519 |
+
"attrs==23.2.0\n",
|
| 520 |
+
"audioread==3.0.1\n",
|
| 521 |
+
"autograd==1.6.2\n",
|
| 522 |
+
"Babel==2.14.0\n",
|
| 523 |
+
"backcall==0.2.0\n",
|
| 524 |
+
"beautifulsoup4==4.12.3\n",
|
| 525 |
+
"bidict==0.23.1\n",
|
| 526 |
+
"bigframes==0.22.0\n",
|
| 527 |
+
"bleach==6.1.0\n",
|
| 528 |
+
"blinker==1.4\n",
|
| 529 |
+
"blis==0.7.11\n",
|
| 530 |
+
"blosc2==2.0.0\n",
|
| 531 |
+
"bokeh==3.3.4\n",
|
| 532 |
+
"bqplot==0.12.43\n",
|
| 533 |
+
"branca==0.7.1\n",
|
| 534 |
+
"build==1.1.1\n",
|
| 535 |
+
"CacheControl==0.14.0\n",
|
| 536 |
+
"cachetools==5.3.3\n",
|
| 537 |
+
"catalogue==2.0.10\n",
|
| 538 |
+
"certifi==2024.2.2\n",
|
| 539 |
+
"cffi==1.16.0\n",
|
| 540 |
+
"chardet==5.2.0\n",
|
| 541 |
+
"charset-normalizer==3.3.2\n",
|
| 542 |
+
"chex==0.1.85\n",
|
| 543 |
+
"click==8.1.7\n",
|
| 544 |
+
"click-plugins==1.1.1\n",
|
| 545 |
+
"cligj==0.7.2\n",
|
| 546 |
+
"cloudpathlib==0.16.0\n",
|
| 547 |
+
"cloudpickle==2.2.1\n",
|
| 548 |
+
"cmake==3.27.9\n",
|
| 549 |
+
"cmdstanpy==1.2.1\n",
|
| 550 |
+
"colorcet==3.1.0\n",
|
| 551 |
+
"colorlover==0.3.0\n",
|
| 552 |
+
"colour==0.1.5\n",
|
| 553 |
+
"community==1.0.0b1\n",
|
| 554 |
+
"confection==0.1.4\n",
|
| 555 |
+
"cons==0.4.6\n",
|
| 556 |
+
"contextlib2==21.6.0\n",
|
| 557 |
+
"contourpy==1.2.0\n",
|
| 558 |
+
"cryptography==42.0.5\n",
|
| 559 |
+
"cufflinks==0.17.3\n",
|
| 560 |
+
"cupy-cuda12x==12.2.0\n",
|
| 561 |
+
"cvxopt==1.3.2\n",
|
| 562 |
+
"cvxpy==1.3.3\n",
|
| 563 |
+
"cycler==0.12.1\n",
|
| 564 |
+
"cymem==2.0.8\n",
|
| 565 |
+
"Cython==3.0.9\n",
|
| 566 |
+
"dask==2023.8.1\n",
|
| 567 |
+
"datascience==0.17.6\n",
|
| 568 |
+
"db-dtypes==1.2.0\n",
|
| 569 |
+
"dbus-python==1.2.18\n",
|
| 570 |
+
"debugpy==1.6.6\n",
|
| 571 |
+
"decorator==4.4.2\n",
|
| 572 |
+
"defusedxml==0.7.1\n",
|
| 573 |
+
"distributed==2023.8.1\n",
|
| 574 |
+
"distro==1.7.0\n",
|
| 575 |
+
"dlib==19.24.2\n",
|
| 576 |
+
"dm-tree==0.1.8\n",
|
| 577 |
+
"docutils==0.18.1\n",
|
| 578 |
+
"dopamine-rl==4.0.6\n",
|
| 579 |
+
"duckdb==0.9.2\n",
|
| 580 |
+
"earthengine-api==0.1.392\n",
|
| 581 |
+
"easydict==1.13\n",
|
| 582 |
+
"ecos==2.0.13\n",
|
| 583 |
+
"editdistance==0.6.2\n",
|
| 584 |
+
"eerepr==0.0.4\n",
|
| 585 |
+
"en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl#sha256=86cc141f63942d4b2c5fcee06630fd6f904788d2f0ab005cce45aadb8fb73889\n",
|
| 586 |
+
"entrypoints==0.4\n",
|
| 587 |
+
"et-xmlfile==1.1.0\n",
|
| 588 |
+
"etils==1.7.0\n",
|
| 589 |
+
"etuples==0.3.9\n",
|
| 590 |
+
"exceptiongroup==1.2.0\n",
|
| 591 |
+
"fastai==2.7.14\n",
|
| 592 |
+
"fastcore==1.5.29\n",
|
| 593 |
+
"fastdownload==0.0.7\n",
|
| 594 |
+
"fastjsonschema==2.19.1\n",
|
| 595 |
+
"fastprogress==1.0.3\n",
|
| 596 |
+
"fastrlock==0.8.2\n",
|
| 597 |
+
"filelock==3.13.1\n",
|
| 598 |
+
"fiona==1.9.5\n",
|
| 599 |
+
"firebase-admin==5.3.0\n",
|
| 600 |
+
"Flask==2.2.5\n",
|
| 601 |
+
"flatbuffers==23.5.26\n",
|
| 602 |
+
"flax==0.8.1\n",
|
| 603 |
+
"folium==0.14.0\n",
|
| 604 |
+
"fonttools==4.49.0\n",
|
| 605 |
+
"frozendict==2.4.0\n",
|
| 606 |
+
"frozenlist==1.4.1\n",
|
| 607 |
+
"fsspec==2023.6.0\n",
|
| 608 |
+
"future==0.18.3\n",
|
| 609 |
+
"gast==0.5.4\n",
|
| 610 |
+
"gcsfs==2023.6.0\n",
|
| 611 |
+
"GDAL==3.6.4\n",
|
| 612 |
+
"gdown==4.7.3\n",
|
| 613 |
+
"geemap==0.32.0\n",
|
| 614 |
+
"gensim==4.3.2\n",
|
| 615 |
+
"geocoder==1.38.1\n",
|
| 616 |
+
"geographiclib==2.0\n",
|
| 617 |
+
"geopandas==0.13.2\n",
|
| 618 |
+
"geopy==2.3.0\n",
|
| 619 |
+
"gin-config==0.5.0\n",
|
| 620 |
+
"glob2==0.7\n",
|
| 621 |
+
"google==2.0.3\n",
|
| 622 |
+
"google-ai-generativelanguage==0.4.0\n",
|
| 623 |
+
"google-api-core==2.11.1\n",
|
| 624 |
+
"google-api-python-client==2.84.0\n",
|
| 625 |
+
"google-auth==2.27.0\n",
|
| 626 |
+
"google-auth-httplib2==0.1.1\n",
|
| 627 |
+
"google-auth-oauthlib==1.2.0\n",
|
| 628 |
+
"google-cloud-aiplatform==1.43.0\n",
|
| 629 |
+
"google-cloud-bigquery==3.12.0\n",
|
| 630 |
+
"google-cloud-bigquery-connection==1.12.1\n",
|
| 631 |
+
"google-cloud-bigquery-storage==2.24.0\n",
|
| 632 |
+
"google-cloud-core==2.3.3\n",
|
| 633 |
+
"google-cloud-datastore==2.15.2\n",
|
| 634 |
+
"google-cloud-firestore==2.11.1\n",
|
| 635 |
+
"google-cloud-functions==1.13.3\n",
|
| 636 |
+
"google-cloud-iam==2.14.3\n",
|
| 637 |
+
"google-cloud-language==2.13.3\n",
|
| 638 |
+
"google-cloud-resource-manager==1.12.3\n",
|
| 639 |
+
"google-cloud-storage==2.8.0\n",
|
| 640 |
+
"google-cloud-translate==3.11.3\n",
|
| 641 |
+
"google-colab @ file:///colabtools/dist/google-colab-1.0.0.tar.gz#sha256=e916d4e7c3ba6158df864a2e03852211d8fab20abb3db5205b865eedf4be9799\n",
|
| 642 |
+
"google-crc32c==1.5.0\n",
|
| 643 |
+
"google-generativeai==0.3.2\n",
|
| 644 |
+
"google-pasta==0.2.0\n",
|
| 645 |
+
"google-resumable-media==2.7.0\n",
|
| 646 |
+
"googleapis-common-protos==1.62.0\n",
|
| 647 |
+
"googledrivedownloader==0.4\n",
|
| 648 |
+
"graphviz==0.20.1\n",
|
| 649 |
+
"greenlet==3.0.3\n",
|
| 650 |
+
"grpc-google-iam-v1==0.13.0\n",
|
| 651 |
+
"grpcio==1.62.0\n",
|
| 652 |
+
"grpcio-status==1.48.2\n",
|
| 653 |
+
"gspread==3.4.2\n",
|
| 654 |
+
"gspread-dataframe==3.3.1\n",
|
| 655 |
+
"gym==0.25.2\n",
|
| 656 |
+
"gym-notices==0.0.8\n",
|
| 657 |
+
"h5netcdf==1.3.0\n",
|
| 658 |
+
"h5py==3.9.0\n",
|
| 659 |
+
"holidays==0.44\n",
|
| 660 |
+
"holoviews==1.17.1\n",
|
| 661 |
+
"html5lib==1.1\n",
|
| 662 |
+
"httpimport==1.3.1\n",
|
| 663 |
+
"httplib2==0.22.0\n",
|
| 664 |
+
"huggingface-hub==0.20.3\n",
|
| 665 |
+
"humanize==4.7.0\n",
|
| 666 |
+
"hyperopt==0.2.7\n",
|
| 667 |
+
"ibis-framework==7.1.0\n",
|
| 668 |
+
"idna==3.6\n",
|
| 669 |
+
"imageio==2.31.6\n",
|
| 670 |
+
"imageio-ffmpeg==0.4.9\n",
|
| 671 |
+
"imagesize==1.4.1\n",
|
| 672 |
+
"imbalanced-learn==0.10.1\n",
|
| 673 |
+
"imgaug==0.4.0\n",
|
| 674 |
+
"importlib-metadata==7.0.1\n",
|
| 675 |
+
"importlib_resources==6.1.2\n",
|
| 676 |
+
"imutils==0.5.4\n",
|
| 677 |
+
"inflect==7.0.0\n",
|
| 678 |
+
"iniconfig==2.0.0\n",
|
| 679 |
+
"intel-openmp==2023.2.3\n",
|
| 680 |
+
"ipyevents==2.0.2\n",
|
| 681 |
+
"ipyfilechooser==0.6.0\n",
|
| 682 |
+
"ipykernel==5.5.6\n",
|
| 683 |
+
"ipyleaflet==0.18.2\n",
|
| 684 |
+
"ipython==7.34.0\n",
|
| 685 |
+
"ipython-genutils==0.2.0\n",
|
| 686 |
+
"ipython-sql==0.5.0\n",
|
| 687 |
+
"ipytree==0.2.2\n",
|
| 688 |
+
"ipywidgets==7.7.1\n",
|
| 689 |
+
"itsdangerous==2.1.2\n",
|
| 690 |
+
"jax==0.4.23\n",
|
| 691 |
+
"jaxlib @ https://storage.googleapis.com/jax-releases/cuda12/jaxlib-0.4.23+cuda12.cudnn89-cp310-cp310-manylinux2014_x86_64.whl#sha256=8e42000672599e7ec0ea7f551acfcc95dcdd0e22b05a1d1f12f97b56a9fce4a8\n",
|
| 692 |
+
"jeepney==0.7.1\n",
|
| 693 |
+
"jieba==0.42.1\n",
|
| 694 |
+
"Jinja2==3.1.3\n",
|
| 695 |
+
"joblib==1.3.2\n",
|
| 696 |
+
"jsonpickle==3.0.3\n",
|
| 697 |
+
"jsonschema==4.19.2\n",
|
| 698 |
+
"jsonschema-specifications==2023.12.1\n",
|
| 699 |
+
"jupyter-client==6.1.12\n",
|
| 700 |
+
"jupyter-console==6.1.0\n",
|
| 701 |
+
"jupyter-server==1.24.0\n",
|
| 702 |
+
"jupyter_core==5.7.1\n",
|
| 703 |
+
"jupyterlab_pygments==0.3.0\n",
|
| 704 |
+
"jupyterlab_widgets==3.0.10\n",
|
| 705 |
+
"kaggle==1.5.16\n",
|
| 706 |
+
"kagglehub==0.2.0\n",
|
| 707 |
+
"keras==2.15.0\n",
|
| 708 |
+
"keyring==23.5.0\n",
|
| 709 |
+
"kiwisolver==1.4.5\n",
|
| 710 |
+
"langcodes==3.3.0\n",
|
| 711 |
+
"launchpadlib==1.10.16\n",
|
| 712 |
+
"lazr.restfulclient==0.14.4\n",
|
| 713 |
+
"lazr.uri==1.0.6\n",
|
| 714 |
+
"lazy_loader==0.3\n",
|
| 715 |
+
"libclang==16.0.6\n",
|
| 716 |
+
"librosa==0.10.1\n",
|
| 717 |
+
"lightgbm==4.1.0\n",
|
| 718 |
+
"linkify-it-py==2.0.3\n",
|
| 719 |
+
"llvmlite==0.41.1\n",
|
| 720 |
+
"locket==1.0.0\n",
|
| 721 |
+
"logical-unification==0.4.6\n",
|
| 722 |
+
"lxml==4.9.4\n",
|
| 723 |
+
"malloy==2023.1067\n",
|
| 724 |
+
"Markdown==3.5.2\n",
|
| 725 |
+
"markdown-it-py==3.0.0\n",
|
| 726 |
+
"MarkupSafe==2.1.5\n",
|
| 727 |
+
"matplotlib==3.7.1\n",
|
| 728 |
+
"matplotlib-inline==0.1.6\n",
|
| 729 |
+
"matplotlib-venn==0.11.10\n",
|
| 730 |
+
"mdit-py-plugins==0.4.0\n",
|
| 731 |
+
"mdurl==0.1.2\n",
|
| 732 |
+
"miniKanren==1.0.3\n",
|
| 733 |
+
"missingno==0.5.2\n",
|
| 734 |
+
"mistune==0.8.4\n",
|
| 735 |
+
"mizani==0.9.3\n",
|
| 736 |
+
"mkl==2023.2.0\n",
|
| 737 |
+
"ml-dtypes==0.2.0\n",
|
| 738 |
+
"mlxtend==0.22.0\n",
|
| 739 |
+
"more-itertools==10.1.0\n",
|
| 740 |
+
"moviepy==1.0.3\n",
|
| 741 |
+
"mpmath==1.3.0\n",
|
| 742 |
+
"msgpack==1.0.8\n",
|
| 743 |
+
"multidict==6.0.5\n",
|
| 744 |
+
"multipledispatch==1.0.0\n",
|
| 745 |
+
"multitasking==0.0.11\n",
|
| 746 |
+
"murmurhash==1.0.10\n",
|
| 747 |
+
"music21==9.1.0\n",
|
| 748 |
+
"natsort==8.4.0\n",
|
| 749 |
+
"nbclassic==1.0.0\n",
|
| 750 |
+
"nbclient==0.9.0\n",
|
| 751 |
+
"nbconvert==6.5.4\n",
|
| 752 |
+
"nbformat==5.9.2\n",
|
| 753 |
+
"nest-asyncio==1.6.0\n",
|
| 754 |
+
"networkx==3.2.1\n",
|
| 755 |
+
"nibabel==4.0.2\n",
|
| 756 |
+
"nltk==3.8.1\n",
|
| 757 |
+
"notebook==6.5.5\n",
|
| 758 |
+
"notebook_shim==0.2.4\n",
|
| 759 |
+
"numba==0.58.1\n",
|
| 760 |
+
"numexpr==2.9.0\n",
|
| 761 |
+
"numpy==1.25.2\n",
|
| 762 |
+
"oauth2client==4.1.3\n",
|
| 763 |
+
"oauthlib==3.2.2\n",
|
| 764 |
+
"opencv-contrib-python==4.8.0.76\n",
|
| 765 |
+
"opencv-python==4.8.0.76\n",
|
| 766 |
+
"opencv-python-headless==4.9.0.80\n",
|
| 767 |
+
"openpyxl==3.1.2\n",
|
| 768 |
+
"opt-einsum==3.3.0\n",
|
| 769 |
+
"optax==0.1.9\n",
|
| 770 |
+
"orbax-checkpoint==0.4.4\n",
|
| 771 |
+
"osqp==0.6.2.post8\n",
|
| 772 |
+
"packaging==23.2\n",
|
| 773 |
+
"pandas==1.5.3\n",
|
| 774 |
+
"pandas-datareader==0.10.0\n",
|
| 775 |
+
"pandas-gbq==0.19.2\n",
|
| 776 |
+
"pandas-stubs==1.5.3.230304\n",
|
| 777 |
+
"pandocfilters==1.5.1\n",
|
| 778 |
+
"panel==1.3.8\n",
|
| 779 |
+
"param==2.0.2\n",
|
| 780 |
+
"parso==0.8.3\n",
|
| 781 |
+
"parsy==2.1\n",
|
| 782 |
+
"partd==1.4.1\n",
|
| 783 |
+
"pathlib==1.0.1\n",
|
| 784 |
+
"patsy==0.5.6\n",
|
| 785 |
+
"peewee==3.17.1\n",
|
| 786 |
+
"pexpect==4.9.0\n",
|
| 787 |
+
"pickleshare==0.7.5\n",
|
| 788 |
+
"Pillow==9.4.0\n",
|
| 789 |
+
"pins==0.8.4\n",
|
| 790 |
+
"pip-tools==6.13.0\n",
|
| 791 |
+
"platformdirs==4.2.0\n",
|
| 792 |
+
"plotly==5.15.0\n",
|
| 793 |
+
"plotnine==0.12.4\n",
|
| 794 |
+
"pluggy==1.4.0\n",
|
| 795 |
+
"polars==0.20.2\n",
|
| 796 |
+
"pooch==1.8.1\n",
|
| 797 |
+
"portpicker==1.5.2\n",
|
| 798 |
+
"prefetch-generator==1.0.3\n",
|
| 799 |
+
"preshed==3.0.9\n",
|
| 800 |
+
"prettytable==3.10.0\n",
|
| 801 |
+
"proglog==0.1.10\n",
|
| 802 |
+
"progressbar2==4.2.0\n",
|
| 803 |
+
"prometheus_client==0.20.0\n",
|
| 804 |
+
"promise==2.3\n",
|
| 805 |
+
"prompt-toolkit==3.0.43\n",
|
| 806 |
+
"prophet==1.1.5\n",
|
| 807 |
+
"proto-plus==1.23.0\n",
|
| 808 |
+
"protobuf==3.20.3\n",
|
| 809 |
+
"psutil==5.9.5\n",
|
| 810 |
+
"psycopg2==2.9.9\n",
|
| 811 |
+
"ptyprocess==0.7.0\n",
|
| 812 |
+
"py-cpuinfo==9.0.0\n",
|
| 813 |
+
"py4j==0.10.9.7\n",
|
| 814 |
+
"pyarrow==14.0.2\n",
|
| 815 |
+
"pyarrow-hotfix==0.6\n",
|
| 816 |
+
"pyasn1==0.5.1\n",
|
| 817 |
+
"pyasn1-modules==0.3.0\n",
|
| 818 |
+
"pycocotools==2.0.7\n",
|
| 819 |
+
"pycparser==2.21\n",
|
| 820 |
+
"pydantic==2.6.3\n",
|
| 821 |
+
"pydantic_core==2.16.3\n",
|
| 822 |
+
"pydata-google-auth==1.8.2\n",
|
| 823 |
+
"pydot==1.4.2\n",
|
| 824 |
+
"pydot-ng==2.0.0\n",
|
| 825 |
+
"pydotplus==2.0.2\n",
|
| 826 |
+
"PyDrive==1.3.1\n",
|
| 827 |
+
"PyDrive2==1.6.3\n",
|
| 828 |
+
"pyerfa==2.0.1.1\n",
|
| 829 |
+
"pygame==2.5.2\n",
|
| 830 |
+
"Pygments==2.16.1\n",
|
| 831 |
+
"PyGObject==3.42.1\n",
|
| 832 |
+
"PyJWT==2.3.0\n",
|
| 833 |
+
"pymc==5.10.4\n",
|
| 834 |
+
"pymystem3==0.2.0\n",
|
| 835 |
+
"PyOpenGL==3.1.7\n",
|
| 836 |
+
"pyOpenSSL==24.0.0\n",
|
| 837 |
+
"pyparsing==3.1.1\n",
|
| 838 |
+
"pyperclip==1.8.2\n",
|
| 839 |
+
"pyproj==3.6.1\n",
|
| 840 |
+
"pyproject_hooks==1.0.0\n",
|
| 841 |
+
"pyshp==2.3.1\n",
|
| 842 |
+
"PySocks==1.7.1\n",
|
| 843 |
+
"pytensor==2.18.6\n",
|
| 844 |
+
"pytest==7.4.4\n",
|
| 845 |
+
"python-apt @ file:///backend-container/containers/python_apt-0.0.0-cp310-cp310-linux_x86_64.whl#sha256=b209c7165d6061963abe611492f8c91c3bcef4b7a6600f966bab58900c63fefa\n",
|
| 846 |
+
"python-box==7.1.1\n",
|
| 847 |
+
"python-dateutil==2.8.2\n",
|
| 848 |
+
"python-louvain==0.16\n",
|
| 849 |
+
"python-slugify==8.0.4\n",
|
| 850 |
+
"python-utils==3.8.2\n",
|
| 851 |
+
"pytz==2023.4\n",
|
| 852 |
+
"pyviz_comms==3.0.1\n",
|
| 853 |
+
"PyWavelets==1.5.0\n",
|
| 854 |
+
"PyYAML==6.0.1\n",
|
| 855 |
+
"pyzmq==23.2.1\n",
|
| 856 |
+
"qdldl==0.1.7.post0\n",
|
| 857 |
+
"qudida==0.0.4\n",
|
| 858 |
+
"ratelim==0.1.6\n",
|
| 859 |
+
"referencing==0.33.0\n",
|
| 860 |
+
"regex==2023.12.25\n",
|
| 861 |
+
"requests==2.31.0\n",
|
| 862 |
+
"requests-oauthlib==1.3.1\n",
|
| 863 |
+
"requirements-parser==0.5.0\n",
|
| 864 |
+
"rich==13.7.1\n",
|
| 865 |
+
"rpds-py==0.18.0\n",
|
| 866 |
+
"rpy2==3.4.2\n",
|
| 867 |
+
"rsa==4.9\n",
|
| 868 |
+
"safetensors==0.4.2\n",
|
| 869 |
+
"scikit-image==0.19.3\n",
|
| 870 |
+
"scikit-learn==1.2.2\n",
|
| 871 |
+
"scipy==1.11.4\n",
|
| 872 |
+
"scooby==0.9.2\n",
|
| 873 |
+
"scs==3.2.4.post1\n",
|
| 874 |
+
"seaborn==0.13.1\n",
|
| 875 |
+
"SecretStorage==3.3.1\n",
|
| 876 |
+
"Send2Trash==1.8.2\n",
|
| 877 |
+
"sentencepiece==0.1.99\n",
|
| 878 |
+
"shapely==2.0.3\n",
|
| 879 |
+
"six==1.16.0\n",
|
| 880 |
+
"sklearn-pandas==2.2.0\n",
|
| 881 |
+
"smart-open==6.4.0\n",
|
| 882 |
+
"sniffio==1.3.1\n",
|
| 883 |
+
"snowballstemmer==2.2.0\n",
|
| 884 |
+
"sortedcontainers==2.4.0\n",
|
| 885 |
+
"soundfile==0.12.1\n",
|
| 886 |
+
"soupsieve==2.5\n",
|
| 887 |
+
"soxr==0.3.7\n",
|
| 888 |
+
"spacy==3.7.4\n",
|
| 889 |
+
"spacy-legacy==3.0.12\n",
|
| 890 |
+
"spacy-loggers==1.0.5\n",
|
| 891 |
+
"Sphinx==5.0.2\n",
|
| 892 |
+
"sphinxcontrib-applehelp==1.0.8\n",
|
| 893 |
+
"sphinxcontrib-devhelp==1.0.6\n",
|
| 894 |
+
"sphinxcontrib-htmlhelp==2.0.5\n",
|
| 895 |
+
"sphinxcontrib-jsmath==1.0.1\n",
|
| 896 |
+
"sphinxcontrib-qthelp==1.0.7\n",
|
| 897 |
+
"sphinxcontrib-serializinghtml==1.1.10\n",
|
| 898 |
+
"SQLAlchemy==2.0.28\n",
|
| 899 |
+
"sqlglot==19.9.0\n",
|
| 900 |
+
"sqlparse==0.4.4\n",
|
| 901 |
+
"srsly==2.4.8\n",
|
| 902 |
+
"stanio==0.3.0\n",
|
| 903 |
+
"statsmodels==0.14.1\n",
|
| 904 |
+
"sympy==1.12\n",
|
| 905 |
+
"tables==3.8.0\n",
|
| 906 |
+
"tabulate==0.9.0\n",
|
| 907 |
+
"tbb==2021.11.0\n",
|
| 908 |
+
"tblib==3.0.0\n",
|
| 909 |
+
"tenacity==8.2.3\n",
|
| 910 |
+
"tensorboard==2.15.2\n",
|
| 911 |
+
"tensorboard-data-server==0.7.2\n",
|
| 912 |
+
"tensorflow==2.15.0\n",
|
| 913 |
+
"tensorflow-datasets==4.9.4\n",
|
| 914 |
+
"tensorflow-estimator==2.15.0\n",
|
| 915 |
+
"tensorflow-gcs-config==2.15.0\n",
|
| 916 |
+
"tensorflow-hub==0.16.1\n",
|
| 917 |
+
"tensorflow-io-gcs-filesystem==0.36.0\n",
|
| 918 |
+
"tensorflow-metadata==1.14.0\n",
|
| 919 |
+
"tensorflow-probability==0.23.0\n",
|
| 920 |
+
"tensorstore==0.1.45\n",
|
| 921 |
+
"termcolor==2.4.0\n",
|
| 922 |
+
"terminado==0.18.0\n",
|
| 923 |
+
"text-unidecode==1.3\n",
|
| 924 |
+
"textblob==0.17.1\n",
|
| 925 |
+
"tf-keras==2.15.0\n",
|
| 926 |
+
"tf-slim==1.1.0\n",
|
| 927 |
+
"thinc==8.2.3\n",
|
| 928 |
+
"threadpoolctl==3.3.0\n",
|
| 929 |
+
"tifffile==2024.2.12\n",
|
| 930 |
+
"tinycss2==1.2.1\n",
|
| 931 |
+
"tokenizers==0.15.2\n",
|
| 932 |
+
"toml==0.10.2\n",
|
| 933 |
+
"tomli==2.0.1\n",
|
| 934 |
+
"toolz==0.12.1\n",
|
| 935 |
+
"torch @ https://download.pytorch.org/whl/cu121/torch-2.1.0%2Bcu121-cp310-cp310-linux_x86_64.whl#sha256=0d4e8c52a1fcf5ed6cfc256d9a370fcf4360958fc79d0b08a51d55e70914df46\n",
|
| 936 |
+
"torchaudio @ https://download.pytorch.org/whl/cu121/torchaudio-2.1.0%2Bcu121-cp310-cp310-linux_x86_64.whl#sha256=676bda4042734eda99bc59b2d7f761f345d3cde0cad492ad34e3aefde688c6d8\n",
|
| 937 |
+
"torchdata==0.7.0\n",
|
| 938 |
+
"torchsummary==1.5.1\n",
|
| 939 |
+
"torchtext==0.16.0\n",
|
| 940 |
+
"torchvision @ https://download.pytorch.org/whl/cu121/torchvision-0.16.0%2Bcu121-cp310-cp310-linux_x86_64.whl#sha256=e76e78d0ad43636c9884b3084ffaea8a8b61f21129fbfa456a5fe734f0affea9\n",
|
| 941 |
+
"tornado==6.3.3\n",
|
| 942 |
+
"tqdm==4.66.2\n",
|
| 943 |
+
"traitlets==5.7.1\n",
|
| 944 |
+
"traittypes==0.2.1\n",
|
| 945 |
+
"transformers==4.38.2\n",
|
| 946 |
+
"triton==2.1.0\n",
|
| 947 |
+
"tweepy==4.14.0\n",
|
| 948 |
+
"typer==0.9.0\n",
|
| 949 |
+
"types-pytz==2024.1.0.20240203\n",
|
| 950 |
+
"types-setuptools==69.1.0.20240302\n",
|
| 951 |
+
"typing_extensions==4.10.0\n",
|
| 952 |
+
"tzlocal==5.2\n",
|
| 953 |
+
"uc-micro-py==1.0.3\n",
|
| 954 |
+
"uritemplate==4.1.1\n",
|
| 955 |
+
"urllib3==2.0.7\n",
|
| 956 |
+
"vega-datasets==0.9.0\n",
|
| 957 |
+
"wadllib==1.3.6\n",
|
| 958 |
+
"wasabi==1.1.2\n",
|
| 959 |
+
"wcwidth==0.2.13\n",
|
| 960 |
+
"weasel==0.3.4\n",
|
| 961 |
+
"webcolors==1.13\n",
|
| 962 |
+
"webencodings==0.5.1\n",
|
| 963 |
+
"websocket-client==1.7.0\n",
|
| 964 |
+
"Werkzeug==3.0.1\n",
|
| 965 |
+
"widgetsnbextension==3.6.6\n",
|
| 966 |
+
"wordcloud==1.9.3\n",
|
| 967 |
+
"wrapt==1.14.1\n",
|
| 968 |
+
"xarray==2023.7.0\n",
|
| 969 |
+
"xarray-einstats==0.7.0\n",
|
| 970 |
+
"xgboost==2.0.3\n",
|
| 971 |
+
"xlrd==2.0.1\n",
|
| 972 |
+
"xxhash==3.4.1\n",
|
| 973 |
+
"xyzservices==2023.10.1\n",
|
| 974 |
+
"yarl==1.9.4\n",
|
| 975 |
+
"yellowbrick==1.5\n",
|
| 976 |
+
"yfinance==0.2.37\n",
|
| 977 |
+
"zict==3.0.0\n",
|
| 978 |
+
"zipp==3.17.0\n",
|
| 979 |
+
"ok\n"
|
| 980 |
+
]
|
| 981 |
+
}
|
| 982 |
+
]
|
| 983 |
},
|
| 984 |
{
|
| 985 |
"cell_type": "code",
|
|
|
|
| 996 |
"base_uri": "https://localhost:8080/"
|
| 997 |
},
|
| 998 |
"id": "jwcwJ__nPhx-",
|
| 999 |
+
"outputId": "9365e9d2-9243-4c75-a449-62ea1daed5b7"
|
| 1000 |
},
|
| 1001 |
+
"execution_count": 8,
|
| 1002 |
"outputs": [
|
| 1003 |
{
|
| 1004 |
"output_type": "stream",
|
| 1005 |
"name": "stdout",
|
| 1006 |
"text": [
|
| 1007 |
+
"start notebook: now is 2024-03-10 18:17:30.651301.\n",
|
| 1008 |
"Mounted at /content/gdrive/\n"
|
| 1009 |
]
|
| 1010 |
}
|
|
|
|
| 1026 |
"base_uri": "https://localhost:8080/"
|
| 1027 |
},
|
| 1028 |
"id": "RHo4vB4tRQL8",
|
| 1029 |
+
"outputId": "54cfc19b-2568-4acd-daa8-52e1f31387f8"
|
| 1030 |
},
|
| 1031 |
+
"execution_count": 9,
|
| 1032 |
"outputs": [
|
| 1033 |
{
|
| 1034 |
"output_type": "stream",
|
|
|
|
| 1064 |
"base_uri": "https://localhost:8080/"
|
| 1065 |
},
|
| 1066 |
"id": "E_d_5lEKRzyo",
|
| 1067 |
+
"outputId": "81528d6f-9b0b-4854-f84b-ccc1e41755f0"
|
| 1068 |
},
|
| 1069 |
+
"execution_count": 10,
|
| 1070 |
"outputs": [
|
| 1071 |
{
|
| 1072 |
"output_type": "stream",
|
|
|
|
| 1080 |
"drwx------ 5 root root 4096 Mar 6 22:54 pip\n",
|
| 1081 |
"drwx------ 2 root root 4096 Mar 8 21:12 torch\n",
|
| 1082 |
"drwx------ 2 root root 4096 Mar 8 13:35 transformers\n",
|
| 1083 |
+
"lrwxrwxrwx 1 root root 51 Mar 10 18:17 /root/.cache -> /content/gdrive/My Drive/lisa_on_gpu_folder/.cache/\n",
|
| 1084 |
"ok\n"
|
| 1085 |
]
|
| 1086 |
}
|
|
|
|
| 1100 |
"base_uri": "https://localhost:8080/"
|
| 1101 |
},
|
| 1102 |
"id": "7C5Qjf6JMmGf",
|
| 1103 |
+
"outputId": "63dadc8f-7801-426d-dca2-6feb4d474073"
|
| 1104 |
},
|
| 1105 |
+
"execution_count": 11,
|
| 1106 |
"outputs": [
|
| 1107 |
{
|
| 1108 |
"output_type": "stream",
|
|
|
|
| 1148 |
"base_uri": "https://localhost:8080/"
|
| 1149 |
},
|
| 1150 |
"id": "rg7Hx-D06PI7",
|
| 1151 |
+
"outputId": "44338e58-9691-4dde-a9f4-eaaf70f8e4a0"
|
| 1152 |
},
|
| 1153 |
+
"execution_count": 15,
|
| 1154 |
"outputs": [
|
| 1155 |
{
|
| 1156 |
"output_type": "stream",
|
|
|
|
| 1364 |
"base_uri": "https://localhost:8080/"
|
| 1365 |
},
|
| 1366 |
"id": "LLQWY0bGO60Z",
|
| 1367 |
+
"outputId": "d73ba5ab-10f3-4356-c077-2b4ecf966f63"
|
| 1368 |
},
|
| 1369 |
+
"execution_count": 16,
|
| 1370 |
"outputs": [
|
| 1371 |
{
|
| 1372 |
"output_type": "stream",
|
|
|
|
| 1891 |
"source": [
|
| 1892 |
"%cd /content/lisa-on-cuda/\n",
|
| 1893 |
"\n",
|
| 1894 |
+
"try:\n",
|
| 1895 |
+
" from lisa_on_cuda.utils import app_helpers, constants, utils\n",
|
| 1896 |
+
"except KeyError as ke:\n",
|
| 1897 |
+
" print(ke)\n",
|
| 1898 |
+
" raise ke\n",
|
| 1899 |
"\n",
|
| 1900 |
"print(\"ok\")"
|
| 1901 |
],
|
|
|
|
| 1904 |
"base_uri": "https://localhost:8080/"
|
| 1905 |
},
|
| 1906 |
"id": "5ZTfd2uu-ii0",
|
| 1907 |
+
"outputId": "7fe562f2-2b9c-40e1-f7b7-8b3c53666d1e"
|
| 1908 |
},
|
| 1909 |
+
"execution_count": 17,
|
| 1910 |
"outputs": [
|
| 1911 |
{
|
| 1912 |
"output_type": "stream",
|
|
|
|
| 1922 |
"cell_type": "code",
|
| 1923 |
"source": [
|
| 1924 |
"import logging\n",
|
| 1925 |
+
"from lisa_on_cuda.utils import utils\n",
|
| 1926 |
"import matplotlib.pyplot as plt\n",
|
| 1927 |
"\n",
|
| 1928 |
"logging.basicConfig(level=logging.INFO, force = True)\n",
|
|
|
|
| 1937 |
"base_uri": "https://localhost:8080/"
|
| 1938 |
},
|
| 1939 |
"id": "a8YNIvLRQePo",
|
| 1940 |
+
"outputId": "7252dd85-f07d-48f8-e627-b635c2120fc1"
|
| 1941 |
},
|
| 1942 |
+
"execution_count": 18,
|
| 1943 |
"outputs": [
|
| 1944 |
{
|
| 1945 |
"output_type": "stream",
|
|
|
|
| 1973 |
"colab": {
|
| 1974 |
"base_uri": "https://localhost:8080/"
|
| 1975 |
},
|
| 1976 |
+
"outputId": "8bb6ccbc-fddf-49d3-d6d9-f15c001bf55c"
|
| 1977 |
},
|
| 1978 |
+
"execution_count": 19,
|
| 1979 |
"outputs": [
|
| 1980 |
{
|
| 1981 |
"output_type": "stream",
|
|
|
|
| 2002 |
"base_uri": "https://localhost:8080/",
|
| 2003 |
"height": 319,
|
| 2004 |
"referenced_widgets": [
|
| 2005 |
+
"e968b46a1ecb485fa9f164f6ec0f5569",
|
| 2006 |
+
"759af27e6e3e439f9a8739c470d9b4ed",
|
| 2007 |
+
"5d5bd7bb543c44c48acb5a38d0e2b392",
|
| 2008 |
+
"77f3526c940841ec8c3d3bb1da85dbc8",
|
| 2009 |
+
"5eca36e7aa8a4775911eeb4c8684af6d",
|
| 2010 |
+
"944fa9555ead4941aa855bbd35a4f5d7",
|
| 2011 |
+
"2ad8fb9acc93495ca60d355ea4b0c161",
|
| 2012 |
+
"a03fbfb4742342758d99d4354a9191e5",
|
| 2013 |
+
"e7f6ff163e4846388f621f41ad287bfb",
|
| 2014 |
+
"de68261aa80941afb2759b764aa10226",
|
| 2015 |
+
"8d9f42c52f604fb590e77a3f5441ec09"
|
| 2016 |
]
|
| 2017 |
},
|
| 2018 |
"id": "aJHut43ETK3P",
|
| 2019 |
+
"outputId": "63e17ff8-44e0-4158-8e4b-6bcab33ccc78"
|
| 2020 |
},
|
| 2021 |
+
"execution_count": 20,
|
| 2022 |
"outputs": [
|
| 2023 |
{
|
| 2024 |
"output_type": "stream",
|
|
|
|
| 2032 |
"output_type": "stream",
|
| 2033 |
"name": "stdout",
|
| 2034 |
"text": [
|
| 2035 |
+
"start the creation of the inference function, now is 2024-03-10 18:22:28.101518.\n"
|
| 2036 |
]
|
| 2037 |
},
|
| 2038 |
{
|
|
|
|
| 2057 |
"application/vnd.jupyter.widget-view+json": {
|
| 2058 |
"version_major": 2,
|
| 2059 |
"version_minor": 0,
|
| 2060 |
+
"model_id": "e968b46a1ecb485fa9f164f6ec0f5569"
|
| 2061 |
}
|
| 2062 |
},
|
| 2063 |
"metadata": {}
|
|
|
|
| 2104 |
"base_uri": "https://localhost:8080/"
|
| 2105 |
},
|
| 2106 |
"id": "rtPoSzRMTOOH",
|
| 2107 |
+
"outputId": "d7e36ba1-df0e-4dfc-9083-383f0d8ed4cf"
|
| 2108 |
},
|
| 2109 |
+
"execution_count": 21,
|
| 2110 |
"outputs": [
|
| 2111 |
{
|
| 2112 |
"output_type": "stream",
|
|
|
|
| 2122 |
"output_type": "stream",
|
| 2123 |
"name": "stdout",
|
| 2124 |
"text": [
|
| 2125 |
+
"start inference using inference_fn, now is 2024-03-10 18:34:33.689389.\n",
|
| 2126 |
"input_prompt:Where can the driver see the car speed in this image? Please output segmentation mask..\n"
|
| 2127 |
]
|
| 2128 |
},
|
|
|
|
| 2168 |
"metadata": {
|
| 2169 |
"colab": {
|
| 2170 |
"base_uri": "https://localhost:8080/",
|
| 2171 |
+
"height": 365
|
| 2172 |
},
|
| 2173 |
"id": "euOi0BKETQXG",
|
| 2174 |
+
"outputId": "40c339d4-28b2-4e39-ab15-f2f8198d76fe"
|
| 2175 |
},
|
| 2176 |
+
"execution_count": 22,
|
| 2177 |
"outputs": [
|
| 2178 |
{
|
| 2179 |
"output_type": "stream",
|
|
|
|
| 2199 |
"source": [
|
| 2200 |
"import cv2\n",
|
| 2201 |
"from PIL import Image\n",
|
| 2202 |
+
"from lisa_on_cuda.utils import utils\n",
|
| 2203 |
"\n",
|
| 2204 |
"\"\"\"\n",
|
| 2205 |
"# current_example_path = str(utils.ROOT / \"tests\" / \"imgs\" / f\"example{idx_example+1}_mask_0.png\")\n",
|
|
|
|
| 2224 |
"height": 506
|
| 2225 |
},
|
| 2226 |
"id": "0PEXxxgwVRRn",
|
| 2227 |
+
"outputId": "f3d69a09-159d-434f-f6d1-326cc862ea75"
|
| 2228 |
},
|
| 2229 |
+
"execution_count": 23,
|
| 2230 |
"outputs": [
|
| 2231 |
{
|
| 2232 |
"output_type": "stream",
|
|
|
|
| 2247 |
"output_type": "execute_result",
|
| 2248 |
"data": {
|
| 2249 |
"text/plain": [
|
| 2250 |
+
"<matplotlib.image.AxesImage at 0x7b5921257c40>"
|
| 2251 |
]
|
| 2252 |
},
|
| 2253 |
"metadata": {},
|
| 2254 |
+
"execution_count": 23
|
| 2255 |
},
|
| 2256 |
{
|
| 2257 |
"output_type": "display_data",
|
|
|
|
| 2309 |
"base_uri": "https://localhost:8080/"
|
| 2310 |
},
|
| 2311 |
"id": "sZy30KDUVVJ_",
|
| 2312 |
+
"outputId": "4efff579-535a-40af-dcec-bb475f1600d2"
|
| 2313 |
},
|
| 2314 |
+
"execution_count": 24,
|
| 2315 |
"outputs": [
|
| 2316 |
{
|
| 2317 |
"output_type": "stream",
|
|
|
|
| 2337 |
"\n",
|
| 2338 |
"ls -l /root/.cache/huggingface/hub/models--xinlai--LISA*/*/*\n",
|
| 2339 |
"\n",
|
| 2340 |
+
"echo \"end!\""
|
| 2341 |
],
|
| 2342 |
"metadata": {
|
| 2343 |
"colab": {
|
| 2344 |
"base_uri": "https://localhost:8080/"
|
| 2345 |
},
|
| 2346 |
"id": "d7HoGCK_6ePE",
|
| 2347 |
+
"outputId": "4a188f51-b1c1-4995-fc68-76cf06c65643"
|
| 2348 |
},
|
| 2349 |
+
"execution_count": 25,
|
| 2350 |
"outputs": [
|
| 2351 |
{
|
| 2352 |
"output_type": "stream",
|
|
|
|
| 2394 |
"base_uri": "https://localhost:8080/"
|
| 2395 |
},
|
| 2396 |
"id": "W7fsszLV7YCK",
|
| 2397 |
+
"outputId": "0e78182a-fea7-48fa-eba1-544ac3150342"
|
| 2398 |
},
|
| 2399 |
+
"execution_count": 26,
|
| 2400 |
"outputs": [
|
| 2401 |
{
|
| 2402 |
"output_type": "stream",
|
| 2403 |
"name": "stdout",
|
| 2404 |
"text": [
|
| 2405 |
+
"start notebook: now is 2024-03-10 18:34:45.188229.\n"
|
| 2406 |
]
|
| 2407 |
}
|
| 2408 |
]
|
|
|
|
| 2417 |
"metadata": {
|
| 2418 |
"id": "1h1eIdUibJXo"
|
| 2419 |
},
|
| 2420 |
+
"execution_count": 27,
|
| 2421 |
"outputs": []
|
| 2422 |
}
|
| 2423 |
]
|
poetry.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pyproject.toml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[tool.poetry]
|
| 2 |
+
name = "lisa-on-cuda"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = ""
|
| 5 |
+
authors = ["alessandro trinca tornidor <[email protected]>"]
|
| 6 |
+
license = "Apache 2.0"
|
| 7 |
+
readme = "README.md"
|
| 8 |
+
|
| 9 |
+
[tool.poetry.dependencies]
|
| 10 |
+
python = "^3.10"
|
| 11 |
+
einops = "^0.7.0"
|
| 12 |
+
fastapi = "^0.110.0"
|
| 13 |
+
gradio = "^4.21.0"
|
| 14 |
+
gradio-client = "^0.12.0"
|
| 15 |
+
markdown2 = "^2.4.13"
|
| 16 |
+
nh3 = "^0.2.15"
|
| 17 |
+
numpy = "1.25.2"
|
| 18 |
+
openai = "^1.13.3"
|
| 19 |
+
packaging = "^24.0"
|
| 20 |
+
peft = "^0.9.0"
|
| 21 |
+
pycocotools = "^2.0.7"
|
| 22 |
+
ray = "^2.9.3"
|
| 23 |
+
scipy = "^1.11.4"
|
| 24 |
+
sentencepiece = "^0.2.0"
|
| 25 |
+
shortuuid = "^1.0.12"
|
| 26 |
+
torch = "^2.2.1"
|
| 27 |
+
torchvision = "^0.17.1"
|
| 28 |
+
tqdm = "^4.66.2"
|
| 29 |
+
transformers = "4.31.0"
|
| 30 |
+
uvicorn = "^0.28.0"
|
| 31 |
+
opencv-python-headless = "4.8.1.78"
|
| 32 |
+
bitsandbytes = "^0.42.0"
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
[tool.poetry.group.test.dependencies]
|
| 36 |
+
pytest = "^8.1.1"
|
| 37 |
+
pytest-cov = "^4.1.0"
|
| 38 |
+
|
| 39 |
+
[build-system]
|
| 40 |
+
requires = ["poetry-core"]
|
| 41 |
+
build-backend = "poetry.core.masonry.api"
|