💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ONNX changes (#3654)
Laurens Priemb9dd0bc3b781
diff --git a/desktop/src/main/services/ml-worker.ts b/desktop/src/main/services/ml-worker.tsindex fcbd73576c..33b6c729ae 100644--- a/desktop/src/main/services/ml-worker.ts+++ b/desktop/src/main/services/ml-worker.ts@@ -202,8 +202,8 @@ const createInferenceSession = async (modelPath: string) => {};const cachedCLIPImageSession = makeCachedInferenceSession(- "mobileclip_s2_image_opset18_rgba_sim.onnx",- 143093992 /* 143 MB */,+ "mobileclip_s2_image_opset18_rgba_opt.onnx",+ 143099752 /* 143 MB */,);/**@@ -228,8 +228,8 @@ export const computeCLIPImageEmbedding = async (};const cachedCLIPTextSession = makeCachedInferenceSession(- "mobileclip_s2_text_int32.onnx",- 253895600 /* 253 MB */,+ "mobileclip_s2_text_opset18_quant.onnx",+ 67144712 /* 67 MB */,);let _tokenizer: Tokenizer | undefined;@@ -273,17 +273,21 @@ export const computeCLIPTextEmbeddingIfAvailable = async (text: string) => {};const cachedFaceDetectionSession = makeCachedInferenceSession(- "yolov5s_face_640_640_dynamic.onnx",- 30762872 /* 29 MB */,+ "yolov5s_face_opset18_rgba_opt.onnx",+ 28952612 /* 29 MB */,);/*** Face detection with the YOLO model and ONNX runtime.*/-export const detectFaces = async (input: Float32Array) => {+export const detectFaces = async (+ input: Uint8ClampedArray,+ inputShape: number[],+) => {const session = await cachedFaceDetectionSession();+ const inputArray = new Uint8Array(input.buffer);const feeds = {- input: new ort.Tensor("float32", input, [1, 3, 640, 640]),+ input: new ort.Tensor("uint8", inputArray, inputShape),};const t = Date.now();const results = await session.run(feeds);diff --git a/infra/ml/.gitignore b/infra/ml/.gitignorenew file mode 100644index 0000000000..4887c07499--- /dev/null+++ b/infra/ml/.gitignore@@ -0,0 +1,22 @@+# Python-generated files+__pycache__/+*.py[oc]+build/+dist/+wheels/+*.egg-info++# Virtual environments+.venv++# Models+*/onnx_models/+*.pt+*.onnx+*.tflite++# Imported repos+CLIP/mobileclip_repo/++# Data+data/flickr8k_captions.txt\ No newline at end of filediff --git a/infra/ml/.python-version b/infra/ml/.python-versionnew file mode 100644index 0000000000..e4fba21835--- /dev/null+++ b/infra/ml/.python-version@@ -0,0 +1 @@+3.12diff --git a/infra/ml/CLIP/mobileclip_onnx.ipynb b/infra/ml/CLIP/mobileclip_onnx.ipynbnew file mode 100644index 0000000000..9a39daaaa8--- /dev/null+++ b/infra/ml/CLIP/mobileclip_onnx.ipynb@@ -0,0 +1,1288 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# Prepping MobileCLIP model for use in Ente\n",+ "\n",+ "[Paper](https://arxiv.org/pdf/2311.17049.pdf) | [Github](https://github.com/apple/ml-mobileclip)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Setting up Pytorch weights and source code"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# !mkdir mobileclip_repo\n",+ "# %cd mobileclip_repo\n",+ "# !git clone https://github.com/apple/ml-mobileclip.git\n",+ "# %cd ml-mobileclip"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "%cd mobileclip_repo/ml-mobileclip/"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 3,+ "metadata": {},+ "outputs": [],+ "source": [+ "# !source get_pretrained_models.sh # Files will be downloaded to `checkpoints` directory.\n",+ "# %cd ../.."+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Imports"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!uv pip install clip-benchmark>=1.4.0 datasets>=2.8.0 open-clip-torch>=2.20.0 timm>=0.9.5"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "import torch\n",+ "import torch.onnx\n",+ "import torchvision\n",+ "import torch.nn as nn\n",+ "from PIL import Image\n",+ "import mobileclip\n",+ "import numpy as np\n",+ "from numpy.linalg import norm\n",+ "import onnx\n",+ "import onnxruntime as ort\n",+ "print(ort.__version__)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "model, _, preprocess = mobileclip.create_model_and_transforms('mobileclip_s2', pretrained='checkpoints/mobileclip_s2.pt')\n",+ "og_model = model\n",+ "model.eval()\n",+ "og_model.eval()\n",+ "tokenizer = mobileclip.get_tokenizer('mobileclip_s2')\n",+ "\n",+ "image = preprocess(Image.open(\"docs/fig_accuracy_latency.png\").convert('RGB')).unsqueeze(0)\n",+ "text = tokenizer([\"Hello World!\", \"a diagram\", \"a dog\", \"a cat\"])\n",+ "\n",+ "with torch.no_grad(), torch.cuda.amp.autocast():\n",+ " image_features = model.encode_image(image)\n",+ " text_features = model.encode_text(text)\n",+ " image_features /= image_features.norm(dim=-1, keepdim=True)\n",+ " text_features /= text_features.norm(dim=-1, keepdim=True)\n",+ "\n",+ " text_probs = (100.0 * image_features @ text_features.T).softmax(dim=-1)\n",+ "\n",+ "print(\"Label probs:\", text_probs)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "%cd ../.."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 8,+ "metadata": {},+ "outputs": [],+ "source": [+ "# !rm -rf mobileclip_repo"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "tokenizer([\"This is a tokenized string\"])"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 10,+ "metadata": {},+ "outputs": [],+ "source": [+ "text_input = tokenizer([\"Hello World! This is a super duper long piece of text of at least 77 tokens, purely to make sure that indeed this is a good input without any zeros that the exporter might somehow confuse with a boolean. Apparently we're still not at 77 tokens, so I just keep on monkey typing this story in the hope that someday I have a fully tokenized string of text that is longer than the required 77 tokens. Thank you for coming to my TED talk.\"])\n",+ "text_emb = model.encode_text(text_input)[0].detach().numpy()\n",+ "text_emb /= norm(text_emb)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "preprocess"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 5,+ "metadata": {},+ "outputs": [],+ "source": [+ "from PIL import Image"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_singapore = Image.open(\"../data/singapore.jpg\").convert('RGBA')\n",+ "image_input = preprocess(image_singapore).unsqueeze(0)\n",+ "print(image_input.detach().numpy().shape)\n",+ "print(1*3*256*256)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_emb = model(image_input[:,:3,:,:])[0][0].detach().numpy()\n",+ "print(image_emb.shape)\n",+ "print(norm(image_emb))\n",+ "image_emb[0:5]"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_singapore_onnx = np.array(image_singapore)\n",+ "print(image_singapore_onnx.shape)\n",+ "print(image_singapore_onnx.dtype)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Export to ONNX"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 15,+ "metadata": {},+ "outputs": [],+ "source": [+ "onnx_opset = 18 # use opset 18 for Resize to antialias"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Image model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 16,+ "metadata": {},+ "outputs": [],+ "source": [+ "class EncodeImageWrapper(nn.Module):\n",+ " def __init__(self, original_model):\n",+ " super(EncodeImageWrapper, self).__init__()\n",+ " self.original_model = original_model\n",+ "\n",+ " def forward(self, input):\n",+ " return self.original_model.encode_image(input)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 17,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_model_wrapper = EncodeImageWrapper(model)\n",+ "image_model_wrapper.eval()\n",+ "image_model_wrapper.original_model.eval()\n",+ "clip_image_onnx_export_path = \"onnx_models/mobileclip_s2_image_float32.onnx\"\n",+ "torch.onnx.export(image_model_wrapper, image, clip_image_onnx_export_path, opset_version=onnx_opset, do_constant_folding=True, input_names=[\"input\"], output_names=[\"output\"])"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 18,+ "metadata": {},+ "outputs": [],+ "source": [+ "mobileclip_image_onnx = onnx.load(clip_image_onnx_export_path)\n",+ "onnx.checker.check_model(mobileclip_image_onnx)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Text model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 19,+ "metadata": {},+ "outputs": [],+ "source": [+ "class EncodeTextWrapper(nn.Module):\n",+ " def __init__(self, original_model):\n",+ " super(EncodeTextWrapper, self).__init__()\n",+ " self.original_model = original_model\n",+ "\n",+ " def forward(self, input):\n",+ " return self.original_model.encode_text(input)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "text_model_wrapper = EncodeTextWrapper(model)\n",+ "text_model_wrapper.eval()\n",+ "text_model_wrapper.original_model.eval()\n",+ "clip_text_onnx_export_path = \"onnx_models/mobileclip_s2_text_int64.onnx\"\n",+ "torch.onnx.export(text_model_wrapper, text_input, clip_text_onnx_export_path, opset_version=onnx_opset, do_constant_folding=True, input_names=['input'], output_names=['output'])"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Altering ONNX models"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Image model"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Change input name to `og_input` so we can reserve `input` for altered model that includes preprocessing"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 21,+ "metadata": {},+ "outputs": [],+ "source": [+ "og_input = onnx.helper.make_tensor_value_info(\n",+ " name=\"og_input\",\n",+ " elem_type=onnx.TensorProto.FLOAT,\n",+ " shape=[1, 3, 256, 256], \n",+ ")\n",+ "\n",+ "# Update the input names in the rest of the model\n",+ "for node in mobileclip_image_onnx.graph.node:\n",+ " for i, input_name in enumerate(node.input):\n",+ " if input_name == \"input\":\n",+ " node.input[i] = \"og_input\"\n",+ "\n",+ "graph = onnx.helper.make_graph(\n",+ " nodes=mobileclip_image_onnx.graph.node,\n",+ " name=mobileclip_image_onnx.graph.name,\n",+ " inputs=[og_input],\n",+ " outputs=mobileclip_image_onnx.graph.output,\n",+ " initializer=mobileclip_image_onnx.graph.initializer,\n",+ ")\n",+ "mobileclip_image_onnx = onnx.helper.make_model(graph, opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)])\n",+ "onnx.save_model(mobileclip_image_onnx, clip_image_onnx_export_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Add preprocessing to the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 22,+ "metadata": {},+ "outputs": [],+ "source": [+ "from onnxruntime_extensions.tools.pre_post_processing import PrePostProcessor, create_named_value, Resize, ImageBytesToFloat, Unsqueeze, CenterCrop, Debug, ChannelsLastToChannelsFirst"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 23,+ "metadata": {},+ "outputs": [],+ "source": [+ "inputs = [create_named_value(\"input_to_process\", onnx.TensorProto.UINT8, [\"H\", \"W\", \"C\"])]\n",+ "\n",+ "pipeline = PrePostProcessor(inputs, onnx_opset)\n",+ "\n",+ "pipeline.add_pre_processing(\n",+ " [\n",+ " Resize(256), \n",+ " CenterCrop(256, 256), # Crop to 256x256. NOTE: Currently only HWC input is handled.\n",+ " ChannelsLastToChannelsFirst(), # Convert to CHW\n",+ " # Debug(),\n",+ " ImageBytesToFloat(), # Convert to float in range 0..1 by dividing uint8 values by 255\n",+ " # Debug(),\n",+ " Unsqueeze([0]), # add batch, CHW --> 1CHW\n",+ " # Debug(),\n",+ " ]\n",+ ")\n",+ "\n",+ "clip_image_with_preprocessing = pipeline.run(mobileclip_image_onnx)\n",+ "\n",+ "onnx.checker.check_model(clip_image_with_preprocessing)\n",+ "clip_image_onnx_rgb_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_rgb.onnx\"\n",+ "new_model_path = clip_image_onnx_rgb_path\n",+ "onnx.save_model(clip_image_with_preprocessing, new_model_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Add a slice node so that the model can take raw RGBA data as input (as well as standard RGB)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 24,+ "metadata": {},+ "outputs": [],+ "source": [+ "onnx_model = clip_image_with_preprocessing\n",+ "\n",+ "# Create a new input with flexible channel dimension\n",+ "new_input = onnx.helper.make_tensor_value_info(\n",+ " name=\"input\",\n",+ " elem_type=onnx.TensorProto.UINT8,\n",+ " shape=[\"H\", \"W\", \"C\"], \n",+ ")\n",+ "\n",+ "# Create constant tensors for starts, ends, and axes\n",+ "starts_tensor = onnx.helper.make_tensor(\n",+ " name=\"starts\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([0], dtype=np.int64)\n",+ ")\n",+ "ends_tensor = onnx.helper.make_tensor(\n",+ " name=\"ends\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([3], dtype=np.int64)\n",+ ")\n",+ "axes_tensor = onnx.helper.make_tensor(\n",+ " name=\"axes\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([2], dtype=np.int64)\n",+ ")\n",+ "new_initializers = [starts_tensor, ends_tensor, axes_tensor] + list(onnx_model.graph.initializer)\n",+ "slice_node = onnx.helper.make_node(\n",+ " \"Slice\",\n",+ " inputs=[\"input\", \"starts\", \"ends\", \"axes\"],\n",+ " outputs=[\"sliced_input\"],\n",+ " name=\"slice_rgba_input_node\"\n",+ ")\n",+ "\n",+ "\n",+ "# Add the new input and Slice node to the graph\n",+ "graph = onnx.helper.make_graph(\n",+ " [slice_node] + list(onnx_model.graph.node), # Prepend Slice node to existing nodes\n",+ " onnx_model.graph.name,\n",+ " [new_input],\n",+ " list(onnx_model.graph.output),\n",+ " initializer=new_initializers,\n",+ " value_info=onnx_model.graph.value_info,\n",+ ")\n",+ "\n",+ "# Create the new model\n",+ "mobileclip_image_onnx_rgba = onnx.helper.make_model(\n",+ " graph,\n",+ " opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)]\n",+ ")\n",+ "\n",+ "\n",+ "# Update the input names in the rest of the model\n",+ "for node in mobileclip_image_onnx_rgba.graph.node:\n",+ " for i, input_name in enumerate(node.input):\n",+ " if input_name == \"input_to_process\":\n",+ " node.input[i] = \"sliced_input\"\n",+ "\n",+ "# Save the new model\n",+ "onnx.checker.check_model(mobileclip_image_onnx_rgba)\n",+ "clip_image_onnx_rgba_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_rgba.onnx\"\n",+ "onnx.save(mobileclip_image_onnx_rgba, clip_image_onnx_rgba_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Optimize the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 25,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_image_sim_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_rgba_sim.onnx\""+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!onnxsim {clip_image_onnx_rgba_path} {clip_image_sim_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Optimize the graph"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 27,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_opt_sess_options = ort.SessionOptions()\n",+ "\n",+ "image_opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_DISABLE_ALL\n",+ "image_opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_BASIC\n",+ "\n",+ "clip_image_opt_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_rgba_opt.onnx\"\n",+ "image_opt_sess_options.optimized_model_filepath = clip_image_opt_path\n",+ "\n",+ "opt_image_session = ort.InferenceSession(clip_image_sim_path, image_opt_sess_options)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Add metadata to the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 28,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_image_opt = onnx.load(clip_image_opt_path)\n",+ "clip_image_opt.producer_name = \"EnteMobileCLIPImageEncoder\"\n",+ "clip_image_opt.doc_string = \"MobileCLIP S2 Image Encoder with built-in preprocessing. Accepts both RGB and RGBA raw bytes input (uint8) in HWC format.\"\n",+ "clip_image_opt.graph.doc_string = \"\"\n",+ "clip_image_opt.graph.name = \"SliceRGB+Resize+CenterCrop+ToFloat+Unsqueeze+MobileCLIP_S2_ImageEncoder\"\n",+ "onnx.save(clip_image_opt, clip_image_opt_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "ort_session = ort.InferenceSession(clip_image_opt_path)\n",+ "onnx_emb = ort_session.run(None, {\"input\": image_singapore_onnx})[0][0]\n",+ "onnx_emb /= norm(onnx_emb)\n",+ "np.dot(image_emb, onnx_emb)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 30,+ "metadata": {},+ "outputs": [],+ "source": [+ "!rm {clip_image_onnx_export_path}\n",+ "!rm {clip_image_onnx_rgb_path}\n",+ "!rm {clip_image_onnx_rgba_path}\n",+ "!rm {clip_image_sim_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Text model"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Make sure the model can use int32 as input"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 31,+ "metadata": {},+ "outputs": [],+ "source": [+ "mobileclip_text_onxx = onnx.load(clip_text_onnx_export_path)\n",+ "\n",+ "for tensor in mobileclip_text_onxx.graph.input:\n",+ " if tensor.name == \"input\":\n",+ " tensor.type.tensor_type.elem_type = onnx.TensorProto.INT32\n",+ " break\n",+ "\n",+ "# Save the modified model\n",+ "clip_text_onnx_int32_path = \"onnx_models/mobileclip_s2_text_int32.onnx\"\n",+ "onnx.save(mobileclip_text_onxx, clip_text_onnx_int32_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "[Simplify](https://github.com/daquexian/onnx-simplifier) the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 32,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_text_sim_path = f\"onnx_models/mobileclip_s2_text_opset{onnx_opset}_int32_sim.onnx\""+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!onnxsim {clip_text_onnx_int32_path} {clip_text_sim_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Apply basic offline [graph optimizations](https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html). Only do the basic optimizations offline, the extended and layout optimizations should be done online depending on execution provider and hardware."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 34,+ "metadata": {},+ "outputs": [],+ "source": [+ "text_opt_sess_options = ort.SessionOptions()\n",+ "\n",+ "text_opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_DISABLE_ALL\n",+ "text_opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_BASIC\n",+ "\n",+ "clip_text_opt_path = f\"onnx_models/mobileclip_s2_text_opset{onnx_opset}_int32_opt.onnx\"\n",+ "text_opt_sess_options.optimized_model_filepath = clip_text_opt_path\n",+ "\n",+ "opt_text_session = ort.InferenceSession(clip_text_sim_path, text_opt_sess_options)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Add metadata to the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 35,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_text_opt = onnx.load(clip_text_opt_path)\n",+ "clip_text_opt.producer_name = \"EnteMobileCLIPTextEncoder\"\n",+ "clip_text_opt.doc_string = \"MobileCLIP S2 Text Encoder. Accepts an integer array (int32) of length 77. Longer arrays will be truncated.\"\n",+ "clip_text_opt.graph.doc_string = \"\"\n",+ "clip_text_opt.graph.name = \"MobileCLIP_S2_TextEncoder\"\n",+ "onnx.save(clip_text_opt, clip_text_opt_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "mobileclip_text_ort_sess = ort.InferenceSession(clip_text_opt_path)\n",+ "text_onnx_emb = mobileclip_text_ort_sess.run([\"output\"], {\"input\": text_input.numpy().astype(\"int32\")})[0][0]\n",+ "text_onnx_emb /= norm(text_onnx_emb)\n",+ "np.dot(text_emb, text_onnx_emb)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 37,+ "metadata": {},+ "outputs": [],+ "source": [+ "!rm {clip_text_onnx_export_path}\n",+ "!rm {clip_text_onnx_int32_path}\n",+ "!rm {clip_text_sim_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Quantize text model\n",+ "\n",+ "https://onnxruntime.ai/docs/performance/model-optimizations/quantization.html"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Quantization pre-processing (not to confuse with normal pre-processing)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 38,+ "metadata": {},+ "outputs": [],+ "source": [+ "from onnxruntime.quantization import quant_pre_process"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 39,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_text_quantized_preprocessed_path = \"onnx_models/mobileclip_s2_text_quant_preprocessed.onnx\"\n",+ "quant_pre_process(clip_text_opt_path, clip_text_quantized_preprocessed_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Dynamic quantization"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 40,+ "metadata": {},+ "outputs": [],+ "source": [+ "from onnxruntime.quantization import quantize_dynamic, quantize_static, QuantType"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "node_names = []\n",+ "matmul_nodes_names = []\n",+ "for node in clip_text_opt.graph.node:\n",+ " node_names.append(node.name)\n",+ " if node.op_type == \"MatMul\" and node.name != \"/text_encoder/transformer.0/pre_norm_ffn/pre_norm_ffn.4/MatMul\":\n",+ " matmul_nodes_names.append(node.name)\n",+ "len(node_names)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 42,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_text_quantized_dynamic_path = f\"onnx_models/mobileclip_s2_text_opset{onnx_opset}_quant.onnx\"\n",+ "quantize_dynamic(clip_text_quantized_preprocessed_path, clip_text_quantized_dynamic_path, nodes_to_exclude=node_names[28])"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "mobileclip_text_quant_dyn_ort_sess = ort.InferenceSession(clip_text_quantized_dynamic_path)\n",+ "text_onnx_quant_dyn_emb = mobileclip_text_quant_dyn_ort_sess.run([\"output\"], {\"input\": text_input.numpy().astype(\"int32\")})[0][0]\n",+ "text_onnx_quant_dyn_emb /= norm(text_onnx_quant_dyn_emb)\n",+ "np.dot(text_onnx_quant_dyn_emb, text_onnx_emb)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Quantization Debugging (uncomment if you want to try it)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 44,+ "metadata": {},+ "outputs": [],+ "source": [+ "# exclude_amount = 1\n",+ "\n",+ "\n",+ "# for i in range(25, 30, exclude_amount):\n",+ "# begin = i\n",+ "# end = min(i+exclude_amount, len(node_names))\n",+ " \n",+ "# clip_text_quantized_dynamic_debug_path = f\"onnx_models/mobileclip_s2_text_opset{onnx_opset}_int8dyn_opt_debug.onnx\"\n",+ "# quantize_dynamic(clip_text_quantized_preprocessed_path, clip_text_quantized_dynamic_debug_path, nodes_to_exclude=node_names[begin:end])\n",+ "# mobileclip_text_quant_dyn_ort_sess_debug = ort.InferenceSession(clip_text_quantized_dynamic_debug_path)\n",+ "# text_onnx_quant_dyn_emb_debug = mobileclip_text_quant_dyn_ort_sess_debug.run([\"output\"], {\"input\": text_input.numpy().astype(\"int32\")})[0][0]\n",+ "# text_onnx_quant_dyn_emb_debug /= norm(text_onnx_quant_dyn_emb_debug)\n",+ "# sim_debug = np.dot(text_onnx_quant_dyn_emb_debug, text_onnx_emb)\n",+ "# print(f\"Skipping nodes from {begin} to {end} resulted in a similarity of {sim_debug:.4f}\")"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "node_names[28:29]"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test on a dataset of image captions. Before continuing, download the dataset from [Kaggle](https://www.kaggle.com/datasets/aladdinpersson/flickr8kimagescaptions/data) and put it in the `../data` folder"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 46,+ "metadata": {},+ "outputs": [],+ "source": [+ "import csv\n",+ "from tqdm import tqdm\n",+ "import time\n",+ "import copy\n",+ "import matplotlib.pyplot as plt"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "captions = []\n",+ "\n",+ "with open('../data/flickr8k_captions.txt', 'r', encoding='utf-8') as file:\n",+ " csv_reader = csv.reader(file)\n",+ " next(csv_reader)\n",+ " for row in csv_reader:\n",+ " captions.append(row[1])\n",+ "\n",+ "print(len(captions))\n",+ "print(captions[:5])"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test accuracy of quantized model quickly (uncomment code below)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "test_size = 600\n",+ "similarities = np.zeros(test_size)\n",+ "mobileclip_text_quant_dyn_ort_sess = ort.InferenceSession(clip_text_quantized_dynamic_path)\n",+ "\n",+ "for i, caption in tqdm(enumerate(captions[:test_size])):\n",+ " text_input_test = tokenizer([caption])\n",+ " text_emb_test = model.encode_text(text_input_test)[0].detach().numpy()\n",+ " text_emb_test /= norm(text_emb_test)\n",+ " text_onnx_test_emb = mobileclip_text_quant_dyn_ort_sess.run([\"output\"], {\"input\": text_input_test.numpy().astype(\"int32\")})[0][0]\n",+ " text_onnx_test_emb /= norm(text_onnx_test_emb)\n",+ " similarities[i] = np.dot(text_onnx_test_emb, text_emb_test)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "print(f\"Mean similarity: {similarities.mean()}\")\n",+ "print(f\"Standard deviation: {similarities.std()}\")\n",+ "print(f\"Minimum similarity: {similarities.min()}\")\n",+ "print(f\"Maximum similarity: {similarities.max()}\")"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test accuracy of quantized model extensively (uncomment code below)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 50,+ "metadata": {},+ "outputs": [],+ "source": [+ "# captions_extensive = copy.deepcopy(captions)\n",+ "\n",+ "# for i in range(10000):\n",+ "# captions_extensive[i] = captions_extensive[i] + \" \" + captions_extensive[i + 10000] + \" \" + captions_extensive[i + 20000] + \" \" + captions_extensive[i + 30000]\n",+ "# captions_extensive[i + 10000] = captions_extensive[i + 10000] + \" \" + captions_extensive[i + 20000] + \" \" + captions_extensive[i + 30000]\n",+ "# captions_extensive[i + 20000] = captions_extensive[i + 20000] + \" \" + captions_extensive[i + 30000]\n",+ "# captions_extensive = captions_extensive[:40000]\n",+ "\n",+ "# test_size = len(captions_extensive)\n",+ "# similarities_extensive = np.zeros(test_size)\n",+ "# mobileclip_text_quant_dyn_ort_sess = ort.InferenceSession(clip_text_quantized_dynamic_path)\n",+ "\n",+ "# for i, caption in tqdm(enumerate(captions_extensive[:test_size])):\n",+ "# text_input_test = tokenizer([caption])\n",+ "# text_emb_test = model.encode_text(text_input_test)[0].detach().numpy()\n",+ "# text_emb_test /= norm(text_emb_test)\n",+ "# text_onnx_test_emb = mobileclip_text_quant_dyn_ort_sess.run([\"output\"], {\"input\": text_input_test.numpy().astype(\"int32\")})[0][0]\n",+ "# text_onnx_test_emb /= norm(text_onnx_test_emb)\n",+ "# similarities_extensive[i] = np.dot(text_onnx_test_emb, text_emb_test)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 51,+ "metadata": {},+ "outputs": [],+ "source": [+ "# print(f\"Mean similarity: {similarities_extensive.mean()}\")\n",+ "# print(f\"Standard deviation: {similarities_extensive.std()}\")\n",+ "# print(f\"Minimum similarity: {similarities_extensive.min()}\")\n",+ "# print(f\"Maximum similarity: {similarities_extensive.max()}\")\n",+ "# print(f\"Percentage of similarities above 0.99: {np.sum(similarities_extensive > 0.99) / len(similarities_extensive) * 100:.2f}%\")\n",+ "# print(f\"Percentage of similarities above 0.995: {np.sum(similarities_extensive > 0.995) / len(similarities_extensive) * 100:.2f}%\")"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Investigating the MatMul excluded from quantization to improve performance (uncomment code below)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 52,+ "metadata": {},+ "outputs": [],+ "source": [+ "# quant_model = onnx.load(clip_text_opt_path)\n",+ "# node_name = node_names[28] # /text_encoder/transformer.0/pre_norm_ffn/pre_norm_ffn.4/MatMul\n",+ "# # use_node_name = matmul_nodes_names[8]\n",+ "# use_node_name = node_name\n",+ "\n",+ "# # Find the MatMul node\n",+ "# special_matmul_node = None\n",+ "# for node in quant_model.graph.node:\n",+ "# if node.op_type == 'MatMul' and node.name == use_node_name:\n",+ "# special_matmul_node = node\n",+ "# print(f\"MatMul node found: {special_matmul_node.name}\")\n",+ "# break\n",+ "\n",+ "# if special_matmul_node is None:\n",+ "# raise ValueError(f\"MatMul node with name '{use_node_name}' not found in the model.\")\n",+ "\n",+ "# # Get the weight tensor\n",+ "# weight_name = special_matmul_node.input[1]\n",+ "# special_weight_tensor = None\n",+ "# for init in quant_model.graph.initializer:\n",+ "# if init.name == weight_name:\n",+ "# special_weight_tensor = init\n",+ "# break\n",+ "\n",+ "# if special_weight_tensor is None:\n",+ "# raise ValueError(f\"Weight tensor for MatMul node '{use_node_name}' not found.\")\n",+ "\n",+ "# special_weight_array = onnx.numpy_helper.to_array(special_weight_tensor)\n",+ "\n",+ "# mean = np.mean(special_weight_array)\n",+ "# std = np.std(special_weight_array)\n",+ "# min_val = np.min(special_weight_array)\n",+ "# max_val = np.max(special_weight_array)\n",+ "\n",+ "# print(f\"Statistical Analysis for MatMul node '{use_node_name}':\")\n",+ "# print(f\"Mean: {mean}\")\n",+ "# print(f\"Standard Deviation: {std}\")\n",+ "# print(f\"Minimum: {min_val}\")\n",+ "# print(f\"Maximum: {max_val}\")\n",+ "# print(f\"Dynamic Range: {max_val - min_val}\")\n",+ "\n",+ "# plt.figure(figsize=(10, 6))\n",+ "# plt.hist(special_weight_array.flatten(), bins=50, edgecolor='black')\n",+ "# plt.title(f\"Histogram of Weights for MatMul node '{use_node_name}'\")\n",+ "# plt.xlabel(\"Weight Value\")\n",+ "# plt.ylabel(\"Frequency\")\n",+ "# plt.show()\n"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test speed of quantized model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 53,+ "metadata": {},+ "outputs": [],+ "source": [+ "# time_test_size = 1000\n",+ "# mobileclip_text_quant_dyn_ort_sess = ort.InferenceSession(clip_text_quantized_dynamic_path)\n",+ "# times_unquantized = np.zeros(time_test_size)\n",+ "# times_quantized = np.zeros(time_test_size)\n",+ "\n",+ "# # Time of unquantized model\n",+ "# print(\"Timing unquantized model...\")\n",+ "# for i, caption in tqdm(enumerate(captions[:time_test_size])):\n",+ "# text_input_test = tokenizer([caption])\n",+ "# start = time.time()\n",+ "# _ = model.encode_text(text_input_test)\n",+ "# end = time.time()\n",+ "# times_unquantized[i] = end - start\n",+ "\n",+ "# # Time of quantized model\n",+ "# print(\"Timing quantized model...\")\n",+ "# for i, caption in tqdm(enumerate(captions[:time_test_size])):\n",+ "# text_input_test = tokenizer([caption]).numpy().astype(\"int32\")\n",+ "# start = time.time()\n",+ "# _ = mobileclip_text_quant_dyn_ort_sess.run([\"output\"], {\"input\": text_input_test})\n",+ "# end = time.time()\n",+ "# times_quantized[i] = end - start\n",+ "\n",+ "# original_mean = times_unquantized.mean()\n",+ "# original_std = times_unquantized.std()\n",+ "# quantized_mean = times_quantized.mean()\n",+ "# quantized_std = times_quantized.std()\n",+ "\n",+ "# print(f\"Original model: {original_mean:.6f} ± {original_std:.6f} seconds\")\n",+ "# print(f\"Quantized model: {quantized_mean:.6f} ± {quantized_std:.6f} seconds\")\n",+ "# print(f\"Speedup: {original_mean / quantized_mean:.2f}x\")"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 54,+ "metadata": {},+ "outputs": [],+ "source": [+ "!rm {clip_text_quantized_preprocessed_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Quantizing image model\n",+ "\n",+ "Eventually got it to roughly 0.996 similarity with the original model, at a reduction of 54MB, from 143 to 89MB. Also not bad, but since it's less of a reduction and the resulting embeddings will be stored permanently we decided not to use it. Uncomment code below to restart investigation if wanted."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 55,+ "metadata": {},+ "outputs": [],+ "source": [+ "# image_node_names = []\n",+ "# image_matmul_nodes_names = []\n",+ "# image_conv_nodes_names = []\n",+ "# for node in clip_image_opt.graph.node:\n",+ "# image_node_names.append(node.name)\n",+ "# if node.op_type == \"MatMul\":\n",+ "# image_matmul_nodes_names.append(node.name)\n",+ "# if node.op_type == \"Conv\":\n",+ "# image_conv_nodes_names.append(node.name)\n",+ "# print(len(image_node_names))\n",+ "# print(len(image_matmul_nodes_names))\n",+ "# print(len(image_conv_nodes_names))"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 56,+ "metadata": {},+ "outputs": [],+ "source": [+ "# clip_image_quantized_dynamic_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_int8_opt.onnx\"\n",+ "# exclude = list(set(image_node_names[:100] + image_conv_nodes_names))\n",+ "# quantize_dynamic(clip_image_opt_path, clip_image_quantized_dynamic_path, weight_type=QuantType.QUInt8, nodes_to_exclude=exclude)\n",+ "\n",+ "# mobileclip_image_quant_dyn_ort_sess = ort.InferenceSession(clip_image_quantized_dynamic_path)\n",+ "# image_onnx_quant_dyn_emb = mobileclip_image_quant_dyn_ort_sess.run([\"output\"], {\"input\": image_singapore_onnx})[0][0]\n",+ "# image_onnx_quant_dyn_emb /= norm(image_onnx_quant_dyn_emb)\n",+ "# np.dot(image_onnx_quant_dyn_emb, image_emb)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Debug quantizations"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 57,+ "metadata": {},+ "outputs": [],+ "source": [+ "# exclude_amount = 50\n",+ "# exclude_for_sure = image_node_names[:100] + image_node_names[225:260] + image_node_names[280:300] + image_node_names[430:480] + image_node_names[510:560] + image_node_names[650:]\n",+ "\n",+ "# image_test_quant = Image.open(\"../data/singapore.jpg\").convert('RGB')\n",+ "# image_test_quant_onnx = np.array(image_test_quant)\n",+ "\n",+ "# clip_image_opt_sess = ort.InferenceSession(clip_image_opt_path)\n",+ "# onnx_emb_quant_test = clip_image_opt_sess.run(None, {\"input\": image_test_quant_onnx})[0][0]\n",+ "# onnx_emb_quant_test /= norm(onnx_emb_quant_test)\n",+ "\n",+ "\n",+ "# for i in range(550, 600, exclude_amount):\n",+ "# begin = i\n",+ "# end = min(i+exclude_amount, len(image_node_names))\n",+ "# exclude = list(set(exclude_for_sure + image_node_names[begin:end]))\n",+ " \n",+ "# clip_image_quantized_dynamic_debug_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_int8dyn_opt_debug.onnx\"\n",+ "# quantize_dynamic(clip_image_opt_path, clip_image_quantized_dynamic_debug_path, weight_type=QuantType.QUInt8, nodes_to_exclude=exclude)\n",+ "# mobileclip_image_quant_dyn_ort_sess_debug = ort.InferenceSession(clip_image_quantized_dynamic_debug_path)\n",+ "# image_onnx_quant_dyn_emb_debug = mobileclip_image_quant_dyn_ort_sess_debug.run([\"output\"], {\"input\": image_test_quant_onnx})[0][0]\n",+ "# image_onnx_quant_dyn_emb_debug /= norm(image_onnx_quant_dyn_emb_debug)\n",+ "# sim_debug = np.dot(image_onnx_quant_dyn_emb_debug, onnx_emb_quant_test)\n",+ "# print(f\"Skipping nodes from {begin} to {end} resulted in a similarity of {sim_debug:.4f}\")"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Float16 conversion for Image model\n",+ "\n",+ "https://onnxruntime.ai/docs/performance/model-optimizations/float16.html"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 58,+ "metadata": {},+ "outputs": [],+ "source": [+ "from onnxconverter_common import convert_float_to_float16"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 59,+ "metadata": {},+ "outputs": [],+ "source": [+ "check_nodes_names = []\n",+ "skip_nodes_names = []\n",+ "try_image_model = onnx.load(clip_image_opt_path)\n",+ "for node in try_image_model.graph.node:\n",+ " check_nodes_names.append(node.name)\n",+ "preprocess_nodes = check_nodes_names[:25]"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "clip_image_fp16 = convert_float_to_float16(try_image_model, keep_io_types=True, disable_shape_infer=True, node_block_list=preprocess_nodes)\n",+ "clip_image_fp16_path = f\"onnx_models/mobileclip_s2_image_opset{onnx_opset}_fp16.onnx\"\n",+ "onnx.save(clip_image_fp16, clip_image_fp16_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test accuracy"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_onnx_input = np.array(Image.open(\"../data/singapore.jpg\").convert('RGB'))\n",+ "try_sess_options = ort.SessionOptions()\n",+ "try_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_EXTENDED\n",+ "# try_sess_options.inter_op_num_threads = 0\n",+ "# try_sess_options.intra_op_num_threads = 0\n",+ "# try_sess_options.execution_mode = ort.ExecutionMode.ORT_PARALLEL\n",+ "# try_sess_options.enable_profiling = True\n",+ "# try_sess_options.log_severity_level = 0 # Verbose\n",+ "clip_image_fp16_sess = ort.InferenceSession(clip_image_fp16_path, try_sess_options)\n",+ "clip_image_sess = ort.InferenceSession(clip_image_opt_path, try_sess_options)\n",+ "image_onnx_fp16_emb = clip_image_fp16_sess.run([\"output\"], {\"input\": image_onnx_input})[0][0]\n",+ "image_onnx_fp16_emb /= norm(image_onnx_fp16_emb)\n",+ "image_onnx_emb = clip_image_sess.run([\"output\"], {\"input\": image_onnx_input})[0][0]\n",+ "image_onnx_emb /= norm(image_onnx_emb)\n",+ "print(np.dot(image_onnx_fp16_emb, image_onnx_emb))\n",+ "print(image_onnx_emb[0:5])\n",+ "print(image_onnx_fp16_emb[0:5])"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Test speed"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "time_test_size = 100\n",+ "\n",+ "begin_time_fp16 = time.time()\n",+ "for i in tqdm(range(time_test_size)):\n",+ " _ = clip_image_fp16_sess.run([\"output\"], {\"input\": image_onnx_input})\n",+ "end_time_fp16 = time.time()\n",+ "time_fp16 = end_time_fp16 - begin_time_fp16\n",+ "\n",+ "begin_time_opt = time.time()\n",+ "for i in tqdm(range(time_test_size)):\n",+ " _ = clip_image_sess.run([\"output\"], {\"input\": image_onnx_input})\n",+ "end_time_opt = time.time()\n",+ "time_opt = end_time_opt - begin_time_opt\n",+ "\n",+ "\n",+ "\n",+ "print(f\"Optimized model: {time_opt:.6f} seconds, so {time_opt / time_test_size:.6f} seconds per inference\")\n",+ "print(f\"FP16 model: {time_fp16:.6f} seconds, so {time_fp16 / time_test_size:.6f} seconds per inference\")\n",+ "print(f\"Speed difference FP16: {time_opt / time_fp16:.2f}x\")"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": "ente_clip",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "codemirror_mode": {+ "name": "ipython",+ "version": 3+ },+ "file_extension": ".py",+ "mimetype": "text/x-python",+ "name": "python",+ "nbconvert_exporter": "python",+ "pygments_lexer": "ipython3",+ "version": "3.12.6"+ }+ },+ "nbformat": 4,+ "nbformat_minor": 2+}diff --git a/infra/ml/README.md b/infra/ml/README.mdnew file mode 100644index 0000000000..ffc468ba2f--- /dev/null+++ b/infra/ml/README.md@@ -0,0 +1,19 @@+# Ente ML playground++This is a central place to keep track of any (Python) code used for prepping our ML models. The purpose of storing it here is to have some kind of version control over the alterations made to the models.++Most of the code is in [Jupyter Notebooks](https://jupyter.org/), which facilitates quick interation and good documentation.++## Running any notebook++In case you're using VSCode, make sure you've installed the [Jupyter](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) extension.++1. [Install uv](https://docs.astral.sh/uv/getting-started/installation/)+2. Run `uv sync`+3. Run `uv venv`+4. In any notebook, make sure to select the virtual environment kernel from `.venv/bin/python` in the top (right corner on VSCode)++## Notebooks and git++Please make sure to always clear output data inside a notebook before committing changes to git.+Jupyter notebooks are known to not always work nicely with Git versioning control when there is output in them.diff --git a/infra/ml/YOLOv5Face/pytorch_weights/.gitkeep b/infra/ml/YOLOv5Face/pytorch_weights/.gitkeepnew file mode 100644index 0000000000..e69de29bb2diff --git a/infra/ml/YOLOv5Face/yoloface_onnx.ipynb b/infra/ml/YOLOv5Face/yoloface_onnx.ipynbnew file mode 100644index 0000000000..b7b157be5f--- /dev/null+++ b/infra/ml/YOLOv5Face/yoloface_onnx.ipynb@@ -0,0 +1,999 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# Prepping YOLOv5Face model for use in Ente\n",+ "\n",+ "[Paper](https://arxiv.org/abs/2105.12931) | [Github](https://github.com/deepcam-cn/yolov5-face)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Setting up Pytorch weights and source code"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Please manually put the Pytorch .pt weights in the `pytorch_weights` directory. "+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 1,+ "metadata": {},+ "outputs": [],+ "source": [+ "model_weights_path = \"pytorch_weights/yolov5s_face.pt\"\n",+ "models_path = \"onnx_models/\""+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!mkdir yoloface_repo\n",+ "%cd yoloface_repo\n",+ "!git clone https://github.com/deepcam-cn/yolov5-face.git\n",+ "%cd ..\n",+ "!cp -r yoloface_repo/yolov5-face/models/ models/\n",+ "!cp -r yoloface_repo/yolov5-face/utils/ utils/\n",+ "!rm -rf yoloface_repo"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Imports"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Libraries\n",+ "import torch\n",+ "import torch.nn as nn\n",+ "from PIL import Image\n",+ "import json\n",+ "import numpy as np\n",+ "import onnx\n",+ "import onnxruntime as ort\n",+ "print(ort.__version__)\n",+ "\n",+ "# Source code\n",+ "from models.common import Conv, ShuffleV2Block\n",+ "from models.experimental import attempt_load\n",+ "from utils.activations import Hardswish, SiLU\n",+ "from utils.general import set_logging, check_img_size"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Export to ONNX"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "onnx_opset = 18\n",+ "img_size = [640, 640]\n",+ "batch_size = 1\n",+ "dynamic_shapes = False\n",+ "\n",+ "# Load PyTorch model\n",+ "model = attempt_load(\n",+ " model_weights_path, map_location=torch.device(\"cpu\")\n",+ ") # load FP32 model\n",+ "delattr(model.model[-1], \"anchor_grid\")\n",+ "model.model[-1].anchor_grid = [\n",+ " torch.zeros(1)\n",+ "] * 3 # nl=3 number of detection layers\n",+ "model.model[-1].export_cat = True\n",+ "model.eval()\n",+ "labels = model.names\n",+ "\n",+ "# Checks\n",+ "gs = int(max(model.stride)) # grid size (max stride)\n",+ "img_size = [\n",+ " check_img_size(x, gs) for x in img_size\n",+ "] # verify img_size are gs-multiples\n",+ "\n",+ "# Test input\n",+ "img = torch.zeros(batch_size, 3, *img_size)\n",+ "\n",+ "# Update model\n",+ "for k, m in model.named_modules():\n",+ " m._non_persistent_buffers_set = set() # pytorch 1.6.0 compatibility\n",+ " if isinstance(m, Conv): # assign export-friendly activations\n",+ " if isinstance(m.act, nn.Hardswish):\n",+ " m.act = Hardswish()\n",+ " elif isinstance(m.act, nn.SiLU):\n",+ " m.act = SiLU()\n",+ " if isinstance(m, ShuffleV2Block): # shufflenet block nn.SiLU\n",+ " for i in range(len(m.branch1)):\n",+ " if isinstance(m.branch1[i], nn.SiLU):\n",+ " m.branch1[i] = SiLU()\n",+ " for i in range(len(m.branch2)):\n",+ " if isinstance(m.branch2[i], nn.SiLU):\n",+ " m.branch2[i] = SiLU()\n",+ "y = model(img) # dry run\n",+ "\n",+ "# ONNX export\n",+ "print(\"\\nStarting ONNX export with onnx %s...\" % onnx.__version__)\n",+ "onnx_model_export_path = models_path + model_weights_path.replace(\".pt\", \".onnx\").split('/')[-1]\n",+ "model.fuse() \n",+ "input_names = [\"input\"]\n",+ "output_names = [\"output\"]\n",+ "torch.onnx.export(\n",+ " model,\n",+ " img,\n",+ " onnx_model_export_path,\n",+ " verbose=False,\n",+ " opset_version=onnx_opset,\n",+ " input_names=input_names,\n",+ " output_names=output_names,\n",+ " dynamic_axes=(\n",+ " {\"input\": {0: \"batch\"}, \"output\": {0: \"batch\"}} if dynamic_shapes else None\n",+ " ),\n",+ ")\n",+ "\n",+ "# Checks\n",+ "onnx_model = onnx.load(onnx_model_export_path) # load onnx model\n",+ "onnx.checker.check_model(onnx_model) # check onnx model\n",+ "\n",+ "# onnx infer\n",+ "providers = [\"CPUExecutionProvider\"]\n",+ "session = ort.InferenceSession(onnx_model_export_path, providers=providers)\n",+ "im = img.cpu().numpy().astype(np.float32) # torch to numpy\n",+ "y_onnx = session.run(\n",+ " [session.get_outputs()[0].name], {session.get_inputs()[0].name: im}\n",+ ")[0]\n",+ "print(\"pred's shape is \", y_onnx.shape)\n",+ "print(\"max(|torch_pred - onnx_pred|) =\", abs(y.cpu().numpy() - y_onnx).max())"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 5,+ "metadata": {},+ "outputs": [],+ "source": [+ "!rm -rf models/\n",+ "!rm -rf utils/"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "## Altering ONNX model"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Add preprocessing inside model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 6,+ "metadata": {},+ "outputs": [],+ "source": [+ "from onnxruntime_extensions.tools.pre_post_processing import PrePostProcessor, create_named_value, Resize, ImageBytesToFloat, Unsqueeze, Debug, LetterBox, ChannelsLastToChannelsFirst"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 7,+ "metadata": {},+ "outputs": [],+ "source": [+ "inputs = [create_named_value(\"input_to_preprocess\", onnx.TensorProto.UINT8, [\"H\", \"W\", \"C\"])]\n",+ "\n",+ "pipeline = PrePostProcessor(inputs, onnx_opset)\n",+ "\n",+ "pipeline.add_pre_processing(\n",+ " [\n",+ " Resize(640, layout= \"HWC\", policy=\"not_larger\"), # Resize to 640, maintaining aspect ratio and letting largest dimension not exceed 640 (so smaller dimension will be <= 640)\n",+ " # Debug(),\n",+ " LetterBox((640, 640), layout=\"HWC\", fill_value=114), # Add padding to make the image actually always 640x640,\n",+ " ChannelsLastToChannelsFirst(), # Convert to CHW\n",+ " # Debug(),\n",+ " ImageBytesToFloat(), # Convert to float in range 0..1 by dividing uint8 values by 255\n",+ " # Debug(),\n",+ " Unsqueeze([0]), # add batch, CHW --> 1CHW\n",+ " # Debug(),\n",+ " ]\n",+ ")\n",+ "\n",+ "# pipeline.add_post_processing()\n",+ "onnx_model_prepro = pipeline.run(onnx_model)\n",+ "onnx.checker.check_model(onnx_model_prepro)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "To debug and visually inspect the preprocessing, please uncomment the `Debug()` statements in above block and run it again, and then uncomment and run the code in the block below:"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 8,+ "metadata": {},+ "outputs": [],+ "source": [+ "# onnx.save(onnx_model_prepro, \"yolov5s_face_prepro.onnx\")\n",+ "\n",+ "# image_singapore = Image.open(\"../data/singapore.jpg\").convert('RGB')\n",+ "# image_singapore_onnx = np.array(image_singapore)\n",+ "# print(image_singapore_onnx.shape)\n",+ "# print(type(image_singapore_onnx))\n",+ "# print(image_singapore_onnx.dtype)\n",+ "\n",+ "# ort_session = ort.InferenceSession(\"yolov5s_face_prepro.onnx\")\n",+ "# test = ort_session.run(None, {\"input_to_preprocess\": image_singapore_onnx})\n",+ "\n",+ "# preprocessed = test[4]\n",+ "# print(preprocessed.shape)\n",+ "# print(type(preprocessed))\n",+ "\n",+ "# # import matplotlib#.pyplot as plt\n",+ "# from IPython.display import display\n",+ "# # matplotlib.use('TkAgg')\n",+ "\n",+ "# displayable_array = preprocessed.reshape(3, 640, 640).transpose((1, 2, 0))\n",+ "# # Display the image\n",+ "# # matplotlib.pyplot.imshow(displayable_array)\n",+ "# # matplotlib.pyplot.axis('off') \n",+ "# # matplotlib.pyplot.show()\n",+ "# display(Image.fromarray((displayable_array * 255).astype(np.uint8)))\n"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Add slice operator for use of RGBA input"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 9,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Create a new input with flexible channel dimension\n",+ "new_input = onnx.helper.make_tensor_value_info(\n",+ " name=\"input\",\n",+ " elem_type=onnx.TensorProto.UINT8,\n",+ " shape=[\"H\", \"W\", \"C\"], \n",+ ")\n",+ "\n",+ "# Create constant tensors for starts, ends, and axes and use them to create a Slice node\n",+ "starts_tensor = onnx.helper.make_tensor(\n",+ " name=\"starts\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([0], dtype=np.int64)\n",+ ")\n",+ "ends_tensor = onnx.helper.make_tensor(\n",+ " name=\"ends\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([3], dtype=np.int64)\n",+ ")\n",+ "axes_tensor = onnx.helper.make_tensor(\n",+ " name=\"axes\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([2], dtype=np.int64)\n",+ ")\n",+ "slice_node = onnx.helper.make_node(\n",+ " \"Slice\",\n",+ " inputs=[\"input\", \"starts\", \"ends\", \"axes\"],\n",+ " outputs=[\"sliced_input\"],\n",+ " name=\"slice_rgba_input_node\",\n",+ ")\n",+ "# Combine initializers\n",+ "initializers = [starts_tensor, ends_tensor, axes_tensor] + list(onnx_model_prepro.graph.initializer)\n",+ "\n",+ "# Get the name of the original input\n",+ "original_input_name = onnx_model_prepro.graph.input[0].name\n",+ "\n",+ "# Make new graph by adding the new input and Slice node to the old graph\n",+ "graph = onnx.helper.make_graph(\n",+ " [slice_node] + list(onnx_model_prepro.graph.node), # Prepend Slice node to existing nodes\n",+ " onnx_model_prepro.graph.name,\n",+ " [new_input] + list(onnx_model_prepro.graph.input)[1:], # Replace first input, keep others\n",+ " list(onnx_model_prepro.graph.output),\n",+ " initializer=initializers,\n",+ " value_info=onnx_model_prepro.graph.value_info,\n",+ ")\n",+ "\n",+ "# Create the new model\n",+ "onnx_model_rgba = onnx.helper.make_model(\n",+ " graph,\n",+ " opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)]\n",+ ")\n",+ "\n",+ "# Update the input names in the rest of the model\n",+ "for node in onnx_model_rgba.graph.node:\n",+ " for i, input_name in enumerate(node.input):\n",+ " if input_name == original_input_name:\n",+ " node.input[i] = \"sliced_input\"\n",+ "\n",+ "# Save the new model\n",+ "onnx.checker.check_model(onnx_model_rgba)\n",+ "onnx_model_rgba_path = onnx_model_export_path[:-5] + \"_rgba.onnx\"\n",+ "onnx.save(onnx_model_rgba, onnx_model_rgba_path)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 10,+ "metadata": {},+ "outputs": [],+ "source": [+ "# image = Image.open(\"../data/man.jpeg\").convert('RGBA')\n",+ "# image_onnx = np.array(image)\n",+ "# print(image_onnx.shape)\n",+ "# print(type(image_onnx))\n",+ "# print(image_onnx.dtype)\n",+ "\n",+ "# ort_session = ort.InferenceSession(\"yolov5s_face_rgba.onnx\")\n",+ "# test = ort_session.run(None, {\"input\": image_onnx})\n",+ "# print(test[0].shape)\n",+ "# scores_output = test[0][:,:,4]\n",+ "# print(f\"Highest score: {scores_output.max()}\")"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Add post-processing inside the model"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Let's first rename the output of the model so we can name the post-processed output as `output`.\n",+ "Then we have to split `[1, 25200, 16]` into `[1, 25200, 4]`, `[1, 25200, 1]`, `[1, 25200, 11]` (i.e. `[1, detections, bbox]`, `[1, detections, score]`, `[1, detections, landmarks]`) named `boxes`, `scores`, `masks`."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 11,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Add a Split operator at the end so that it be used with the SelectBestBoundingBoxesByNMS operator\n",+ "num_det = 25200\n",+ "graph = onnx_model_rgba.graph\n",+ "\n",+ "# Let's first rename the output of the model so we can name the post-processed output as `output`\n",+ "for node in onnx_model_rgba.graph.node:\n",+ " for i, output_name in enumerate(node.output):\n",+ " if output_name == \"output\":\n",+ " node.output[i] = \"og_output\"\n",+ "og_output = onnx.helper.make_tensor_value_info(\n",+ " name=\"og_output\",\n",+ " elem_type=onnx.TensorProto.FLOAT,\n",+ " shape=[1, num_det, 16], \n",+ ")\n",+ "\n",+ "# Create the split node\n",+ "boxes_output = onnx.helper.make_tensor_value_info(\n",+ " name=\"boxes_unsqueezed\",\n",+ " elem_type=onnx.TensorProto.FLOAT,\n",+ " shape=[1, num_det, 4], \n",+ ")\n",+ "scores_output = onnx.helper.make_tensor_value_info(\n",+ " name=\"scores_unsqueezed\",\n",+ " elem_type=onnx.TensorProto.FLOAT,\n",+ " shape=[1, num_det, 1], \n",+ ")\n",+ "masks_output = onnx.helper.make_tensor_value_info(\n",+ " name=\"masks_unsqueezed\",\n",+ " elem_type=onnx.TensorProto.FLOAT,\n",+ " shape=[1, num_det, 11], \n",+ ")\n",+ "splits_tensor = onnx.helper.make_tensor(\n",+ " name=\"splits\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[3],\n",+ " vals=np.array([4, 1, 11], dtype=np.int64)\n",+ ")\n",+ "split_node = onnx.helper.make_node(\n",+ " \"Split\",\n",+ " inputs=[\"og_output\", \"splits\"],\n",+ " outputs=[\"boxes_unsqueezed\", \"scores_unsqueezed\", \"masks_unsqueezed\"],\n",+ " name=\"split_og_output\",\n",+ " axis=2,\n",+ ")\n",+ "\n",+ "# Combine initializers\n",+ "initializers = list(graph.initializer) + [splits_tensor]\n",+ "\n",+ "# Make new graph by adding the new outputs and Split node to the old graph\n",+ "graph = onnx.helper.make_graph(\n",+ " list(graph.node) + [split_node], # Append split node to existing nodes\n",+ " graph.name,\n",+ " list(graph.input), \n",+ " [boxes_output, scores_output, masks_output],\n",+ " initializer=initializers,\n",+ " value_info=graph.value_info,\n",+ ")\n",+ "\n",+ "# Create the new model\n",+ "onnx_model_split = onnx.helper.make_model(\n",+ " graph,\n",+ " opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)]\n",+ ")\n",+ "\n",+ "# Save the new model\n",+ "onnx.checker.check_model(onnx_model_split)\n",+ "onnx_model_split_path = onnx_model_export_path[:-5] + \"_split.onnx\"\n",+ "onnx.save(onnx_model_split, onnx_model_split_path)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Now we can run NMS on these splitted outputs using `NonMaxSuppression` operator"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 12,+ "metadata": {},+ "outputs": [],+ "source": [+ "num_det = 25200\n",+ "graph = onnx_model_split.graph\n",+ "nodes = list(graph.node)\n",+ "outputs = list(graph.output)\n",+ "initializers = list(graph.initializer)\n",+ "original_output = graph.output[0]\n",+ "\n",+ "# Create the Transpose node for the scores (since NMS requires the scores to be in the middle dimension for some reason)\n",+ "transpose_node_score = onnx.helper.make_node(\n",+ " \"Transpose\",\n",+ " inputs=[\"scores_unsqueezed\"],\n",+ " outputs=[\"scores_transposed\"],\n",+ " name=\"transpose_scores\",\n",+ " perm=[0, 2, 1],\n",+ ")\n",+ "nodes.append(transpose_node_score)\n",+ "\n",+ "# Create the NMS node\n",+ "nms_indices = onnx.helper.make_tensor_value_info(\"nms_indices\", onnx.TensorProto.INT64, shape=[\"detections\", 3])\n",+ "max_output = onnx.helper.make_tensor(\"max_output\",onnx.TensorProto.INT64, [1], np.array([100], dtype=np.int64))\n",+ "iou_threshold = onnx.helper.make_tensor(\"iou_threshold\",onnx.TensorProto.FLOAT, [1], np.array([0.4], dtype=np.float32))\n",+ "score_threshold = onnx.helper.make_tensor(\"score_threshold\",onnx.TensorProto.FLOAT, [1], np.array([0.6], dtype=np.float32))\n",+ "initializers = initializers + [max_output, iou_threshold, score_threshold]\n",+ "nms_node = onnx.helper.make_node(\n",+ " \"NonMaxSuppression\",\n",+ " inputs=[\"boxes_unsqueezed\", \"scores_transposed\", \"max_output\", \"iou_threshold\", \"score_threshold\"],\n",+ " outputs=[\"nms_indices\"],\n",+ " name=\"perform_nms\",\n",+ " center_point_box=1,\n",+ ")\n",+ "nodes.append(nms_node)\n",+ "outputs.append(nms_indices)\n",+ "\n",+ "# Make new graph by adding the new outputs and Split node to the old graph\n",+ "graph = onnx.helper.make_graph(\n",+ " nodes,\n",+ " graph.name,\n",+ " list(graph.input), \n",+ " outputs,\n",+ " initializer=initializers,\n",+ " value_info=graph.value_info,\n",+ ")\n",+ "\n",+ "# Create the new model\n",+ "onnx_model_nms = onnx.helper.make_model(\n",+ " graph,\n",+ " opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)]\n",+ ")\n",+ "\n",+ "# Save the new model\n",+ "onnx.checker.check_model(onnx_model_nms)\n",+ "onnx_model_nms_path = onnx_model_export_path[:-5] + \"_nms.onnx\"\n",+ "onnx.save(onnx_model_nms, onnx_model_nms_path)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 13,+ "metadata": {},+ "outputs": [],+ "source": [+ "# image = Image.open(\"../data/man.jpeg\").convert('RGBA')\n",+ "# image_onnx = np.array(image)\n",+ "\n",+ "# ort_session = ort.InferenceSession(\"yolov5s_face_nms.onnx\")\n",+ "# test = ort_session.run(None, {\"input\": image_onnx})\n",+ "# print(test[3].shape)\n",+ "# print(test[3])\n",+ "# print(test[1][0, 24129, 0])"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Now we need to add some Squeeze, Slice and Gather nodes so handle the NMS given indices properly. The goal is that the final output is a very simple array of shape `(detections, 16)` of only the relevant detections."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 14,+ "metadata": {},+ "outputs": [],+ "source": [+ "num_det = 25200\n",+ "graph = onnx_model_nms.graph\n",+ "nodes = list(graph.node)\n",+ "outputs = list(graph.output)\n",+ "initializers = list(graph.initializer)\n",+ "original_output = graph.output[0]\n",+ "\n",+ "# Create Slide node to slice the NMS indices from (detections, 3) to (detections, 1) by taking the third column\n",+ "sliced_indices = onnx.helper.make_tensor_value_info(\"sliced_indices\", onnx.TensorProto.INT64, shape=[\"detections\", 1])\n",+ "outputs.append(sliced_indices)\n",+ "starts_slice_tensor = onnx.helper.make_tensor(\n",+ " name=\"starts_slice_tensor\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([2], dtype=np.int64)\n",+ ")\n",+ "ends_slice_tensor = onnx.helper.make_tensor(\n",+ " name=\"ends_slice_tensor\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([3], dtype=np.int64)\n",+ ")\n",+ "axes_slice_tensor = onnx.helper.make_tensor(\n",+ " name=\"axes_slice_tensor\",\n",+ " data_type=onnx.TensorProto.INT64,\n",+ " dims=[1],\n",+ " vals=np.array([1], dtype=np.int64)\n",+ ")\n",+ "initializers = initializers + [starts_slice_tensor, ends_slice_tensor, axes_slice_tensor]\n",+ "slice_node = onnx.helper.make_node(\n",+ " \"Slice\",\n",+ " inputs=[\"nms_indices\", \"starts_slice_tensor\", \"ends_slice_tensor\", \"axes_slice_tensor\"],\n",+ " outputs=[\"sliced_indices\"],\n",+ " name=\"slice_nms_indices\",\n",+ ")\n",+ "nodes.append(slice_node)\n",+ "\n",+ "# Create Squeeze node to squeeze the sliced indices\n",+ "squeezed_indices = onnx.helper.make_tensor_value_info(\"squeezed_indices\", onnx.TensorProto.INT64, shape=[\"detections\"])\n",+ "outputs.append(squeezed_indices)\n",+ "squeeze_slice_tensor = onnx.helper.make_tensor(\"squeeze_slice_axis\",onnx.TensorProto.INT64, [1], np.array([1], dtype=np.int64))\n",+ "initializers.append(squeeze_slice_tensor)\n",+ "squeeze_slice_node = onnx.helper.make_node(\n",+ " \"Squeeze\",\n",+ " inputs=[\"sliced_indices\", \"squeeze_slice_axis\"],\n",+ " outputs=[\"squeezed_indices\"],\n",+ " name=\"squeeze_sliced_indices\",\n",+ ")\n",+ "nodes.append(squeeze_slice_node)\n",+ "\n",+ "# Create Squeeze node to squeeze the original output\n",+ "squeezed_output = onnx.helper.make_tensor_value_info(\"squeezed_output\", onnx.TensorProto.FLOAT, shape=[25200, 16])\n",+ "outputs.append(squeezed_output)\n",+ "squeeze_tensor = onnx.helper.make_tensor(\"squeeze_axis\",onnx.TensorProto.INT64, [1], np.array([0], dtype=np.int64))\n",+ "initializers.append(squeeze_tensor)\n",+ "squeeze_node = onnx.helper.make_node(\n",+ " \"Squeeze\",\n",+ " inputs=[\"og_output\", \"squeeze_axis\"],\n",+ " outputs=[\"squeezed_output\"],\n",+ " name=\"squeeze_output\",\n",+ ")\n",+ "nodes.append(squeeze_node)\n",+ "\n",+ "\n",+ "# Create Gather node to gather the relevant NMS indices from the original output\n",+ "postpro_output = onnx.helper.make_tensor_value_info(\"output\", onnx.TensorProto.FLOAT, shape=[\"detections\", 16])\n",+ "outputs.append(postpro_output)\n",+ "gather_node = onnx.helper.make_node(\n",+ " \"Gather\",\n",+ " inputs=[\"squeezed_output\", \"squeezed_indices\"],\n",+ " outputs=[\"output\"],\n",+ " name=\"gather_output\",\n",+ ")\n",+ "nodes.append(gather_node)\n",+ "\n",+ "\n",+ "# Make the new graph\n",+ "graph = onnx.helper.make_graph(\n",+ " nodes,\n",+ " graph.name,\n",+ " list(graph.input), \n",+ " [postpro_output],\n",+ " initializer=initializers,\n",+ " value_info=graph.value_info,\n",+ ")\n",+ "\n",+ "# Create the new model\n",+ "onnx_model_prepostpro = onnx.helper.make_model(\n",+ " graph,\n",+ " opset_imports=[onnx.helper.make_opsetid(\"\", onnx_opset)]\n",+ ")\n",+ "\n",+ "# Save the new model\n",+ "onnx.checker.check_model(onnx_model_prepostpro)\n",+ "onnx_model_prepostpro_path = onnx_model_export_path[:-5] + \"_prepostpro.onnx\"\n",+ "onnx.save(onnx_model_prepostpro, onnx_model_prepostpro_path)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 15,+ "metadata": {},+ "outputs": [],+ "source": [+ "# image = Image.open(\"../data/people.jpeg\").convert('RGBA')\n",+ "# image_onnx = np.array(image)\n",+ "\n",+ "# ort_session = ort.InferenceSession(\"yolov5s_face_prepostpro.onnx\")\n",+ "# test = ort_session.run(None, {\"input\": image_onnx})\n",+ "# test[0].shape"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Optimize model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 16,+ "metadata": {},+ "outputs": [],+ "source": [+ "# define path og model and sim model\n",+ "onnx_model_sim_path = onnx_model_export_path[:-5] + f\"_opset{onnx_opset}_rgba_sim.onnx\""+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Simplify the model"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "!onnxsim {onnx_model_prepostpro_path} {onnx_model_sim_path}"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 18,+ "metadata": {},+ "outputs": [],+ "source": [+ "# !onnxsim yolov5s_face_prepostpro.onnx yolov5s_face_opset18_rgba_sim.onnx"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Optimize the graph"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 19,+ "metadata": {},+ "outputs": [],+ "source": [+ "opt_sess_options = ort.SessionOptions()\n",+ "\n",+ "opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_DISABLE_ALL\n",+ "opt_sess_options.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_BASIC\n",+ "\n",+ "onnx_model_opt_path = onnx_model_export_path[:-5] + f\"_opset{onnx_opset}_rgba_opt.onnx\"\n",+ "opt_sess_options.optimized_model_filepath = onnx_model_opt_path\n",+ "\n",+ "opt_session = ort.InferenceSession(onnx_model_sim_path, opt_sess_options)"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "### Add metadata to model\n",+ "\n",+ "https://onnx.ai/onnx/intro/python.html#opset-and-metadata"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 20,+ "metadata": {},+ "outputs": [],+ "source": [+ "new_yolo_face_model = onnx.load(onnx_model_opt_path)\n",+ "new_yolo_face_model.producer_name = \"EnteYOLOv5Face\"\n",+ "new_yolo_face_model.doc_string = \"YOLOv5 Face detector with built-in pre- and post-processing. Accepts both RGB and RGBA raw bytes input (uint8) in HWC format. Outputs the relevant detections in the format (detections, 16) where the first 4 values are the bounding box coordinates, the fifth is the confidence score, and the rest are the landmarks.\"\n",+ "new_yolo_face_model.graph.doc_string = \"\"\n",+ "new_yolo_face_model.graph.name = \"SliceRGB+Resize+LetterBox+ToFloat+Unsqueeze+YOLOv5Face+NMS+Slice+Gather\"\n",+ "onnx.save(new_yolo_face_model, onnx_model_opt_path)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 22,+ "metadata": {},+ "outputs": [],+ "source": [+ "!rm {onnx_model_export_path}\n",+ "!rm {onnx_model_rgba_path}\n",+ "!rm {onnx_model_split_path}\n",+ "!rm {onnx_model_nms_path}\n",+ "!rm {onnx_model_prepostpro_path}\n",+ "!rm {onnx_model_sim_path}"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "Tune some settings"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 23,+ "metadata": {},+ "outputs": [],+ "source": [+ "# from tqdm import tqdm\n",+ "# import time"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 24,+ "metadata": {},+ "outputs": [],+ "source": [+ "# image = Image.open(\"../data/people.jpeg\").convert('RGBA')\n",+ "# image_onnx = np.array(image)\n",+ "# time_test_size = 500\n",+ "\n",+ "# sess_options1 = ort.SessionOptions()\n",+ "# sess_options1.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_EXTENDED\n",+ "# # sess_options.enable_profiling = True\n",+ "# # sess_options.log_severity_level = 0 # Verbose\n",+ "# sess_options1.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL\n",+ "# ort_session1 = ort.InferenceSession(onnx_model_opt_path, sess_options1)\n",+ "\n",+ "# begin_time_1 = time.time()\n",+ "# for i in tqdm(range(time_test_size)):\n",+ "# _ = ort_session1.run(None, {\"input\": image_onnx})\n",+ "# end_time_1 = time.time()\n",+ "# time_1 = end_time_1 - begin_time_1\n",+ "\n",+ "\n",+ "# sess_options2 = ort.SessionOptions()\n",+ "# sess_options2.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_EXTENDED\n",+ "# # sess_options.enable_profiling = True\n",+ "# # sess_options.log_severity_level = 0 # Verbose\n",+ "# sess_options2.inter_op_num_threads = 4\n",+ "# # sess_options2.intra_op_num_threads = 4\n",+ "# sess_options2.execution_mode = ort.ExecutionMode.ORT_PARALLEL\n",+ "# ort_session2 = ort.InferenceSession(onnx_model_opt_path, sess_options2, providers=[\"CPUExecutionProvider\"])\n",+ "\n",+ "# begin_time_2 = time.time()\n",+ "# for i in tqdm(range(time_test_size)):\n",+ "# _ = ort_session2.run(None, {\"input\": image_onnx})\n",+ "# end_time_2 = time.time()\n",+ "# time_2 = end_time_2 - begin_time_2\n",+ "\n",+ "# print(f\"Time for first execution: {time_1}\")\n",+ "# print(f\"Time for second execution: {time_2}\")"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "So lessons:\n",+ "1. Use sequential execution\n",+ "2. Use extended optimizations\n",+ "3. Number of inter op doesn't have significant impact\n",+ "4. Number of intra op doesn't have significant impact"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "One final test:"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image = Image.open(\"../data/man.jpeg\").convert('RGBA')\n",+ "imageWidth, imageHeight = image.size\n",+ "inputWidth, inputHeight = 640, 640\n",+ "print(imageWidth, imageHeight)\n",+ "image_onnx = np.array(image)\n",+ "\n",+ "sess_options1 = ort.SessionOptions()\n",+ "sess_options1.graph_optimization_level = ort.GraphOptimizationLevel.ORT_ENABLE_EXTENDED\n",+ "# sess_options.enable_profiling = True\n",+ "# sess_options.log_severity_level = 0 # Verbose\n",+ "# sess_options1.execution_mode = ort.ExecutionMode.ORT_SEQUENTIAL\n",+ "ort_session = ort.InferenceSession(onnx_model_opt_path)\n",+ "raw_detection = ort_session.run(None, {\"input\": image_onnx})[0][0]\n",+ "print(raw_detection.shape)\n",+ "raw_detection"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 69,+ "metadata": {},+ "outputs": [],+ "source": [+ "from PIL import Image, ImageDraw\n",+ "from IPython.display import display\n",+ "\n",+ "def display_face_detection(image_path, face_box, landmarks):\n",+ " # Open the image\n",+ " img = Image.open(image_path)\n",+ " \n",+ " # Create a draw object\n",+ " draw = ImageDraw.Draw(img)\n",+ " \n",+ " # Draw the bounding box\n",+ " draw.rectangle(face_box, outline=\"red\", width=2)\n",+ " \n",+ " # Draw the landmark points\n",+ " for point in landmarks:\n",+ " x, y = point\n",+ " radius = 3\n",+ " draw.ellipse([x-radius, y-radius, x+radius, y+radius], fill=\"blue\")\n",+ " \n",+ " # Display the image\n",+ " display(img)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": 70,+ "metadata": {},+ "outputs": [],+ "source": [+ "def correct_detection_and_display(image_path, raw_detection, imageWidth, imageHeight, inputWidth, inputHeight):\n",+ "\n",+ " # Create the raw relative bounding box and landmarks\n",+ " box = [0, 0, 0, 0]\n",+ " box[0] = (raw_detection[0] - raw_detection[2] / 2) / inputWidth\n",+ " box[1] = (raw_detection[1] - raw_detection[3] / 2) / inputHeight\n",+ " box[2] = (raw_detection[0] + raw_detection[2] / 2) / inputWidth\n",+ " box[3] = (raw_detection[1] + raw_detection[3] / 2) / inputHeight\n",+ " landmarks = [(0, 0), (0, 0), (0, 0), (0, 0), (0, 0)]\n",+ " i = 0\n",+ " for x, y in zip(raw_detection[5:15:2], raw_detection[6:15:2]):\n",+ " landmarks[i] = (x / inputWidth, y / inputHeight)\n",+ " i += 1\n",+ "\n",+ " # Correct the bounding box and landmarks for letterboxing during preprocessing\n",+ " scale = min(inputWidth / imageWidth, inputHeight / imageHeight)\n",+ " scaledWidth = round(imageWidth * scale)\n",+ " scaledHeight = round(imageHeight * scale)\n",+ " print(f\"scaledWidth: {scaledWidth}, scaledHeight: {scaledHeight}\")\n",+ "\n",+ " halveDiffX = (inputWidth - scaledWidth) / 2\n",+ " halveDiffY = (inputHeight - scaledHeight) / 2\n",+ " print(f\"halveDiffX: {halveDiffX}, halveDiffY: {halveDiffY}\")\n",+ " scaleX = inputHeight / scaledWidth\n",+ " scaleY = inputHeight / scaledHeight\n",+ " translateX = - halveDiffX / inputWidth\n",+ " translateY = - halveDiffY / inputHeight\n",+ " print(f\"scaleX: {scaleX}, scaleY: {scaleY}\")\n",+ " print(f\"translateX: {translateX}, translateY: {translateY}\")\n",+ "\n",+ " box[0] = (box[0] + translateX) * scaleX\n",+ " box[1] = (box[1] + translateY) * scaleY\n",+ " box[2] = (box[2] + translateX) * scaleX\n",+ " box[3] = (box[3] + translateY) * scaleY\n",+ "\n",+ " for i in range(5):\n",+ " landmarks[i] = ((landmarks[i][0] + translateX) * scaleX, (landmarks[i][1] + translateY) * scaleY)\n",+ "\n",+ " # Convert the bounding box and landmarks to absolute values\n",+ " box = [box[0] * imageWidth, box[1] * imageHeight, box[2] * imageWidth, box[3] * imageHeight]\n",+ " landmarks = [(x * imageWidth, y * imageHeight) for x, y in landmarks]\n",+ "\n",+ " print(\"Bounding box:\", box)\n",+ " print(\"Landmarks:\", landmarks)\n",+ "\n",+ " display_face_detection(image_path, box, landmarks)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "image_path = \"../data/man.jpeg\"\n",+ "# face_box = (50, 10, 100, 100) # (left, top, right, bottom)\n",+ "# landmarks = [\n",+ "# (30, 30), # Left eye\n",+ "# (80, 30), # Right eye\n",+ "# (55, 50), # Nose\n",+ "# (35, 80), # Left mouth corner\n",+ "# (75, 80) # Right mouth corner\n",+ "# ]\n",+ "\n",+ "correct_detection_and_display(image_path, raw_detection, imageWidth, imageHeight, inputWidth, inputHeight)\n"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": "ente_clip",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "codemirror_mode": {+ "name": "ipython",+ "version": 3+ },+ "file_extension": ".py",+ "mimetype": "text/x-python",+ "name": "python",+ "nbconvert_exporter": "python",+ "pygments_lexer": "ipython3",+ "version": "3.12.6"+ }+ },+ "nbformat": 4,+ "nbformat_minor": 2+}diff --git a/infra/ml/data/man.jpeg b/infra/ml/data/man.jpegnew file mode 100644index 0000000000..da6df890d9Binary files /dev/null and b/infra/ml/data/man.jpeg differdiff --git a/infra/ml/data/people.jpeg b/infra/ml/data/people.jpegnew file mode 100644index 0000000000..ac21acae61Binary files /dev/null and b/infra/ml/data/people.jpeg differdiff --git a/infra/ml/data/singapore.jpg b/infra/ml/data/singapore.jpgnew file mode 100644index 0000000000..f0ac5d83e7Binary files /dev/null and b/infra/ml/data/singapore.jpg differdiff --git a/infra/ml/pyproject.toml b/infra/ml/pyproject.tomlnew file mode 100644index 0000000000..69454ff68d--- /dev/null+++ b/infra/ml/pyproject.toml@@ -0,0 +1,34 @@+[project]+name = "ente-clean-ml"+version = "0.1.0"+description = "Add your description here"+readme = "README.md"+requires-python = ">=3.12"+dependencies = [+ "ipykernel>=6.29.5",+ "matplotlib>=3.9.2",+ "numpy>=2.1.2",+ "onnx>=1.17.0",+ "onnxconverter-common>=1.14.0",+ "onnxruntime-extensions>=0.12.0",+ "onnxruntime>=1.19.2",+ "onnxsim>=0.4.36",+ "opencv-python>=4.10.0.84",+ "pandas>=2.2.3",+ "pillow>=10.4.0",+ "pip>=24.2",+ "pyyaml>=6.0.2",+ "requests>=2.32.3",+ "scipy>=1.14.1",+ "seaborn>=0.13.2",+ "thop>=0.1.1.post2209072238",+ "torch>=2.4.1",+ "torchaudio>=2.4.1",+ "torchvision>=0.19.1",+ "tqdm>=4.66.5",+]++[tool.uv]+dev-dependencies = [+ "ipykernel>=6.29.5",+]diff --git a/infra/ml/uv.lock b/infra/ml/uv.locknew file mode 100644index 0000000000..ab190b9ead--- /dev/null+++ b/infra/ml/uv.lock@@ -0,0 +1,1427 @@+version = 1+requires-python = ">=3.12"+resolution-markers = [+ "platform_system == 'Darwin' and python_full_version >= '3.12'",+ "platform_machine == 'aarch64' and platform_system == 'Linux' and python_full_version >= '3.12'",+ "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')",+]++[[package]]+name = "appnope"+version = "0.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/35/5d/752690df9ef5b76e169e68d6a129fa6d08a7100ca7f754c89495db3c6019/appnope-0.1.4.tar.gz", hash = "sha256:1de3860566df9caf38f01f86f65e0e13e379af54f9e4bee1e66b48f2efffd1ee", size = 4170 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/29/5ecc3a15d5a33e31b26c11426c45c501e439cb865d0bff96315d86443b78/appnope-0.1.4-py2.py3-none-any.whl", hash = "sha256:502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c", size = 4321 },+]++[[package]]+name = "asttokens"+version = "2.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "six", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/45/1d/f03bcb60c4a3212e15f99a56085d93093a497718adf828d050b9d675da81/asttokens-2.4.1.tar.gz", hash = "sha256:b03869718ba9a6eb027e134bfdf69f38a236d681c83c160d510768af11254ba0", size = 62284 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/45/86/4736ac618d82a20d87d2f92ae19441ebc7ac9e7a581d7e58bbe79233b24a/asttokens-2.4.1-py2.py3-none-any.whl", hash = "sha256:051ed49c3dcae8913ea7cd08e46a606dba30b79993209636c4875bc1d637bc24", size = 27764 },+]++[[package]]+name = "certifi"+version = "2024.8.30"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b0/ee/9b19140fe824b367c04c5e1b369942dd754c4c5462d5674002f75c4dedc1/certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9", size = 168507 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/90/3c9ff0512038035f59d279fddeb79f5f1eccd8859f06d6163c58798b9487/certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8", size = 167321 },+]++[[package]]+name = "cffi"+version = "1.17.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pycparser", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824", size = 516621 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/84/e94227139ee5fb4d600a7a4927f322e1d4aea6fdc50bd3fca8493caba23f/cffi-1.17.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:805b4371bf7197c329fcb3ead37e710d1bca9da5d583f5073b799d5c5bd1eee4", size = 183178 },+ { url = "https://files.pythonhosted.org/packages/da/ee/fb72c2b48656111c4ef27f0f91da355e130a923473bf5ee75c5643d00cca/cffi-1.17.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:733e99bc2df47476e3848417c5a4540522f234dfd4ef3ab7fafdf555b082ec0c", size = 178840 },+ { url = "https://files.pythonhosted.org/packages/cc/b6/db007700f67d151abadf508cbfd6a1884f57eab90b1bb985c4c8c02b0f28/cffi-1.17.1-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1257bdabf294dceb59f5e70c64a3e2f462c30c7ad68092d01bbbfb1c16b1ba36", size = 454803 },+ { url = "https://files.pythonhosted.org/packages/1a/df/f8d151540d8c200eb1c6fba8cd0dfd40904f1b0682ea705c36e6c2e97ab3/cffi-1.17.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da95af8214998d77a98cc14e3a3bd00aa191526343078b530ceb0bd710fb48a5", size = 478850 },+ { url = "https://files.pythonhosted.org/packages/28/c0/b31116332a547fd2677ae5b78a2ef662dfc8023d67f41b2a83f7c2aa78b1/cffi-1.17.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d63afe322132c194cf832bfec0dc69a99fb9bb6bbd550f161a49e9e855cc78ff", size = 485729 },+ { url = "https://files.pythonhosted.org/packages/91/2b/9a1ddfa5c7f13cab007a2c9cc295b70fbbda7cb10a286aa6810338e60ea1/cffi-1.17.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f79fc4fc25f1c8698ff97788206bb3c2598949bfe0fef03d299eb1b5356ada99", size = 471256 },+ { url = "https://files.pythonhosted.org/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93", size = 479424 },+ { url = "https://files.pythonhosted.org/packages/0b/ac/2a28bcf513e93a219c8a4e8e125534f4f6db03e3179ba1c45e949b76212c/cffi-1.17.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:386c8bf53c502fff58903061338ce4f4950cbdcb23e2902d86c0f722b786bbe3", size = 484568 },+ { url = "https://files.pythonhosted.org/packages/d4/38/ca8a4f639065f14ae0f1d9751e70447a261f1a30fa7547a828ae08142465/cffi-1.17.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:4ceb10419a9adf4460ea14cfd6bc43d08701f0835e979bf821052f1805850fe8", size = 488736 },+ { url = "https://files.pythonhosted.org/packages/86/c5/28b2d6f799ec0bdecf44dced2ec5ed43e0eb63097b0f58c293583b406582/cffi-1.17.1-cp312-cp312-win32.whl", hash = "sha256:a08d7e755f8ed21095a310a693525137cfe756ce62d066e53f502a83dc550f65", size = 172448 },+ { url = "https://files.pythonhosted.org/packages/50/b9/db34c4755a7bd1cb2d1603ac3863f22bcecbd1ba29e5ee841a4bc510b294/cffi-1.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:51392eae71afec0d0c8fb1a53b204dbb3bcabcb3c9b807eedf3e1e6ccf2de903", size = 181976 },+ { url = "https://files.pythonhosted.org/packages/8d/f8/dd6c246b148639254dad4d6803eb6a54e8c85c6e11ec9df2cffa87571dbe/cffi-1.17.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f3a2b4222ce6b60e2e8b337bb9596923045681d71e5a082783484d845390938e", size = 182989 },+ { url = "https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2", size = 178802 },+ { url = "https://files.pythonhosted.org/packages/0e/2d/eab2e858a91fdff70533cab61dcff4a1f55ec60425832ddfdc9cd36bc8af/cffi-1.17.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d01b12eeeb4427d3110de311e1774046ad344f5b1a7403101878976ecd7a10f3", size = 454792 },+ { url = "https://files.pythonhosted.org/packages/75/b2/fbaec7c4455c604e29388d55599b99ebcc250a60050610fadde58932b7ee/cffi-1.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:706510fe141c86a69c8ddc029c7910003a17353970cff3b904ff0686a5927683", size = 478893 },+ { url = "https://files.pythonhosted.org/packages/4f/b7/6e4a2162178bf1935c336d4da8a9352cccab4d3a5d7914065490f08c0690/cffi-1.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de55b766c7aa2e2a3092c51e0483d700341182f08e67c63630d5b6f200bb28e5", size = 485810 },+ { url = "https://files.pythonhosted.org/packages/c7/8a/1d0e4a9c26e54746dc08c2c6c037889124d4f59dffd853a659fa545f1b40/cffi-1.17.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c59d6e989d07460165cc5ad3c61f9fd8f1b4796eacbd81cee78957842b834af4", size = 471200 },+ { url = "https://files.pythonhosted.org/packages/26/9f/1aab65a6c0db35f43c4d1b4f580e8df53914310afc10ae0397d29d697af4/cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd398dbc6773384a17fe0d3e7eeb8d1a21c2200473ee6806bb5e6a8e62bb73dd", size = 479447 },+ { url = "https://files.pythonhosted.org/packages/5f/e4/fb8b3dd8dc0e98edf1135ff067ae070bb32ef9d509d6cb0f538cd6f7483f/cffi-1.17.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3edc8d958eb099c634dace3c7e16560ae474aa3803a5df240542b305d14e14ed", size = 484358 },+ { url = "https://files.pythonhosted.org/packages/f1/47/d7145bf2dc04684935d57d67dff9d6d795b2ba2796806bb109864be3a151/cffi-1.17.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:72e72408cad3d5419375fc87d289076ee319835bdfa2caad331e377589aebba9", size = 488469 },+ { url = "https://files.pythonhosted.org/packages/bf/ee/f94057fa6426481d663b88637a9a10e859e492c73d0384514a17d78ee205/cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d", size = 172475 },+ { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009 },+]++[[package]]+name = "charset-normalizer"+version = "3.3.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5", size = 104809 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/b2/fcedc8255ec42afee97f9e6f0145c734bbe104aac28300214593eb326f1d/charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8", size = 192892 },+ { url = "https://files.pythonhosted.org/packages/2e/7d/2259318c202f3d17f3fe6438149b3b9e706d1070fe3fcbb28049730bb25c/charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b", size = 122213 },+ { url = "https://files.pythonhosted.org/packages/3a/52/9f9d17c3b54dc238de384c4cb5a2ef0e27985b42a0e5cc8e8a31d918d48d/charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6", size = 119404 },+ { url = "https://files.pythonhosted.org/packages/99/b0/9c365f6d79a9f0f3c379ddb40a256a67aa69c59609608fe7feb6235896e1/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a", size = 137275 },+ { url = "https://files.pythonhosted.org/packages/91/33/749df346e93d7a30cdcb90cbfdd41a06026317bfbfb62cd68307c1a3c543/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389", size = 147518 },+ { url = "https://files.pythonhosted.org/packages/72/1a/641d5c9f59e6af4c7b53da463d07600a695b9824e20849cb6eea8a627761/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa", size = 140182 },+ { url = "https://files.pythonhosted.org/packages/ee/fb/14d30eb4956408ee3ae09ad34299131fb383c47df355ddb428a7331cfa1e/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b", size = 141869 },+ { url = "https://files.pythonhosted.org/packages/df/3e/a06b18788ca2eb6695c9b22325b6fde7dde0f1d1838b1792a0076f58fe9d/charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed", size = 144042 },+ { url = "https://files.pythonhosted.org/packages/45/59/3d27019d3b447a88fe7e7d004a1e04be220227760264cc41b405e863891b/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26", size = 138275 },+ { url = "https://files.pythonhosted.org/packages/7b/ef/5eb105530b4da8ae37d506ccfa25057961b7b63d581def6f99165ea89c7e/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d", size = 144819 },+ { url = "https://files.pythonhosted.org/packages/a2/51/e5023f937d7f307c948ed3e5c29c4b7a3e42ed2ee0b8cdf8f3a706089bf0/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068", size = 149415 },+ { url = "https://files.pythonhosted.org/packages/24/9d/2e3ef673dfd5be0154b20363c5cdcc5606f35666544381bee15af3778239/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143", size = 141212 },+ { url = "https://files.pythonhosted.org/packages/5b/ae/ce2c12fcac59cb3860b2e2d76dc405253a4475436b1861d95fe75bdea520/charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4", size = 142167 },+ { url = "https://files.pythonhosted.org/packages/ed/3a/a448bf035dce5da359daf9ae8a16b8a39623cc395a2ffb1620aa1bce62b0/charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7", size = 93041 },+ { url = "https://files.pythonhosted.org/packages/b6/7c/8debebb4f90174074b827c63242c23851bdf00a532489fba57fef3416e40/charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001", size = 100397 },+ { url = "https://files.pythonhosted.org/packages/28/76/e6222113b83e3622caa4bb41032d0b1bf785250607392e1b778aca0b8a7d/charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc", size = 48543 },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },+]++[[package]]+name = "coloredlogs"+version = "15.0.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "humanfriendly", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cc/c7/eed8f27100517e8c0e6b923d5f0845d0cb99763da6fdee00478f91db7325/coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0", size = 278520 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934", size = 46018 },+]++[[package]]+name = "comm"+version = "0.2.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e9/a8/fb783cb0abe2b5fded9f55e5703015cdf1c9c85b3669087c538dd15a6a86/comm-0.2.2.tar.gz", hash = "sha256:3fd7a84065306e07bea1773df6eb8282de51ba82f77c72f9c85716ab11fe980e", size = 6210 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e6/75/49e5bfe642f71f272236b5b2d2691cf915a7283cc0ceda56357b61daa538/comm-0.2.2-py3-none-any.whl", hash = "sha256:e6fb86cb70ff661ee8c9c14e7d36d6de3b4066f1441be4063df9c5009f0a64d3", size = 7180 },+]++[[package]]+name = "contourpy"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f5/f6/31a8f28b4a2a4fa0e01085e542f3081ab0588eff8e589d39d775172c9792/contourpy-1.3.0.tar.gz", hash = "sha256:7ffa0db17717a8ffb127efd0c95a4362d996b892c2904db72428d5b52e1938a4", size = 13464370 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c9/92/8e0bbfe6b70c0e2d3d81272b58c98ac69ff1a4329f18c73bd64824d8b12e/contourpy-1.3.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:570ef7cf892f0afbe5b2ee410c507ce12e15a5fa91017a0009f79f7d93a1268f", size = 267838 },+ { url = "https://files.pythonhosted.org/packages/e3/04/33351c5d5108460a8ce6d512307690b023f0cfcad5899499f5c83b9d63b1/contourpy-1.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:da84c537cb8b97d153e9fb208c221c45605f73147bd4cadd23bdae915042aad6", size = 251549 },+ { url = "https://files.pythonhosted.org/packages/51/3d/aa0fe6ae67e3ef9f178389e4caaaa68daf2f9024092aa3c6032e3d174670/contourpy-1.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0be4d8425bfa755e0fd76ee1e019636ccc7c29f77a7c86b4328a9eb6a26d0639", size = 303177 },+ { url = "https://files.pythonhosted.org/packages/56/c3/c85a7e3e0cab635575d3b657f9535443a6f5d20fac1a1911eaa4bbe1aceb/contourpy-1.3.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9c0da700bf58f6e0b65312d0a5e695179a71d0163957fa381bb3c1f72972537c", size = 341735 },+ { url = "https://files.pythonhosted.org/packages/dd/8d/20f7a211a7be966a53f474bc90b1a8202e9844b3f1ef85f3ae45a77151ee/contourpy-1.3.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eb8b141bb00fa977d9122636b16aa67d37fd40a3d8b52dd837e536d64b9a4d06", size = 314679 },+ { url = "https://files.pythonhosted.org/packages/6e/be/524e377567defac0e21a46e2a529652d165fed130a0d8a863219303cee18/contourpy-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3634b5385c6716c258d0419c46d05c8aa7dc8cb70326c9a4fb66b69ad2b52e09", size = 320549 },+ { url = "https://files.pythonhosted.org/packages/0f/96/fdb2552a172942d888915f3a6663812e9bc3d359d53dafd4289a0fb462f0/contourpy-1.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:0dce35502151b6bd35027ac39ba6e5a44be13a68f55735c3612c568cac3805fd", size = 1263068 },+ { url = "https://files.pythonhosted.org/packages/2a/25/632eab595e3140adfa92f1322bf8915f68c932bac468e89eae9974cf1c00/contourpy-1.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:aea348f053c645100612b333adc5983d87be69acdc6d77d3169c090d3b01dc35", size = 1322833 },+ { url = "https://files.pythonhosted.org/packages/73/e3/69738782e315a1d26d29d71a550dbbe3eb6c653b028b150f70c1a5f4f229/contourpy-1.3.0-cp312-cp312-win32.whl", hash = "sha256:90f73a5116ad1ba7174341ef3ea5c3150ddf20b024b98fb0c3b29034752c8aeb", size = 172681 },+ { url = "https://files.pythonhosted.org/packages/0c/89/9830ba00d88e43d15e53d64931e66b8792b46eb25e2050a88fec4a0df3d5/contourpy-1.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:b11b39aea6be6764f84360fce6c82211a9db32a7c7de8fa6dd5397cf1d079c3b", size = 218283 },+ { url = "https://files.pythonhosted.org/packages/53/a1/d20415febfb2267af2d7f06338e82171824d08614084714fb2c1dac9901f/contourpy-1.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3e1c7fa44aaae40a2247e2e8e0627f4bea3dd257014764aa644f319a5f8600e3", size = 267879 },+ { url = "https://files.pythonhosted.org/packages/aa/45/5a28a3570ff6218d8bdfc291a272a20d2648104815f01f0177d103d985e1/contourpy-1.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:364174c2a76057feef647c802652f00953b575723062560498dc7930fc9b1cb7", size = 251573 },+ { url = "https://files.pythonhosted.org/packages/39/1c/d3f51540108e3affa84f095c8b04f0aa833bb797bc8baa218a952a98117d/contourpy-1.3.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:32b238b3b3b649e09ce9aaf51f0c261d38644bdfa35cbaf7b263457850957a84", size = 303184 },+ { url = "https://files.pythonhosted.org/packages/00/56/1348a44fb6c3a558c1a3a0cd23d329d604c99d81bf5a4b58c6b71aab328f/contourpy-1.3.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d51fca85f9f7ad0b65b4b9fe800406d0d77017d7270d31ec3fb1cc07358fdea0", size = 340262 },+ { url = "https://files.pythonhosted.org/packages/2b/23/00d665ba67e1bb666152131da07e0f24c95c3632d7722caa97fb61470eca/contourpy-1.3.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:732896af21716b29ab3e988d4ce14bc5133733b85956316fb0c56355f398099b", size = 313806 },+ { url = "https://files.pythonhosted.org/packages/5a/42/3cf40f7040bb8362aea19af9a5fb7b32ce420f645dd1590edcee2c657cd5/contourpy-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d73f659398a0904e125280836ae6f88ba9b178b2fed6884f3b1f95b989d2c8da", size = 319710 },+ { url = "https://files.pythonhosted.org/packages/05/32/f3bfa3fc083b25e1a7ae09197f897476ee68e7386e10404bdf9aac7391f0/contourpy-1.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c6c7c2408b7048082932cf4e641fa3b8ca848259212f51c8c59c45aa7ac18f14", size = 1264107 },+ { url = "https://files.pythonhosted.org/packages/1c/1e/1019d34473a736664f2439542b890b2dc4c6245f5c0d8cdfc0ccc2cab80c/contourpy-1.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f317576606de89da6b7e0861cf6061f6146ead3528acabff9236458a6ba467f8", size = 1322458 },+ { url = "https://files.pythonhosted.org/packages/22/85/4f8bfd83972cf8909a4d36d16b177f7b8bdd942178ea4bf877d4a380a91c/contourpy-1.3.0-cp313-cp313-win32.whl", hash = "sha256:31cd3a85dbdf1fc002280c65caa7e2b5f65e4a973fcdf70dd2fdcb9868069294", size = 172643 },+ { url = "https://files.pythonhosted.org/packages/cc/4a/fb3c83c1baba64ba90443626c228ca14f19a87c51975d3b1de308dd2cf08/contourpy-1.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:4553c421929ec95fb07b3aaca0fae668b2eb5a5203d1217ca7c34c063c53d087", size = 218301 },+ { url = "https://files.pythonhosted.org/packages/76/65/702f4064f397821fea0cb493f7d3bc95a5d703e20954dce7d6d39bacf378/contourpy-1.3.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:345af746d7766821d05d72cb8f3845dfd08dd137101a2cb9b24de277d716def8", size = 278972 },+ { url = "https://files.pythonhosted.org/packages/80/85/21f5bba56dba75c10a45ec00ad3b8190dbac7fd9a8a8c46c6116c933e9cf/contourpy-1.3.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3bb3808858a9dc68f6f03d319acd5f1b8a337e6cdda197f02f4b8ff67ad2057b", size = 263375 },+ { url = "https://files.pythonhosted.org/packages/0a/64/084c86ab71d43149f91ab3a4054ccf18565f0a8af36abfa92b1467813ed6/contourpy-1.3.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:420d39daa61aab1221567b42eecb01112908b2cab7f1b4106a52caaec8d36973", size = 307188 },+ { url = "https://files.pythonhosted.org/packages/3d/ff/d61a4c288dc42da0084b8d9dc2aa219a850767165d7d9a9c364ff530b509/contourpy-1.3.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4d63ee447261e963af02642ffcb864e5a2ee4cbfd78080657a9880b8b1868e18", size = 345644 },+ { url = "https://files.pythonhosted.org/packages/ca/aa/00d2313d35ec03f188e8f0786c2fc61f589306e02fdc158233697546fd58/contourpy-1.3.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:167d6c890815e1dac9536dca00828b445d5d0df4d6a8c6adb4a7ec3166812fa8", size = 317141 },+ { url = "https://files.pythonhosted.org/packages/8d/6a/b5242c8cb32d87f6abf4f5e3044ca397cb1a76712e3fa2424772e3ff495f/contourpy-1.3.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:710a26b3dc80c0e4febf04555de66f5fd17e9cf7170a7b08000601a10570bda6", size = 323469 },+ { url = "https://files.pythonhosted.org/packages/6f/a6/73e929d43028a9079aca4bde107494864d54f0d72d9db508a51ff0878593/contourpy-1.3.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:75ee7cb1a14c617f34a51d11fa7524173e56551646828353c4af859c56b766e2", size = 1260894 },+ { url = "https://files.pythonhosted.org/packages/2b/1e/1e726ba66eddf21c940821df8cf1a7d15cb165f0682d62161eaa5e93dae1/contourpy-1.3.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:33c92cdae89ec5135d036e7218e69b0bb2851206077251f04a6c4e0e21f03927", size = 1314829 },+]++[[package]]+name = "cycler"+version = "0.12.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321 },+]++[[package]]+name = "debugpy"+version = "1.8.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ce/b3/05c94639560cf0eaef33662ee5102d3e2a8b9e8c527c53190bf7187bacdb/debugpy-1.8.6.zip", hash = "sha256:c931a9371a86784cee25dec8d65bc2dc7a21f3f1552e3833d9ef8f919d22280a", size = 4956612 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b8/9e/882dae43f281fc4742fd9e5d2e0f5dae77f38d4f345e78bf1ed5e1f6202e/debugpy-1.8.6-cp312-cp312-macosx_14_0_universal2.whl", hash = "sha256:db891b141fc6ee4b5fc6d1cc8035ec329cabc64bdd2ae672b4550c87d4ecb128", size = 2526807 },+ { url = "https://files.pythonhosted.org/packages/77/cf/6c0497f4b092cb4a408dda5ab84750032e5535f994d21eb812086d62094d/debugpy-1.8.6-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:567419081ff67da766c898ccf21e79f1adad0e321381b0dfc7a9c8f7a9347972", size = 4162582 },+ { url = "https://files.pythonhosted.org/packages/8e/66/e9c0aef0a5118aeaa6dfccb6d4f388602271cfb37c689da5e7b6168075d2/debugpy-1.8.6-cp312-cp312-win32.whl", hash = "sha256:c9834dfd701a1f6bf0f7f0b8b1573970ae99ebbeee68314116e0ccc5c78eea3c", size = 5193541 },+ { url = "https://files.pythonhosted.org/packages/c2/97/2196c4132c29f7cd8e574bb05a4b03ed35f94e3fcd1f56e72ea9f10732f4/debugpy-1.8.6-cp312-cp312-win_amd64.whl", hash = "sha256:e4ce0570aa4aca87137890d23b86faeadf184924ad892d20c54237bcaab75d8f", size = 5233374 },+ { url = "https://files.pythonhosted.org/packages/05/ce/785925e87ce735cc3da7fb2bd66d8ca83173d8a0b60ce35a59a60b8d636f/debugpy-1.8.6-py2.py3-none-any.whl", hash = "sha256:b48892df4d810eff21d3ef37274f4c60d32cdcafc462ad5647239036b0f0649f", size = 5209208 },+]++[[package]]+name = "decorator"+version = "5.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/66/0c/8d907af351aa16b42caae42f9d6aa37b900c67308052d10fdce809f8d952/decorator-5.1.1.tar.gz", hash = "sha256:637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330", size = 35016 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl", hash = "sha256:b8c3f85900b9dc423225913c5aace94729fe1fa9763b38939a95226f02d37186", size = 9073 },+]++[[package]]+name = "ente-clean-ml"+version = "0.1.0"+source = { virtual = "." }+dependencies = [+ { name = "ipykernel", marker = "python_full_version >= '3.12'" },+ { name = "matplotlib", marker = "python_full_version >= '3.12'" },+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "onnx", marker = "python_full_version >= '3.12'" },+ { name = "onnxconverter-common", marker = "python_full_version >= '3.12'" },+ { name = "onnxruntime", marker = "python_full_version >= '3.12'" },+ { name = "onnxruntime-extensions", marker = "python_full_version >= '3.12'" },+ { name = "onnxsim", marker = "python_full_version >= '3.12'" },+ { name = "opencv-python", marker = "python_full_version >= '3.12'" },+ { name = "pandas", marker = "python_full_version >= '3.12'" },+ { name = "pillow", marker = "python_full_version >= '3.12'" },+ { name = "pip", marker = "python_full_version >= '3.12'" },+ { name = "pyyaml", marker = "python_full_version >= '3.12'" },+ { name = "requests", marker = "python_full_version >= '3.12'" },+ { name = "scipy", marker = "python_full_version >= '3.12'" },+ { name = "seaborn", marker = "python_full_version >= '3.12'" },+ { name = "thop", marker = "python_full_version >= '3.12'" },+ { name = "torch", marker = "python_full_version >= '3.12'" },+ { name = "torchaudio", marker = "python_full_version >= '3.12'" },+ { name = "torchvision", marker = "python_full_version >= '3.12'" },+ { name = "tqdm", marker = "python_full_version >= '3.12'" },+]++[package.dev-dependencies]+dev = [+ { name = "ipykernel", marker = "python_full_version >= '3.12'" },+]++[package.metadata]+requires-dist = [+ { name = "ipykernel", specifier = ">=6.29.5" },+ { name = "matplotlib", specifier = ">=3.9.2" },+ { name = "numpy", specifier = ">=2.1.2" },+ { name = "onnx", specifier = ">=1.17.0" },+ { name = "onnxconverter-common", specifier = ">=1.14.0" },+ { name = "onnxruntime", specifier = ">=1.19.2" },+ { name = "onnxruntime-extensions", specifier = ">=0.12.0" },+ { name = "onnxsim", specifier = ">=0.4.36" },+ { name = "opencv-python", specifier = ">=4.10.0.84" },+ { name = "pandas", specifier = ">=2.2.3" },+ { name = "pillow", specifier = ">=10.4.0" },+ { name = "pip", specifier = ">=24.2" },+ { name = "pyyaml", specifier = ">=6.0.2" },+ { name = "requests", specifier = ">=2.32.3" },+ { name = "scipy", specifier = ">=1.14.1" },+ { name = "seaborn", specifier = ">=0.13.2" },+ { name = "thop", specifier = ">=0.1.1.post2209072238" },+ { name = "torch", specifier = ">=2.4.1" },+ { name = "torchaudio", specifier = ">=2.4.1" },+ { name = "torchvision", specifier = ">=0.19.1" },+ { name = "tqdm", specifier = ">=4.66.5" },+]++[package.metadata.requires-dev]+dev = [{ name = "ipykernel", specifier = ">=6.29.5" }]++[[package]]+name = "executing"+version = "2.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8c/e3/7d45f492c2c4a0e8e0fad57d081a7c8a0286cdd86372b070cca1ec0caa1e/executing-2.1.0.tar.gz", hash = "sha256:8ea27ddd260da8150fa5a708269c4a10e76161e2496ec3e587da9e3c0fe4b9ab", size = 977485 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b5/fd/afcd0496feca3276f509df3dbd5dae726fcc756f1a08d9e25abe1733f962/executing-2.1.0-py2.py3-none-any.whl", hash = "sha256:8d63781349375b5ebccc3142f4b30350c0cd9c79f921cde38be2be4637e98eaf", size = 25805 },+]++[[package]]+name = "filelock"+version = "3.16.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9d/db/3ef5bb276dae18d6ec2124224403d1d67bccdbefc17af4cc8f553e341ab1/filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435", size = 18037 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b9/f8/feced7779d755758a52d1f6635d990b8d98dc0a29fa568bbe0625f18fdf3/filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0", size = 16163 },+]++[[package]]+name = "flatbuffers"+version = "24.3.25"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a9/74/2df95ef84b214d2bee0886d572775a6f38793f5ca6d7630c3239c91104ac/flatbuffers-24.3.25.tar.gz", hash = "sha256:de2ec5b203f21441716617f38443e0a8ebf3d25bf0d9c0bb0ce68fa00ad546a4", size = 22139 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/41/f0/7e988a019bc54b2dbd0ad4182ef2d53488bb02e58694cd79d61369e85900/flatbuffers-24.3.25-py2.py3-none-any.whl", hash = "sha256:8dbdec58f935f3765e4f7f3cf635ac3a77f83568138d6a2311f524ec96364812", size = 26784 },+]++[[package]]+name = "fonttools"+version = "4.54.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/11/1d/70b58e342e129f9c0ce030029fb4b2b0670084bbbfe1121d008f6a1e361c/fonttools-4.54.1.tar.gz", hash = "sha256:957f669d4922f92c171ba01bef7f29410668db09f6c02111e22b2bce446f3285", size = 3463867 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/27/b6/f9d365932dcefefdcc794985f8846471e60932070c557e0f66ed195fccec/fonttools-4.54.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:54471032f7cb5fca694b5f1a0aaeba4af6e10ae989df408e0216f7fd6cdc405d", size = 2761873 },+ { url = "https://files.pythonhosted.org/packages/67/9d/cfbfe36e5061a8f68b154454ba2304eb01f40d4ba9b63e41d9058909baed/fonttools-4.54.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8fa92cb248e573daab8d032919623cc309c005086d743afb014c836636166f08", size = 2251828 },+ { url = "https://files.pythonhosted.org/packages/90/41/5573e074739efd9227dd23647724f01f6f07ad062fe09d02e91c5549dcf7/fonttools-4.54.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a911591200114969befa7f2cb74ac148bce5a91df5645443371aba6d222e263", size = 4792544 },+ { url = "https://files.pythonhosted.org/packages/08/07/aa85cc62abcc940b25d14b542cf585eebf4830032a7f6a1395d696bb3231/fonttools-4.54.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93d458c8a6a354dc8b48fc78d66d2a8a90b941f7fec30e94c7ad9982b1fa6bab", size = 4875892 },+ { url = "https://files.pythonhosted.org/packages/47/23/c5726c2615446c498a976bed21c35a242a97eee39930a2655d616ca885cc/fonttools-4.54.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5eb2474a7c5be8a5331146758debb2669bf5635c021aee00fd7c353558fc659d", size = 4769822 },+ { url = "https://files.pythonhosted.org/packages/8f/7b/87f7f7d35e0732ac67422dfa6f05e2b568fb6ca2dcd7f3e4f500293cfd75/fonttools-4.54.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c9c563351ddc230725c4bdf7d9e1e92cbe6ae8553942bd1fb2b2ff0884e8b714", size = 5029455 },+ { url = "https://files.pythonhosted.org/packages/e0/09/241aa498587889576838aa73c78d22b70ce06970807a5475d372baa7ccb7/fonttools-4.54.1-cp312-cp312-win32.whl", hash = "sha256:fdb062893fd6d47b527d39346e0c5578b7957dcea6d6a3b6794569370013d9ac", size = 2154411 },+ { url = "https://files.pythonhosted.org/packages/b9/0a/a57caaff3bc880779317cb157e5b49dc47fad54effe027016abd355b0651/fonttools-4.54.1-cp312-cp312-win_amd64.whl", hash = "sha256:e4564cf40cebcb53f3dc825e85910bf54835e8a8b6880d59e5159f0f325e637e", size = 2200412 },+ { url = "https://files.pythonhosted.org/packages/05/3d/cc515cae84a11d696f2cb7c139a90997b15f02e2e97ec09a5d79302cbcd7/fonttools-4.54.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6e37561751b017cf5c40fce0d90fd9e8274716de327ec4ffb0df957160be3bff", size = 2749174 },+ { url = "https://files.pythonhosted.org/packages/03/03/05d4b22d1a674d066380657f60bbc0eda2d206446912e676d1a33a206878/fonttools-4.54.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:357cacb988a18aace66e5e55fe1247f2ee706e01debc4b1a20d77400354cddeb", size = 2246267 },+ { url = "https://files.pythonhosted.org/packages/52/c3/bb6086adb675e8b0963a7dbb7769e7118c95b687dd318cd660aefd4b4c8c/fonttools-4.54.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8e953cc0bddc2beaf3a3c3b5dd9ab7554677da72dfaf46951e193c9653e515a", size = 4855090 },+ { url = "https://files.pythonhosted.org/packages/80/a1/d7192b6a104e3f9ea8e5b1c3463a6240399f0fa826a782eff636cbe0495a/fonttools-4.54.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:58d29b9a294573d8319f16f2f79e42428ba9b6480442fa1836e4eb89c4d9d61c", size = 5005449 },+ { url = "https://files.pythonhosted.org/packages/5a/6c/ecfd5c6cd8c9006e85b128d073af26bb263e8aa47506374cb14b25bcf65f/fonttools-4.54.1-cp313-cp313-win32.whl", hash = "sha256:9ef1b167e22709b46bf8168368b7b5d3efeaaa746c6d39661c1b4405b6352e58", size = 2152496 },+ { url = "https://files.pythonhosted.org/packages/63/da/f7a1d837de419e3d4cccbd0dbf53c7399f610f65ceb9bcbf2480f3ae7950/fonttools-4.54.1-cp313-cp313-win_amd64.whl", hash = "sha256:262705b1663f18c04250bd1242b0515d3bbae177bee7752be67c979b7d47f43d", size = 2197257 },+ { url = "https://files.pythonhosted.org/packages/57/5e/de2e6e51cb6894f2f2bc2641f6c845561361b622e96df3cca04df77222c9/fonttools-4.54.1-py3-none-any.whl", hash = "sha256:37cddd62d83dc4f72f7c3f3c2bcf2697e89a30efb152079896544a93907733bd", size = 1096920 },+]++[[package]]+name = "fsspec"+version = "2024.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/62/7c/12b0943011daaaa9c35c2a2e22e5eb929ac90002f08f1259d69aedad84de/fsspec-2024.9.0.tar.gz", hash = "sha256:4b0afb90c2f21832df142f292649035d80b421f60a9e1c027802e5a0da2b04e8", size = 286206 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1d/a0/6aaea0c2fbea2f89bfd5db25fb1e3481896a423002ebe4e55288907a97a3/fsspec-2024.9.0-py3-none-any.whl", hash = "sha256:a0947d552d8a6efa72cc2c730b12c41d043509156966cca4fb157b0f2a0c574b", size = 179253 },+]++[[package]]+name = "humanfriendly"+version = "10.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pyreadline3", marker = "python_full_version >= '3.12' and sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cc/3f/2c29224acb2e2df4d2046e4c73ee2662023c58ff5b113c4c1adac0886c43/humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc", size = 360702 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477", size = 86794 },+]++[[package]]+name = "idna"+version = "3.10"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 },+]++[[package]]+name = "ipykernel"+version = "6.29.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "appnope", marker = "platform_system == 'Darwin' and python_full_version >= '3.12'" },+ { name = "comm", marker = "python_full_version >= '3.12'" },+ { name = "debugpy", marker = "python_full_version >= '3.12'" },+ { name = "ipython", marker = "python_full_version >= '3.12'" },+ { name = "jupyter-client", marker = "python_full_version >= '3.12'" },+ { name = "jupyter-core", marker = "python_full_version >= '3.12'" },+ { name = "matplotlib-inline", marker = "python_full_version >= '3.12'" },+ { name = "nest-asyncio", marker = "python_full_version >= '3.12'" },+ { name = "packaging", marker = "python_full_version >= '3.12'" },+ { name = "psutil", marker = "python_full_version >= '3.12'" },+ { name = "pyzmq", marker = "python_full_version >= '3.12'" },+ { name = "tornado", marker = "python_full_version >= '3.12'" },+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e9/5c/67594cb0c7055dc50814b21731c22a601101ea3b1b50a9a1b090e11f5d0f/ipykernel-6.29.5.tar.gz", hash = "sha256:f093a22c4a40f8828f8e330a9c297cb93dcab13bd9678ded6de8e5cf81c56215", size = 163367 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/94/5c/368ae6c01c7628438358e6d337c19b05425727fbb221d2a3c4303c372f42/ipykernel-6.29.5-py3-none-any.whl", hash = "sha256:afdb66ba5aa354b09b91379bac28ae4afebbb30e8b39510c9690afb7a10421b5", size = 117173 },+]++[[package]]+name = "ipython"+version = "8.28.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "python_full_version >= '3.12' and sys_platform == 'win32'" },+ { name = "decorator", marker = "python_full_version >= '3.12'" },+ { name = "jedi", marker = "python_full_version >= '3.12'" },+ { name = "matplotlib-inline", marker = "python_full_version >= '3.12'" },+ { name = "pexpect", marker = "python_full_version >= '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'" },+ { name = "prompt-toolkit", marker = "python_full_version >= '3.12'" },+ { name = "pygments", marker = "python_full_version >= '3.12'" },+ { name = "stack-data", marker = "python_full_version >= '3.12'" },+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f7/21/48db7d9dd622b9692575004c7c98f85f5629428f58596c59606d36c51b58/ipython-8.28.0.tar.gz", hash = "sha256:0d0d15ca1e01faeb868ef56bc7ee5a0de5bd66885735682e8a322ae289a13d1a", size = 5495762 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f4/3a/5d8680279ada9571de8469220069d27024ee47624af534e537c9ff49a450/ipython-8.28.0-py3-none-any.whl", hash = "sha256:530ef1e7bb693724d3cdc37287c80b07ad9b25986c007a53aa1857272dac3f35", size = 819456 },+]++[[package]]+name = "jedi"+version = "0.19.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "parso", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d6/99/99b493cec4bf43176b678de30f81ed003fd6a647a301b9c927280c600f0a/jedi-0.19.1.tar.gz", hash = "sha256:cf0496f3651bc65d7174ac1b7d043eff454892c708a87d1b683e57b569927ffd", size = 1227821 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/20/9f/bc63f0f0737ad7a60800bfd472a4836661adae21f9c2535f3957b1e54ceb/jedi-0.19.1-py2.py3-none-any.whl", hash = "sha256:e983c654fe5c02867aef4cdfce5a2fbb4a50adc0af145f70504238f18ef5e7e0", size = 1569361 },+]++[[package]]+name = "jinja2"+version = "3.1.4"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markupsafe", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ed/55/39036716d19cab0747a5020fc7e907f362fbf48c984b14e62127f7e68e5d/jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369", size = 240245 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d", size = 133271 },+]++[[package]]+name = "jupyter-client"+version = "8.6.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "jupyter-core", marker = "python_full_version >= '3.12'" },+ { name = "python-dateutil", marker = "python_full_version >= '3.12'" },+ { name = "pyzmq", marker = "python_full_version >= '3.12'" },+ { name = "tornado", marker = "python_full_version >= '3.12'" },+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/71/22/bf9f12fdaeae18019a468b68952a60fe6dbab5d67cd2a103cac7659b41ca/jupyter_client-8.6.3.tar.gz", hash = "sha256:35b3a0947c4a6e9d589eb97d7d4cd5e90f910ee73101611f01283732bd6d9419", size = 342019 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/11/85/b0394e0b6fcccd2c1eeefc230978a6f8cb0c5df1e4cd3e7625735a0d7d1e/jupyter_client-8.6.3-py3-none-any.whl", hash = "sha256:e8a19cc986cc45905ac3362915f410f3af85424b4c0905e94fa5f2cb08e8f23f", size = 106105 },+]++[[package]]+name = "jupyter-core"+version = "5.7.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "platformdirs", marker = "python_full_version >= '3.12'" },+ { name = "pywin32", marker = "platform_python_implementation != 'PyPy' and python_full_version >= '3.12' and sys_platform == 'win32'" },+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/00/11/b56381fa6c3f4cc5d2cf54a7dbf98ad9aa0b339ef7a601d6053538b079a7/jupyter_core-5.7.2.tar.gz", hash = "sha256:aa5f8d32bbf6b431ac830496da7392035d6f61b4f54872f15c4bd2a9c3f536d9", size = 87629 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c9/fb/108ecd1fe961941959ad0ee4e12ee7b8b1477247f30b1fdfd83ceaf017f0/jupyter_core-5.7.2-py3-none-any.whl", hash = "sha256:4f7315d2f6b4bcf2e3e7cb6e46772eba760ae459cd1f59d29eb57b0a01bd7409", size = 28965 },+]++[[package]]+name = "kiwisolver"+version = "1.4.7"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/85/4d/2255e1c76304cbd60b48cee302b66d1dde4468dc5b1160e4b7cb43778f2a/kiwisolver-1.4.7.tar.gz", hash = "sha256:9893ff81bd7107f7b685d3017cc6583daadb4fc26e4a888350df530e41980a60", size = 97286 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/9c/0a11c714cf8b6ef91001c8212c4ef207f772dd84540104952c45c1f0a249/kiwisolver-1.4.7-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:5360cc32706dab3931f738d3079652d20982511f7c0ac5711483e6eab08efff2", size = 121808 },+ { url = "https://files.pythonhosted.org/packages/f2/d8/0fe8c5f5d35878ddd135f44f2af0e4e1d379e1c7b0716f97cdcb88d4fd27/kiwisolver-1.4.7-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:942216596dc64ddb25adb215c3c783215b23626f8d84e8eff8d6d45c3f29f75a", size = 65531 },+ { url = "https://files.pythonhosted.org/packages/80/c5/57fa58276dfdfa612241d640a64ca2f76adc6ffcebdbd135b4ef60095098/kiwisolver-1.4.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:48b571ecd8bae15702e4f22d3ff6a0f13e54d3d00cd25216d5e7f658242065ee", size = 63894 },+ { url = "https://files.pythonhosted.org/packages/8b/e9/26d3edd4c4ad1c5b891d8747a4f81b1b0aba9fb9721de6600a4adc09773b/kiwisolver-1.4.7-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ad42ba922c67c5f219097b28fae965e10045ddf145d2928bfac2eb2e17673640", size = 1369296 },+ { url = "https://files.pythonhosted.org/packages/b6/67/3f4850b5e6cffb75ec40577ddf54f7b82b15269cc5097ff2e968ee32ea7d/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:612a10bdae23404a72941a0fc8fa2660c6ea1217c4ce0dbcab8a8f6543ea9e7f", size = 1461450 },+ { url = "https://files.pythonhosted.org/packages/52/be/86cbb9c9a315e98a8dc6b1d23c43cffd91d97d49318854f9c37b0e41cd68/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9e838bba3a3bac0fe06d849d29772eb1afb9745a59710762e4ba3f4cb8424483", size = 1579168 },+ { url = "https://files.pythonhosted.org/packages/0f/00/65061acf64bd5fd34c1f4ae53f20b43b0a017a541f242a60b135b9d1e301/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:22f499f6157236c19f4bbbd472fa55b063db77a16cd74d49afe28992dff8c258", size = 1507308 },+ { url = "https://files.pythonhosted.org/packages/21/e4/c0b6746fd2eb62fe702118b3ca0cb384ce95e1261cfada58ff693aeec08a/kiwisolver-1.4.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:693902d433cf585133699972b6d7c42a8b9f8f826ebcaf0132ff55200afc599e", size = 1464186 },+ { url = "https://files.pythonhosted.org/packages/0a/0f/529d0a9fffb4d514f2782c829b0b4b371f7f441d61aa55f1de1c614c4ef3/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4e77f2126c3e0b0d055f44513ed349038ac180371ed9b52fe96a32aa071a5107", size = 2247877 },+ { url = "https://files.pythonhosted.org/packages/d1/e1/66603ad779258843036d45adcbe1af0d1a889a07af4635f8b4ec7dccda35/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:657a05857bda581c3656bfc3b20e353c232e9193eb167766ad2dc58b56504948", size = 2404204 },+ { url = "https://files.pythonhosted.org/packages/8d/61/de5fb1ca7ad1f9ab7970e340a5b833d735df24689047de6ae71ab9d8d0e7/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4bfa75a048c056a411f9705856abfc872558e33c055d80af6a380e3658766038", size = 2352461 },+ { url = "https://files.pythonhosted.org/packages/ba/d2/0edc00a852e369827f7e05fd008275f550353f1f9bcd55db9363d779fc63/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:34ea1de54beef1c104422d210c47c7d2a4999bdecf42c7b5718fbe59a4cac383", size = 2501358 },+ { url = "https://files.pythonhosted.org/packages/84/15/adc15a483506aec6986c01fb7f237c3aec4d9ed4ac10b756e98a76835933/kiwisolver-1.4.7-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:90da3b5f694b85231cf93586dad5e90e2d71b9428f9aad96952c99055582f520", size = 2314119 },+ { url = "https://files.pythonhosted.org/packages/36/08/3a5bb2c53c89660863a5aa1ee236912269f2af8762af04a2e11df851d7b2/kiwisolver-1.4.7-cp312-cp312-win32.whl", hash = "sha256:18e0cca3e008e17fe9b164b55735a325140a5a35faad8de92dd80265cd5eb80b", size = 46367 },+ { url = "https://files.pythonhosted.org/packages/19/93/c05f0a6d825c643779fc3c70876bff1ac221f0e31e6f701f0e9578690d70/kiwisolver-1.4.7-cp312-cp312-win_amd64.whl", hash = "sha256:58cb20602b18f86f83a5c87d3ee1c766a79c0d452f8def86d925e6c60fbf7bfb", size = 55884 },+ { url = "https://files.pythonhosted.org/packages/d2/f9/3828d8f21b6de4279f0667fb50a9f5215e6fe57d5ec0d61905914f5b6099/kiwisolver-1.4.7-cp312-cp312-win_arm64.whl", hash = "sha256:f5a8b53bdc0b3961f8b6125e198617c40aeed638b387913bf1ce78afb1b0be2a", size = 48528 },+ { url = "https://files.pythonhosted.org/packages/c4/06/7da99b04259b0f18b557a4effd1b9c901a747f7fdd84cf834ccf520cb0b2/kiwisolver-1.4.7-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2e6039dcbe79a8e0f044f1c39db1986a1b8071051efba3ee4d74f5b365f5226e", size = 121913 },+ { url = "https://files.pythonhosted.org/packages/97/f5/b8a370d1aa593c17882af0a6f6755aaecd643640c0ed72dcfd2eafc388b9/kiwisolver-1.4.7-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a1ecf0ac1c518487d9d23b1cd7139a6a65bc460cd101ab01f1be82ecf09794b6", size = 65627 },+ { url = "https://files.pythonhosted.org/packages/2a/fc/6c0374f7503522539e2d4d1b497f5ebad3f8ed07ab51aed2af988dd0fb65/kiwisolver-1.4.7-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7ab9ccab2b5bd5702ab0803676a580fffa2aa178c2badc5557a84cc943fcf750", size = 63888 },+ { url = "https://files.pythonhosted.org/packages/bf/3e/0b7172793d0f41cae5c923492da89a2ffcd1adf764c16159ca047463ebd3/kiwisolver-1.4.7-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f816dd2277f8d63d79f9c8473a79fe54047bc0467754962840782c575522224d", size = 1369145 },+ { url = "https://files.pythonhosted.org/packages/77/92/47d050d6f6aced2d634258123f2688fbfef8ded3c5baf2c79d94d91f1f58/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf8bcc23ceb5a1b624572a1623b9f79d2c3b337c8c455405ef231933a10da379", size = 1461448 },+ { url = "https://files.pythonhosted.org/packages/9c/1b/8f80b18e20b3b294546a1adb41701e79ae21915f4175f311a90d042301cf/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dea0bf229319828467d7fca8c7c189780aa9ff679c94539eed7532ebe33ed37c", size = 1578750 },+ { url = "https://files.pythonhosted.org/packages/a4/fe/fe8e72f3be0a844f257cadd72689c0848c6d5c51bc1d60429e2d14ad776e/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c06a4c7cf15ec739ce0e5971b26c93638730090add60e183530d70848ebdd34", size = 1507175 },+ { url = "https://files.pythonhosted.org/packages/39/fa/cdc0b6105d90eadc3bee525fecc9179e2b41e1ce0293caaf49cb631a6aaf/kiwisolver-1.4.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:913983ad2deb14e66d83c28b632fd35ba2b825031f2fa4ca29675e665dfecbe1", size = 1463963 },+ { url = "https://files.pythonhosted.org/packages/6e/5c/0c03c4e542720c6177d4f408e56d1c8315899db72d46261a4e15b8b33a41/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5337ec7809bcd0f424c6b705ecf97941c46279cf5ed92311782c7c9c2026f07f", size = 2248220 },+ { url = "https://files.pythonhosted.org/packages/3d/ee/55ef86d5a574f4e767df7da3a3a7ff4954c996e12d4fbe9c408170cd7dcc/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:4c26ed10c4f6fa6ddb329a5120ba3b6db349ca192ae211e882970bfc9d91420b", size = 2404463 },+ { url = "https://files.pythonhosted.org/packages/0f/6d/73ad36170b4bff4825dc588acf4f3e6319cb97cd1fb3eb04d9faa6b6f212/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c619b101e6de2222c1fcb0531e1b17bbffbe54294bfba43ea0d411d428618c27", size = 2352842 },+ { url = "https://files.pythonhosted.org/packages/0b/16/fa531ff9199d3b6473bb4d0f47416cdb08d556c03b8bc1cccf04e756b56d/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:073a36c8273647592ea332e816e75ef8da5c303236ec0167196793eb1e34657a", size = 2501635 },+ { url = "https://files.pythonhosted.org/packages/78/7e/aa9422e78419db0cbe75fb86d8e72b433818f2e62e2e394992d23d23a583/kiwisolver-1.4.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3ce6b2b0231bda412463e152fc18335ba32faf4e8c23a754ad50ffa70e4091ee", size = 2314556 },+ { url = "https://files.pythonhosted.org/packages/a8/b2/15f7f556df0a6e5b3772a1e076a9d9f6c538ce5f05bd590eca8106508e06/kiwisolver-1.4.7-cp313-cp313-win32.whl", hash = "sha256:f4c9aee212bc89d4e13f58be11a56cc8036cabad119259d12ace14b34476fd07", size = 46364 },+ { url = "https://files.pythonhosted.org/packages/0b/db/32e897e43a330eee8e4770bfd2737a9584b23e33587a0812b8e20aac38f7/kiwisolver-1.4.7-cp313-cp313-win_amd64.whl", hash = "sha256:8a3ec5aa8e38fc4c8af308917ce12c536f1c88452ce554027e55b22cbbfbff76", size = 55887 },+ { url = "https://files.pythonhosted.org/packages/c8/a4/df2bdca5270ca85fd25253049eb6708d4127be2ed0e5c2650217450b59e9/kiwisolver-1.4.7-cp313-cp313-win_arm64.whl", hash = "sha256:76c8094ac20ec259471ac53e774623eb62e6e1f56cd8690c67ce6ce4fcb05650", size = 48530 },+]++[[package]]+name = "markdown-it-py"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528 },+]++[[package]]+name = "markupsafe"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5c/84/3f683b24fcffa08c5b7ef3fb8a845661057dd39c321c1ae16fa37a3eb35b/markupsafe-3.0.0.tar.gz", hash = "sha256:03ff62dea2fef3eadf2f1853bc6332bcb0458d9608b11dfb1cd5aeda1c178ea6", size = 20102 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/d2/4cda4f2c9a21b426c5f5b80a70991dc26b78bcecd7b03a8e8a22cc1cddc1/MarkupSafe-3.0.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d261ec38b8a99a39b62e0119ed47fe3b62f7691c500bc1e815265adc016438c1", size = 14274 },+ { url = "https://files.pythonhosted.org/packages/6c/46/92fd7ef12daa1b1e5fe4e38cc251e01c51ea288ecda950a30b2e8d66a051/MarkupSafe-3.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e363440c8534bf2f2ef1b8fdc02037eb5fff8fce2a558519b22d6a3a38b3ec5e", size = 12332 },+ { url = "https://files.pythonhosted.org/packages/61/47/f972faff9134053fc083e591b7415ce7a2f4c51fb1dba17757822d0ebb5d/MarkupSafe-3.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7835de4c56066e096407a1852e5561f6033786dd987fa90dc384e45b9bd21295", size = 24049 },+ { url = "https://files.pythonhosted.org/packages/c0/c9/5c84edd744fe981c1c37e8303799e4d90bc2b146997b60dc158c20791b24/MarkupSafe-3.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b6cc46a27d904c9be5732029769acf4b0af69345172ed1ef6d4db0c023ff603b", size = 23199 },+ { url = "https://files.pythonhosted.org/packages/70/6f/70ca971e19d0cd905f58cd53358b0dfe30fa393bd9d5a1f372667f7b97b0/MarkupSafe-3.0.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f0411641d31aa6f7f0cc13f0f18b63b8dc08da5f3a7505972a42ab059f479ba3", size = 23099 },+ { url = "https://files.pythonhosted.org/packages/7f/47/c15288e10d0f3c9ac0d997891f581d910a593a74c1e9789046b9cb4e4c53/MarkupSafe-3.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b2a7afd24d408b907672015555bc10be2382e6c5f62a488e2d452da670bbd389", size = 23812 },+ { url = "https://files.pythonhosted.org/packages/dd/f6/518225e5cd027828cb26bbe0b99c9b110512960e60718c66df9823ba5e8f/MarkupSafe-3.0.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c8ab7efeff1884c5da8e18f743b667215300e09043820d11723718de0b7db934", size = 23392 },+ { url = "https://files.pythonhosted.org/packages/55/a5/94b07a3fe33d52c93476b0970ab9ab011790c04d10d5c110ed3de01863f5/MarkupSafe-3.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8219e2207f6c188d15614ea043636c2b36d2d79bf853639c124a179412325a13", size = 23559 },+ { url = "https://files.pythonhosted.org/packages/b9/77/1e21ea23aeeaa0760d0ab03976b38f6551ad803cffccdec2db9dcb85ac7c/MarkupSafe-3.0.0-cp312-cp312-win32.whl", hash = "sha256:59420b5a9a5d3fee483a32adb56d7369ae0d630798da056001be1e9f674f3aa6", size = 15064 },+ { url = "https://files.pythonhosted.org/packages/55/e2/4e0c49629d1d8f0642ecc772577cdf870048401280d421321bbb55d8b251/MarkupSafe-3.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:7ed789d0f7f11fcf118cf0acb378743dfdd4215d7f7d18837c88171405c9a452", size = 15564 },+ { url = "https://files.pythonhosted.org/packages/14/dd/7149242a730e218b6dd7ffa6817c951f51f4204e7afb8e8bbf688d8ae4c3/MarkupSafe-3.0.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:27d6a73682b99568916c54a4bfced40e7d871ba685b580ea04bbd2e405dfd4c5", size = 14276 },+ { url = "https://files.pythonhosted.org/packages/8a/c5/b6cda6248f83c59148540b6d815b4c59b1222e059fe759eb3c446748b744/MarkupSafe-3.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:494a64efc535e147fcc713dba58eecfce3a79f1e93ebe81995b387f5cd9bc2e1", size = 12325 },+ { url = "https://files.pythonhosted.org/packages/9c/84/9f82de5f77f61c64fec414f4ae7e1e7871b82da0d52414f8810410de752a/MarkupSafe-3.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5243044a927e8a6bb28517838662a019cd7f73d7f106bbb37ab5e7fa8451a92", size = 24010 },+ { url = "https://files.pythonhosted.org/packages/45/14/80f6553deba7a6beeae455f2c1e450f55f0f17241f06ed065571445e2bf0/MarkupSafe-3.0.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:63dae84964a9a3d2610808cee038f435d9a111620c37ccf872c2fcaeca6865b3", size = 23163 },+ { url = "https://files.pythonhosted.org/packages/34/03/e64f36452db4eabf3b89cfbbebf46736afa82eda0c95f3f4bf11c4cf3c85/MarkupSafe-3.0.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dcbee57fedc9b2182c54ffc1c5eed316c3da8bbfeda8009e1b5d7220199d15da", size = 23044 },+ { url = "https://files.pythonhosted.org/packages/eb/89/9c47f58e3e75adbaa9387f3db84ca6a7d3a3abd93e7541cfaadad073e5d6/MarkupSafe-3.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f846fd7c241e5bd4161e2a483663eb66e4d8e12130fcdc052f310f388f1d61c6", size = 23849 },+ { url = "https://files.pythonhosted.org/packages/87/ae/fd72c59177ae148aee41eed67f5dcb73e96590f439fd0149c88deab207c0/MarkupSafe-3.0.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:678fbceb202382aae42c1f0cd9f56b776bc20a58ae5b553ee1fe6b802983a1d6", size = 23414 },+ { url = "https://files.pythonhosted.org/packages/7a/8f/2e9a4653c78744b8a65cab56382148073c96893efc4c75eef2fa0a96f608/MarkupSafe-3.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bd9b8e458e2bab52f9ad3ab5dc8b689a3c84b12b2a2f64cd9a0dfe209fb6b42f", size = 23518 },+ { url = "https://files.pythonhosted.org/packages/81/ac/1ab4e1f47f1778bd2c407b7be543b3c08bff555c8444c742e3c53958d114/MarkupSafe-3.0.0-cp313-cp313-win32.whl", hash = "sha256:1fd02f47596e00a372f5b4af2b4c45f528bade65c66dfcbc6e1ea1bfda758e98", size = 15068 },+ { url = "https://files.pythonhosted.org/packages/53/c4/b3d9f84a093244602e6081e35cf1166cd2f6e3d65746da12d4c13511e2cb/MarkupSafe-3.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:b94bec9eda10111ec7102ef909eca4f3c2df979643924bfe58375f560713a7d1", size = 15566 },+ { url = "https://files.pythonhosted.org/packages/47/2d/6ea2c34833582fb04447e2a91ae8f49540a57757add92cb5095e49d12c61/MarkupSafe-3.0.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:509c424069dd037d078925b6815fc56b7271f3aaec471e55e6fa513b0a80d2aa", size = 14513 },+ { url = "https://files.pythonhosted.org/packages/bf/bf/0ee8f270b82fab05b763cfbacc2c33a62f571f59968abc37d4793b3c1623/MarkupSafe-3.0.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:81be2c0084d8c69e97e3c5d73ce9e2a6e523556f2a19c4e195c09d499be2f808", size = 12460 },+ { url = "https://files.pythonhosted.org/packages/e4/63/90a907e327e640462ccc671fd55c140e609d09312fa6db62822b2066bf5b/MarkupSafe-3.0.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b43ac1eb9f91e0c14aac1d2ef0f76bc7b9ceea51de47536f61268191adf52ad7", size = 25312 },+ { url = "https://files.pythonhosted.org/packages/7a/04/84e439fd573000d85c2394e690dfbf2f322bf09b010689bcac4bafee8834/MarkupSafe-3.0.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3b231255770723f1e125d63c14269bcd8b8136ecfb620b9a18c0297e046d0736", size = 23746 },+ { url = "https://files.pythonhosted.org/packages/5f/7d/2bb2663db79eb702d168ab6728741f64e431cd78f55b22c868e95d9805ef/MarkupSafe-3.0.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c182d45600556917f811aa019d834a89fe4b6f6255da2fd0bdcf80e970f95918", size = 23696 },+ { url = "https://files.pythonhosted.org/packages/5c/66/3227765a7215b205847d71af5def5693027df2538bdd33775eef1ee8151f/MarkupSafe-3.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9f91c90f8f3bf436f81c12eeb4d79f9ddd263c71125e6ad71341906832a34386", size = 25026 },+ { url = "https://files.pythonhosted.org/packages/f5/77/f3787b456331c94458aef7629c197a70b1c5279e0d04ad0646a13484a20c/MarkupSafe-3.0.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:a7171d2b869e9be238ea318c196baf58fbf272704e9c1cd4be8c380eea963342", size = 23988 },+ { url = "https://files.pythonhosted.org/packages/d8/27/bffd73c503bfe6f00fa3de64703e00768f65f74a37b6fb2342ef771cacfd/MarkupSafe-3.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:cb244adf2499aa37d5dc43431990c7f0b632d841af66a51d22bd89c437b60264", size = 23967 },+ { url = "https://files.pythonhosted.org/packages/31/b5/d4a9ecb9785d0d5cad3fac326488dc99eb85270dea989d460cbebd603626/MarkupSafe-3.0.0-cp313-cp313t-win32.whl", hash = "sha256:96e3ed550600185d34429477f1176cedea8293fa40e47fe37a05751bcb64c997", size = 15166 },+ { url = "https://files.pythonhosted.org/packages/8f/86/4b87d92b35f9818d52bfda94abec26ef1b50441982c57d20566ec6b46ada/MarkupSafe-3.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:1d151b9cf3307e259b749125a5a08c030ba15a8f1d567ca5bfb0e92f35e761f5", size = 15694 },+]++[[package]]+name = "matplotlib"+version = "3.9.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "contourpy", marker = "python_full_version >= '3.12'" },+ { name = "cycler", marker = "python_full_version >= '3.12'" },+ { name = "fonttools", marker = "python_full_version >= '3.12'" },+ { name = "kiwisolver", marker = "python_full_version >= '3.12'" },+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "packaging", marker = "python_full_version >= '3.12'" },+ { name = "pillow", marker = "python_full_version >= '3.12'" },+ { name = "pyparsing", marker = "python_full_version >= '3.12'" },+ { name = "python-dateutil", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/9e/d8/3d7f706c69e024d4287c1110d74f7dabac91d9843b99eadc90de9efc8869/matplotlib-3.9.2.tar.gz", hash = "sha256:96ab43906269ca64a6366934106fa01534454a69e471b7bf3d79083981aaab92", size = 36088381 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/82/de/54f7f38ce6de79cb77d513bb3eaa4e0b1031e9fd6022214f47943fa53a88/matplotlib-3.9.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:ac43031375a65c3196bee99f6001e7fa5bdfb00ddf43379d3c0609bdca042df9", size = 7892511 },+ { url = "https://files.pythonhosted.org/packages/35/3e/5713b84a02b24b2a4bd4d6673bfc03017e6654e1d8793ece783b7ed4d484/matplotlib-3.9.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:be0fc24a5e4531ae4d8e858a1a548c1fe33b176bb13eff7f9d0d38ce5112a27d", size = 7769370 },+ { url = "https://files.pythonhosted.org/packages/5b/bd/c404502aa1824456d2862dd6b9b0c1917761a51a32f7f83ff8cf94b6d117/matplotlib-3.9.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bf81de2926c2db243c9b2cbc3917619a0fc85796c6ba4e58f541df814bbf83c7", size = 8193260 },+ { url = "https://files.pythonhosted.org/packages/27/75/de5b9cd67648051cae40039da0c8cbc497a0d99acb1a1f3d087cd66d27b7/matplotlib-3.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f6ee45bc4245533111ced13f1f2cace1e7f89d1c793390392a80c139d6cf0e6c", size = 8306310 },+ { url = "https://files.pythonhosted.org/packages/de/e3/2976e4e54d7ee76eaf54b7639fdc10a223d05c2bdded7045233e9871e469/matplotlib-3.9.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:306c8dfc73239f0e72ac50e5a9cf19cc4e8e331dd0c54f5e69ca8758550f1e1e", size = 9086717 },+ { url = "https://files.pythonhosted.org/packages/d2/92/c2b9464a0562feb6ae780bdc152364810862e07ef5e6affa2b7686028db2/matplotlib-3.9.2-cp312-cp312-win_amd64.whl", hash = "sha256:5413401594cfaff0052f9d8b1aafc6d305b4bd7c4331dccd18f561ff7e1d3bd3", size = 7832805 },+ { url = "https://files.pythonhosted.org/packages/5c/7f/8932eac316b32f464b8f9069f151294dcd892c8fbde61fe8bcd7ba7f7f7e/matplotlib-3.9.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:18128cc08f0d3cfff10b76baa2f296fc28c4607368a8402de61bb3f2eb33c7d9", size = 7893012 },+ { url = "https://files.pythonhosted.org/packages/90/89/9db9db3dd0ff3e2c49e452236dfe29e60b5586a88f8928ca1d153d0da8b5/matplotlib-3.9.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4876d7d40219e8ae8bb70f9263bcbe5714415acfdf781086601211335e24f8aa", size = 7769810 },+ { url = "https://files.pythonhosted.org/packages/67/26/d2661cdc2e1410b8929c5f12dfd521e4528abfed1b3c3d5a28ac48258b43/matplotlib-3.9.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6d9f07a80deab4bb0b82858a9e9ad53d1382fd122be8cde11080f4e7dfedb38b", size = 8193779 },+ { url = "https://files.pythonhosted.org/packages/95/70/4839eaa672bf4eacc98ebc8d23633e02b6daf39e294e7433c4ab11a689be/matplotlib-3.9.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f7c0410f181a531ec4e93bbc27692f2c71a15c2da16766f5ba9761e7ae518413", size = 8306260 },+ { url = "https://files.pythonhosted.org/packages/88/62/7b263b2cb2724b45d3a4f9c8c6137696cc3ef037d44383fb01ac2a9555c2/matplotlib-3.9.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:909645cce2dc28b735674ce0931a4ac94e12f5b13f6bb0b5a5e65e7cea2c192b", size = 9086073 },+ { url = "https://files.pythonhosted.org/packages/b0/6d/3572fe243c74112fef120f0bc86f5edd21f49b60e8322fc7f6a01fe945dd/matplotlib-3.9.2-cp313-cp313-win_amd64.whl", hash = "sha256:f32c7410c7f246838a77d6d1eff0c0f87f3cb0e7c4247aebea71a6d5a68cab49", size = 7833041 },+ { url = "https://files.pythonhosted.org/packages/03/8f/9d505be3eb2f40ec731674fb6b47d10cc3147bbd6a9ea7a08c8da55415c6/matplotlib-3.9.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:37e51dd1c2db16ede9cfd7b5cabdfc818b2c6397c83f8b10e0e797501c963a03", size = 7933657 },+ { url = "https://files.pythonhosted.org/packages/5d/68/44b458b9794bcff2a66921f8c9a8110a50a0bb099bd5f7cabb428a1dc765/matplotlib-3.9.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b82c5045cebcecd8496a4d694d43f9cc84aeeb49fe2133e036b207abe73f4d30", size = 7799276 },+ { url = "https://files.pythonhosted.org/packages/47/79/8486d4ddcaaf676314b5fb58e8fe19d1a6210a443a7c31fa72d4215fcb87/matplotlib-3.9.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f053c40f94bc51bc03832a41b4f153d83f2062d88c72b5e79997072594e97e51", size = 8221027 },+ { url = "https://files.pythonhosted.org/packages/56/62/72a472181578c3d035dcda0d0fa2e259ba2c4cb91132588a348bb705b70d/matplotlib-3.9.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dbe196377a8248972f5cede786d4c5508ed5f5ca4a1e09b44bda889958b33f8c", size = 8329097 },+ { url = "https://files.pythonhosted.org/packages/01/8a/760f7fce66b39f447ad160800619d0bd5d0936d2b4633587116534a4afe0/matplotlib-3.9.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5816b1e1fe8c192cbc013f8f3e3368ac56fbecf02fb41b8f8559303f24c5015e", size = 9093770 },+]++[[package]]+name = "matplotlib-inline"+version = "0.1.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "traitlets", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/99/5b/a36a337438a14116b16480db471ad061c36c3694df7c2084a0da7ba538b7/matplotlib_inline-0.1.7.tar.gz", hash = "sha256:8423b23ec666be3d16e16b60bdd8ac4e86e840ebd1dd11a30b9f117f2fa0ab90", size = 8159 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8f/8e/9ad090d3553c280a8060fbf6e24dc1c0c29704ee7d1c372f0c174aa59285/matplotlib_inline-0.1.7-py3-none-any.whl", hash = "sha256:df192d39a4ff8f21b1895d72e6a13f5fcc5099f00fa84384e0ea28c2cc0653ca", size = 9899 },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 },+]++[[package]]+name = "mpmath"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198 },+]++[[package]]+name = "nest-asyncio"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/83/f8/51569ac65d696c8ecbee95938f89d4abf00f47d58d48f6fbabfe8f0baefe/nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe", size = 7418 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a0/c4/c2971a3ba4c6103a3d10c4b0f24f461ddc027f0f09763220cf35ca1401b3/nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c", size = 5195 },+]++[[package]]+name = "networkx"+version = "3.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/04/e6/b164f94c869d6b2c605b5128b7b0cfe912795a87fc90e78533920001f3ec/networkx-3.3.tar.gz", hash = "sha256:0c127d8b2f4865f59ae9cb8aafcd60b5c70f3241ebd66f7defad7c4ab90126c9", size = 2126579 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/38/e9/5f72929373e1a0e8d142a130f3f97e6ff920070f87f91c4e13e40e0fba5a/networkx-3.3-py3-none-any.whl", hash = "sha256:28575580c6ebdaf4505b22c6256a2b9de86b316dc63ba9e93abde3d78dfdbcf2", size = 1702396 },+]++[[package]]+name = "numpy"+version = "2.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/4b/d1/8a730ea07f4a37d94f9172f4ce1d81064b7a64766b460378be278952de75/numpy-2.1.2.tar.gz", hash = "sha256:13532a088217fa624c99b843eeb54640de23b3414b14aa66d023805eb731066c", size = 18878063 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a0/7d/554a6838f37f3ada5a55f25173c619d556ae98092a6e01afb6e710501d70/numpy-2.1.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d7bf0a4f9f15b32b5ba53147369e94296f5fffb783db5aacc1be15b4bf72f43b", size = 20848077 },+ { url = "https://files.pythonhosted.org/packages/b0/29/cb48a402ea879e645b16218718f3f7d9588a77d674a9dcf22e4c43487636/numpy-2.1.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b1d0fcae4f0949f215d4632be684a539859b295e2d0cb14f78ec231915d644db", size = 13493242 },+ { url = "https://files.pythonhosted.org/packages/56/44/f899b0581766c230da42f751b7b8896d096640b19b312164c267e48d36cb/numpy-2.1.2-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:f751ed0a2f250541e19dfca9f1eafa31a392c71c832b6bb9e113b10d050cb0f1", size = 5089219 },+ { url = "https://files.pythonhosted.org/packages/79/8f/b987070d45161a7a4504afc67ed38544ed2c0ed5576263599a0402204a9c/numpy-2.1.2-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:bd33f82e95ba7ad632bc57837ee99dba3d7e006536200c4e9124089e1bf42426", size = 6620167 },+ { url = "https://files.pythonhosted.org/packages/c4/a7/af3329fda3c3ec31d9b650e42bbcd3422fc62a765cbb1405fde4177a0996/numpy-2.1.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b8cde4f11f0a975d1fd59373b32e2f5a562ade7cde4f85b7137f3de8fbb29a0", size = 13604905 },+ { url = "https://files.pythonhosted.org/packages/9b/b4/e3c7e6fab0f77fff6194afa173d1f2342073d91b1d3b4b30b17c3fb4407a/numpy-2.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d95f286b8244b3649b477ac066c6906fbb2905f8ac19b170e2175d3d799f4df", size = 16041825 },+ { url = "https://files.pythonhosted.org/packages/e9/50/6828e66a78aa03147c111f84d55f33ce2dde547cb578d6744a3b06a0124b/numpy-2.1.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ab4754d432e3ac42d33a269c8567413bdb541689b02d93788af4131018cbf366", size = 16409541 },+ { url = "https://files.pythonhosted.org/packages/bf/72/66af7916d9c3c6dbfbc8acdd4930c65461e1953374a2bc43d00f948f004a/numpy-2.1.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e585c8ae871fd38ac50598f4763d73ec5497b0de9a0ab4ef5b69f01c6a046142", size = 14081134 },+ { url = "https://files.pythonhosted.org/packages/dc/5a/59a67d84f33fe00ae74f0b5b69dd4f93a586a4aba7f7e19b54b2133db038/numpy-2.1.2-cp312-cp312-win32.whl", hash = "sha256:9c6c754df29ce6a89ed23afb25550d1c2d5fdb9901d9c67a16e0b16eaf7e2550", size = 6237784 },+ { url = "https://files.pythonhosted.org/packages/4c/79/73735a6a5dad6059c085f240a4e74c9270feccd2bc66e4d31b5ca01d329c/numpy-2.1.2-cp312-cp312-win_amd64.whl", hash = "sha256:456e3b11cb79ac9946c822a56346ec80275eaf2950314b249b512896c0d2505e", size = 12568254 },+ { url = "https://files.pythonhosted.org/packages/16/72/716fa1dbe92395a9a623d5049203ff8ddb0cfce65b9df9117c3696ccc011/numpy-2.1.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a84498e0d0a1174f2b3ed769b67b656aa5460c92c9554039e11f20a05650f00d", size = 20834690 },+ { url = "https://files.pythonhosted.org/packages/1e/fb/3e85a39511586053b5c6a59a643879e376fae22230ebfef9cfabb0e032e2/numpy-2.1.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4d6ec0d4222e8ffdab1744da2560f07856421b367928026fb540e1945f2eeeaf", size = 13507474 },+ { url = "https://files.pythonhosted.org/packages/35/eb/5677556d9ba13436dab51e129f98d4829d95cd1b6bd0e199c14485a4bdb9/numpy-2.1.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:259ec80d54999cc34cd1eb8ded513cb053c3bf4829152a2e00de2371bd406f5e", size = 5074742 },+ { url = "https://files.pythonhosted.org/packages/3e/c5/6c5ef5ba41b65a7e51bed50dbf3e1483eb578055633dd013e811a28e96a1/numpy-2.1.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:675c741d4739af2dc20cd6c6a5c4b7355c728167845e3c6b0e824e4e5d36a6c3", size = 6606787 },+ { url = "https://files.pythonhosted.org/packages/08/ac/f2f29dd4fd325b379c7dc932a0ebab22f0e031dbe80b2f6019b291a3a544/numpy-2.1.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:05b2d4e667895cc55e3ff2b56077e4c8a5604361fc21a042845ea3ad67465aa8", size = 13601333 },+ { url = "https://files.pythonhosted.org/packages/44/26/63f5f4e5089654dfb858f4892215ed968cd1a68e6f4a83f9961f84f855cb/numpy-2.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:43cca367bf94a14aca50b89e9bc2061683116cfe864e56740e083392f533ce7a", size = 16038090 },+ { url = "https://files.pythonhosted.org/packages/1d/21/015e0594de9c3a8d5edd24943d2bd23f102ec71aec026083f822f86497e2/numpy-2.1.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:76322dcdb16fccf2ac56f99048af32259dcc488d9b7e25b51e5eca5147a3fb98", size = 16410865 },+ { url = "https://files.pythonhosted.org/packages/df/01/c1bcf9e6025d79077fbf3f3ee503b50aa7bfabfcd8f4b54f5829f4c00f3f/numpy-2.1.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:32e16a03138cabe0cb28e1007ee82264296ac0983714094380b408097a418cfe", size = 14078077 },+ { url = "https://files.pythonhosted.org/packages/ba/06/db9d127d63bd11591770ba9f3d960f8041e0f895184b9351d4b1b5b56983/numpy-2.1.2-cp313-cp313-win32.whl", hash = "sha256:242b39d00e4944431a3cd2db2f5377e15b5785920421993770cddb89992c3f3a", size = 6234904 },+ { url = "https://files.pythonhosted.org/packages/a9/96/9f61f8f95b6e0ea0aa08633b704c75d1882bdcb331bdf8bfd63263b25b00/numpy-2.1.2-cp313-cp313-win_amd64.whl", hash = "sha256:f2ded8d9b6f68cc26f8425eda5d3877b47343e68ca23d0d0846f4d312ecaa445", size = 12561910 },+ { url = "https://files.pythonhosted.org/packages/36/b8/033f627821784a48e8f75c218033471eebbaacdd933f8979c79637a1b44b/numpy-2.1.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2ffef621c14ebb0188a8633348504a35c13680d6da93ab5cb86f4e54b7e922b5", size = 20857719 },+ { url = "https://files.pythonhosted.org/packages/96/46/af5726fde5b74ed83f2f17a73386d399319b7ed4d51279fb23b721d0816d/numpy-2.1.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:ad369ed238b1959dfbade9018a740fb9392c5ac4f9b5173f420bd4f37ba1f7a0", size = 13518826 },+ { url = "https://files.pythonhosted.org/packages/db/6e/8ce677edf36da1c4dae80afe5529f47690697eb55b4864673af260ccea7b/numpy-2.1.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d82075752f40c0ddf57e6e02673a17f6cb0f8eb3f587f63ca1eaab5594da5b17", size = 5115036 },+ { url = "https://files.pythonhosted.org/packages/6a/ba/3cce44fb1b8438042c11847048812a776f75ee0e7070179c22e4cfbf420c/numpy-2.1.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:1600068c262af1ca9580a527d43dc9d959b0b1d8e56f8a05d830eea39b7c8af6", size = 6628641 },+ { url = "https://files.pythonhosted.org/packages/59/c8/e722998720ccbd35ffbcf1d1b8ed0aa2304af88d3f1c38e06ebf983599b3/numpy-2.1.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a26ae94658d3ba3781d5e103ac07a876b3e9b29db53f68ed7df432fd033358a8", size = 13574803 },+ { url = "https://files.pythonhosted.org/packages/7c/8e/fc1fdd83a55476765329ac2913321c4aed5b082a7915095628c4ca30ea72/numpy-2.1.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13311c2db4c5f7609b462bc0f43d3c465424d25c626d95040f073e30f7570e35", size = 16021174 },+ { url = "https://files.pythonhosted.org/packages/2a/b6/a790742aa88067adb4bd6c89a946778c1417d4deaeafce3ca928f26d4c52/numpy-2.1.2-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:2abbf905a0b568706391ec6fa15161fad0fb5d8b68d73c461b3c1bab6064dd62", size = 16400117 },+ { url = "https://files.pythonhosted.org/packages/48/6f/129e3c17e3befe7fefdeaa6890f4c4df3f3cf0831aa053802c3862da67aa/numpy-2.1.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:ef444c57d664d35cac4e18c298c47d7b504c66b17c2ea91312e979fcfbdfb08a", size = 14066202 },+]++[[package]]+name = "nvidia-cublas-cu12"+version = "12.1.3.1"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/37/6d/121efd7382d5b0284239f4ab1fc1590d86d34ed4a4a2fdb13b30ca8e5740/nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl", hash = "sha256:ee53ccca76a6fc08fb9701aa95b6ceb242cdaab118c3bb152af4e579af792728", size = 410594774 },+]++[[package]]+name = "nvidia-cuda-cupti-cu12"+version = "12.1.105"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/00/6b218edd739ecfc60524e585ba8e6b00554dd908de2c9c66c1af3e44e18d/nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:e54fde3983165c624cb79254ae9818a456eb6e87a7fd4d56a2352c24ee542d7e", size = 14109015 },+]++[[package]]+name = "nvidia-cuda-nvrtc-cu12"+version = "12.1.105"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b6/9f/c64c03f49d6fbc56196664d05dba14e3a561038a81a638eeb47f4d4cfd48/nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:339b385f50c309763ca65456ec75e17bbefcbbf2893f462cb8b90584cd27a1c2", size = 23671734 },+]++[[package]]+name = "nvidia-cuda-runtime-cu12"+version = "12.1.105"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/eb/d5/c68b1d2cdfcc59e72e8a5949a37ddb22ae6cade80cd4a57a84d4c8b55472/nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:6e258468ddf5796e25f1dc591a31029fa317d97a0a94ed93468fc86301d61e40", size = 823596 },+]++[[package]]+name = "nvidia-cudnn-cu12"+version = "9.1.0.70"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/9f/fd/713452cd72343f682b1c7b9321e23829f00b842ceaedcda96e742ea0b0b3/nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl", hash = "sha256:165764f44ef8c61fcdfdfdbe769d687e06374059fbb388b6c89ecb0e28793a6f", size = 664752741 },+]++[[package]]+name = "nvidia-cufft-cu12"+version = "11.0.2.54"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/86/94/eb540db023ce1d162e7bea9f8f5aa781d57c65aed513c33ee9a5123ead4d/nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl", hash = "sha256:794e3948a1aa71fd817c3775866943936774d1c14e7628c74f6f7417224cdf56", size = 121635161 },+]++[[package]]+name = "nvidia-curand-cu12"+version = "10.3.2.106"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/44/31/4890b1c9abc496303412947fc7dcea3d14861720642b49e8ceed89636705/nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl", hash = "sha256:9d264c5036dde4e64f1de8c50ae753237c12e0b1348738169cd0f8a536c0e1e0", size = 56467784 },+]++[[package]]+name = "nvidia-cusolver-cu12"+version = "11.4.5.107"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-cublas-cu12", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+ { name = "nvidia-cusparse-cu12", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/1d/8de1e5c67099015c834315e333911273a8c6aaba78923dd1d1e25fc5f217/nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl", hash = "sha256:8a7ec542f0412294b15072fa7dab71d31334014a69f953004ea7a118206fe0dd", size = 124161928 },+]++[[package]]+name = "nvidia-cusparse-cu12"+version = "12.1.0.106"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "nvidia-nvjitlink-cu12", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/65/5b/cfaeebf25cd9fdec14338ccb16f6b2c4c7fa9163aefcf057d86b9cc248bb/nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl", hash = "sha256:f3b50f42cf363f86ab21f720998517a659a48131e8d538dc02f8768237bd884c", size = 195958278 },+]++[[package]]+name = "nvidia-nccl-cu12"+version = "2.20.5"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c1/bb/d09dda47c881f9ff504afd6f9ca4f502ded6d8fc2f572cacc5e39da91c28/nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1fc150d5c3250b170b29410ba682384b14581db722b2531b0d8d33c595f33d01", size = 176238458 },+ { url = "https://files.pythonhosted.org/packages/4b/2a/0a131f572aa09f741c30ccd45a8e56316e8be8dfc7bc19bf0ab7cfef7b19/nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:057f6bf9685f75215d0c53bf3ac4a10b3e6578351de307abad9e18a99182af56", size = 176249402 },+]++[[package]]+name = "nvidia-nvjitlink-cu12"+version = "12.6.77"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/11/8c/386018fdffdce2ff8d43fedf192ef7d14cab7501cbf78a106dd2e9f1fc1f/nvidia_nvjitlink_cu12-12.6.77-py3-none-manylinux2014_aarch64.whl", hash = "sha256:3bf10d85bb1801e9c894c6e197e44dd137d2a0a9e43f8450e9ad13f2df0dd52d", size = 19270432 },+ { url = "https://files.pythonhosted.org/packages/fe/e4/486de766851d58699bcfeb3ba6a3beb4d89c3809f75b9d423b9508a8760f/nvidia_nvjitlink_cu12-12.6.77-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9ae346d16203ae4ea513be416495167a0101d33d2d14935aa9c1829a3fb45142", size = 19745114 },+]++[[package]]+name = "nvidia-nvtx-cu12"+version = "12.1.105"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/da/d3/8057f0587683ed2fcd4dbfbdfdfa807b9160b809976099d36b8f60d08f03/nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:dc21cf308ca5691e7c04d962e213f8a4aa9bbfa23d95412f452254c2caeb09e5", size = 99138 },+]++[[package]]+name = "onnx"+version = "1.17.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "protobuf", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/9a/54/0e385c26bf230d223810a9c7d06628d954008a5e5e4b73ee26ef02327282/onnx-1.17.0.tar.gz", hash = "sha256:48ca1a91ff73c1d5e3ea2eef20ae5d0e709bb8a2355ed798ffc2169753013fd3", size = 12165120 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b4/dd/c416a11a28847fafb0db1bf43381979a0f522eb9107b831058fde012dd56/onnx-1.17.0-cp312-cp312-macosx_12_0_universal2.whl", hash = "sha256:0e906e6a83437de05f8139ea7eaf366bf287f44ae5cc44b2850a30e296421f2f", size = 16651271 },+ { url = "https://files.pythonhosted.org/packages/f0/6c/f040652277f514ecd81b7251841f96caa5538365af7df07f86c6018cda2b/onnx-1.17.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3d955ba2939878a520a97614bcf2e79c1df71b29203e8ced478fa78c9a9c63c2", size = 15907522 },+ { url = "https://files.pythonhosted.org/packages/3d/7c/67f4952d1b56b3f74a154b97d0dd0630d525923b354db117d04823b8b49b/onnx-1.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f3fb5cc4e2898ac5312a7dc03a65133dd2abf9a5e520e69afb880a7251ec97a", size = 16046307 },+ { url = "https://files.pythonhosted.org/packages/ae/20/6da11042d2ab870dfb4ce4a6b52354d7651b6b4112038b6d2229ab9904c4/onnx-1.17.0-cp312-cp312-win32.whl", hash = "sha256:317870fca3349d19325a4b7d1b5628f6de3811e9710b1e3665c68b073d0e68d7", size = 14424235 },+ { url = "https://files.pythonhosted.org/packages/35/55/c4d11bee1fdb0c4bd84b4e3562ff811a19b63266816870ae1f95567aa6e1/onnx-1.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:659b8232d627a5460d74fd3c96947ae83db6d03f035ac633e20cd69cfa029227", size = 14530453 },+]++[[package]]+name = "onnxconverter-common"+version = "1.14.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "onnx", marker = "python_full_version >= '3.12'" },+ { name = "packaging", marker = "python_full_version >= '3.12'" },+ { name = "protobuf", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/10/d3/bfbfe48d79566348f68e254de68a7a37c5aaaeaac8d42b0cfdaf30d1608e/onnxconverter-common-1.14.0.tar.gz", hash = "sha256:6e431429bd15325c5b2c3eab61bed0d5634c23ed58f8823961be448d629d014a", size = 82146 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6d/6a/9ed9fd4da34cb41fda35bc5cc9e990c605689db7de63ed84fedbca5a77f6/onnxconverter_common-1.14.0-py2.py3-none-any.whl", hash = "sha256:9723e4a9b47f283e298605dce9f357d5ebd5e5e70172fca26e282a1b490916c4", size = 84477 },+]++[[package]]+name = "onnxruntime"+version = "1.19.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coloredlogs", marker = "python_full_version >= '3.12'" },+ { name = "flatbuffers", marker = "python_full_version >= '3.12'" },+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "packaging", marker = "python_full_version >= '3.12'" },+ { name = "protobuf", marker = "python_full_version >= '3.12'" },+ { name = "sympy", marker = "python_full_version >= '3.12'" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/f2/a5/2a02687a88fc8a2507bef65876c90e96b9f8de5ba1f810acbf67c140fc67/onnxruntime-1.19.2-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:68e7051bef9cfefcbb858d2d2646536829894d72a4130c24019219442b1dd2ed", size = 16790434 },+ { url = "https://files.pythonhosted.org/packages/47/64/da42254ec14452cad2cdd4cf407094841c0a378c0d08944e9a36172197e9/onnxruntime-1.19.2-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d2d366fbcc205ce68a8a3bde2185fd15c604d9645888703785b61ef174265168", size = 11486028 },+ { url = "https://files.pythonhosted.org/packages/b2/92/3574f6836f33b1b25f272293e72538c38451b12c2d9aa08630bb6bc0f057/onnxruntime-1.19.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:477b93df4db467e9cbf34051662a4b27c18e131fa1836e05974eae0d6e4cf29b", size = 13175054 },+ { url = "https://files.pythonhosted.org/packages/ff/c9/8c37e413a830cac7f7dc094fffbd0c998c8bcb66a6f0b0a3201a49bc742b/onnxruntime-1.19.2-cp312-cp312-win32.whl", hash = "sha256:9a174073dc5608fad05f7cf7f320b52e8035e73d80b0a23c80f840e5a97c0147", size = 9592681 },+ { url = "https://files.pythonhosted.org/packages/44/c0/59768846533786a82cafb38d8d2f900ad666bc91f0ae634774d286fa3c47/onnxruntime-1.19.2-cp312-cp312-win_amd64.whl", hash = "sha256:190103273ea4507638ffc31d66a980594b237874b65379e273125150eb044857", size = 11086411 },+]++[[package]]+name = "onnxruntime-extensions"+version = "0.12.0"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b4/1c/2cce87265302b90af9266cdc58f397b5d39a96db49f192da01264787474f/onnxruntime_extensions-0.12.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b626c2f9fd526351002eaa433390e0e54ae0caf5c3bc79cda40afe9710ef9ba1", size = 2502378 },+ { url = "https://files.pythonhosted.org/packages/51/bb/177ea8b2c5331d490da6531373e1740451aaa5818927bfdf5fb4567e341e/onnxruntime_extensions-0.12.0-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:0716630bab22db213597cef3192d2945b637ffe17324daddb19b7621a720043b", size = 5190388 },+ { url = "https://files.pythonhosted.org/packages/ac/83/f3668859ba77bdb18cd7c56b5995702f6852b2802fe30aee35042f7cba84/onnxruntime_extensions-0.12.0-cp312-cp312-macosx_11_0_x86_64.whl", hash = "sha256:a1c85668925393e25c33386068dd15530bcc895e9ef13c466128d950de0508f1", size = 2804367 },+ { url = "https://files.pythonhosted.org/packages/ff/e9/6f5ec9ea6ecb9a40be6f88adcc5bfd18cdbc1670a384c9c7a0261c556d70/onnxruntime_extensions-0.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:315e05b3d95d3290fb50fb43a66f5ceccca8958a78b795efeaaca66cbd5cac4e", size = 3248412 },+ { url = "https://files.pythonhosted.org/packages/fc/cb/43549af1a076161ed590d48ccb019a5400bceaef814e20e3b859af33c6cc/onnxruntime_extensions-0.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8477b9bbed8a72841d11920de0a39d05877cdb2818914c1022f53c4dee5f35d2", size = 5866733 },+ { url = "https://files.pythonhosted.org/packages/de/e8/d7c0a9fa0e2b5ec74094895e6188fe96a03c1c93a448155947355e5a9f2e/onnxruntime_extensions-0.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:424ad465b2112a3b877ce0663c7ed78ca5b485e0b143348261372abd141b3a89", size = 1462140 },+]++[[package]]+name = "onnxsim"+version = "0.4.36"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "onnx", marker = "python_full_version >= '3.12'" },+ { name = "rich", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ce/9e/f34238413ebeda9a3a8802feeaa5013934455466b9ab390b48ad9c7e184f/onnxsim-0.4.36.tar.gz", hash = "sha256:6e0ee9d6d4a83042bdef7319fbe58352d9fda5f253386be2b267c7c27f0638ee", size = 20993703 }++[[package]]+name = "opencv-python"+version = "4.10.0.84"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/4a/e7/b70a2d9ab205110d715906fc8ec83fbb00404aeb3a37a0654fdb68eb0c8c/opencv-python-4.10.0.84.tar.gz", hash = "sha256:72d234e4582e9658ffea8e9cae5b63d488ad06994ef12d81dc303b17472f3526", size = 95103981 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/66/82/564168a349148298aca281e342551404ef5521f33fba17b388ead0a84dc5/opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:fc182f8f4cda51b45f01c64e4cbedfc2f00aff799debebc305d8d0210c43f251", size = 54835524 },+ { url = "https://files.pythonhosted.org/packages/64/4a/016cda9ad7cf18c58ba074628a4eaae8aa55f3fd06a266398cef8831a5b9/opencv_python-4.10.0.84-cp37-abi3-macosx_12_0_x86_64.whl", hash = "sha256:71e575744f1d23f79741450254660442785f45a0797212852ee5199ef12eed98", size = 56475426 },+ { url = "https://files.pythonhosted.org/packages/81/e4/7a987ebecfe5ceaf32db413b67ff18eb3092c598408862fff4d7cc3fd19b/opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09a332b50488e2dda866a6c5573ee192fe3583239fb26ff2f7f9ceb0bc119ea6", size = 41746971 },+ { url = "https://files.pythonhosted.org/packages/3f/a4/d2537f47fd7fcfba966bd806e3ec18e7ee1681056d4b0a9c8d983983e4d5/opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ace140fc6d647fbe1c692bcb2abce768973491222c067c131d80957c595b71f", size = 62548253 },+ { url = "https://files.pythonhosted.org/packages/1e/39/bbf57e7b9dab623e8773f6ff36385456b7ae7fa9357a5e53db732c347eac/opencv_python-4.10.0.84-cp37-abi3-win32.whl", hash = "sha256:2db02bb7e50b703f0a2d50c50ced72e95c574e1e5a0bb35a8a86d0b35c98c236", size = 28737688 },+ { url = "https://files.pythonhosted.org/packages/ec/6c/fab8113424af5049f85717e8e527ca3773299a3c6b02506e66436e19874f/opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl", hash = "sha256:32dbbd94c26f611dc5cc6979e6b7aa1f55a64d6b463cc1dcd3c95505a63e48fe", size = 38842521 },+]++[[package]]+name = "packaging"+version = "24.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/51/65/50db4dda066951078f0a96cf12f4b9ada6e4b811516bf0262c0f4f7064d4/packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002", size = 148788 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124", size = 53985 },+]++[[package]]+name = "pandas"+version = "2.2.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "python-dateutil", marker = "python_full_version >= '3.12'" },+ { name = "pytz", marker = "python_full_version >= '3.12'" },+ { name = "tzdata", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/9c/d6/9f8431bacc2e19dca897724cd097b1bb224a6ad5433784a44b587c7c13af/pandas-2.2.3.tar.gz", hash = "sha256:4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667", size = 4399213 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/17/a3/fb2734118db0af37ea7433f57f722c0a56687e14b14690edff0cdb4b7e58/pandas-2.2.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b1d432e8d08679a40e2a6d8b2f9770a5c21793a6f9f47fdd52c5ce1948a5a8a9", size = 12529893 },+ { url = "https://files.pythonhosted.org/packages/e1/0c/ad295fd74bfac85358fd579e271cded3ac969de81f62dd0142c426b9da91/pandas-2.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a5a1595fe639f5988ba6a8e5bc9649af3baf26df3998a0abe56c02609392e0a4", size = 11363475 },+ { url = "https://files.pythonhosted.org/packages/c6/2a/4bba3f03f7d07207481fed47f5b35f556c7441acddc368ec43d6643c5777/pandas-2.2.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5de54125a92bb4d1c051c0659e6fcb75256bf799a732a87184e5ea503965bce3", size = 15188645 },+ { url = "https://files.pythonhosted.org/packages/38/f8/d8fddee9ed0d0c0f4a2132c1dfcf0e3e53265055da8df952a53e7eaf178c/pandas-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fffb8ae78d8af97f849404f21411c95062db1496aeb3e56f146f0355c9989319", size = 12739445 },+ { url = "https://files.pythonhosted.org/packages/20/e8/45a05d9c39d2cea61ab175dbe6a2de1d05b679e8de2011da4ee190d7e748/pandas-2.2.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6dfcb5ee8d4d50c06a51c2fffa6cff6272098ad6540aed1a76d15fb9318194d8", size = 16359235 },+ { url = "https://files.pythonhosted.org/packages/1d/99/617d07a6a5e429ff90c90da64d428516605a1ec7d7bea494235e1c3882de/pandas-2.2.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:062309c1b9ea12a50e8ce661145c6aab431b1e99530d3cd60640e255778bd43a", size = 14056756 },+ { url = "https://files.pythonhosted.org/packages/29/d4/1244ab8edf173a10fd601f7e13b9566c1b525c4f365d6bee918e68381889/pandas-2.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:59ef3764d0fe818125a5097d2ae867ca3fa64df032331b7e0917cf5d7bf66b13", size = 11504248 },+ { url = "https://files.pythonhosted.org/packages/64/22/3b8f4e0ed70644e85cfdcd57454686b9057c6c38d2f74fe4b8bc2527214a/pandas-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f00d1345d84d8c86a63e476bb4955e46458b304b9575dcf71102b5c705320015", size = 12477643 },+ { url = "https://files.pythonhosted.org/packages/e4/93/b3f5d1838500e22c8d793625da672f3eec046b1a99257666c94446969282/pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3508d914817e153ad359d7e069d752cdd736a247c322d932eb89e6bc84217f28", size = 11281573 },+ { url = "https://files.pythonhosted.org/packages/f5/94/6c79b07f0e5aab1dcfa35a75f4817f5c4f677931d4234afcd75f0e6a66ca/pandas-2.2.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22a9d949bfc9a502d320aa04e5d02feab689d61da4e7764b62c30b991c42c5f0", size = 15196085 },+ { url = "https://files.pythonhosted.org/packages/e8/31/aa8da88ca0eadbabd0a639788a6da13bb2ff6edbbb9f29aa786450a30a91/pandas-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3a255b2c19987fbbe62a9dfd6cff7ff2aa9ccab3fc75218fd4b7530f01efa24", size = 12711809 },+ { url = "https://files.pythonhosted.org/packages/ee/7c/c6dbdb0cb2a4344cacfb8de1c5808ca885b2e4dcfde8008266608f9372af/pandas-2.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:800250ecdadb6d9c78eae4990da62743b857b470883fa27f652db8bdde7f6659", size = 16356316 },+ { url = "https://files.pythonhosted.org/packages/57/b7/8b757e7d92023b832869fa8881a992696a0bfe2e26f72c9ae9f255988d42/pandas-2.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6374c452ff3ec675a8f46fd9ab25c4ad0ba590b71cf0656f8b6daa5202bca3fb", size = 14022055 },+ { url = "https://files.pythonhosted.org/packages/3b/bc/4b18e2b8c002572c5a441a64826252ce5da2aa738855747247a971988043/pandas-2.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:61c5ad4043f791b61dd4752191d9f07f0ae412515d59ba8f005832a532f8736d", size = 11481175 },+ { url = "https://files.pythonhosted.org/packages/76/a3/a5d88146815e972d40d19247b2c162e88213ef51c7c25993942c39dbf41d/pandas-2.2.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3b71f27954685ee685317063bf13c7709a7ba74fc996b84fc6821c59b0f06468", size = 12615650 },+ { url = "https://files.pythonhosted.org/packages/9c/8c/f0fd18f6140ddafc0c24122c8a964e48294acc579d47def376fef12bcb4a/pandas-2.2.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:38cf8125c40dae9d5acc10fa66af8ea6fdf760b2714ee482ca691fc66e6fcb18", size = 11290177 },+ { url = "https://files.pythonhosted.org/packages/ed/f9/e995754eab9c0f14c6777401f7eece0943840b7a9fc932221c19d1abee9f/pandas-2.2.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba96630bc17c875161df3818780af30e43be9b166ce51c9a18c1feae342906c2", size = 14651526 },+ { url = "https://files.pythonhosted.org/packages/25/b0/98d6ae2e1abac4f35230aa756005e8654649d305df9a28b16b9ae4353bff/pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1db71525a1538b30142094edb9adc10be3f3e176748cd7acc2240c2f2e5aa3a4", size = 11871013 },+ { url = "https://files.pythonhosted.org/packages/cc/57/0f72a10f9db6a4628744c8e8f0df4e6e21de01212c7c981d31e50ffc8328/pandas-2.2.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:15c0e1e02e93116177d29ff83e8b1619c93ddc9c49083f237d4312337a61165d", size = 15711620 },+ { url = "https://files.pythonhosted.org/packages/ab/5f/b38085618b950b79d2d9164a711c52b10aefc0ae6833b96f626b7021b2ed/pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a", size = 13098436 },+]++[[package]]+name = "parso"+version = "0.8.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/66/94/68e2e17afaa9169cf6412ab0f28623903be73d1b32e208d9e8e541bb086d/parso-0.8.4.tar.gz", hash = "sha256:eb3a7b58240fb99099a345571deecc0f9540ea5f4dd2fe14c2a99d6b281ab92d", size = 400609 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c6/ac/dac4a63f978e4dcb3c6d3a78c4d8e0192a113d288502a1216950c41b1027/parso-0.8.4-py2.py3-none-any.whl", hash = "sha256:a418670a20291dacd2dddc80c377c5c3791378ee1e8d12bffc35420643d43f18", size = 103650 },+]++[[package]]+name = "pexpect"+version = "4.9.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "ptyprocess", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/42/92/cc564bf6381ff43ce1f4d06852fc19a2f11d180f23dc32d9588bee2f149d/pexpect-4.9.0.tar.gz", hash = "sha256:ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f", size = 166450 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9e/c3/059298687310d527a58bb01f3b1965787ee3b40dce76752eda8b44e9a2c5/pexpect-4.9.0-py2.py3-none-any.whl", hash = "sha256:7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523", size = 63772 },+]++[[package]]+name = "pillow"+version = "10.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz", hash = "sha256:166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06", size = 46555059 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/05/cb/0353013dc30c02a8be34eb91d25e4e4cf594b59e5a55ea1128fde1e5f8ea/pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl", hash = "sha256:673655af3eadf4df6b5457033f086e90299fdd7a47983a13827acf7459c15d94", size = 3509350 },+ { url = "https://files.pythonhosted.org/packages/e7/cf/5c558a0f247e0bf9cec92bff9b46ae6474dd736f6d906315e60e4075f737/pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:866b6942a92f56300012f5fbac71f2d610312ee65e22f1aa2609e491284e5597", size = 3374980 },+ { url = "https://files.pythonhosted.org/packages/84/48/6e394b86369a4eb68b8a1382c78dc092245af517385c086c5094e3b34428/pillow-10.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29dbdc4207642ea6aad70fbde1a9338753d33fb23ed6956e706936706f52dd80", size = 4343799 },+ { url = "https://files.pythonhosted.org/packages/3b/f3/a8c6c11fa84b59b9df0cd5694492da8c039a24cd159f0f6918690105c3be/pillow-10.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf2342ac639c4cf38799a44950bbc2dfcb685f052b9e262f446482afaf4bffca", size = 4459973 },+ { url = "https://files.pythonhosted.org/packages/7d/1b/c14b4197b80150fb64453585247e6fb2e1d93761fa0fa9cf63b102fde822/pillow-10.4.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f5b92f4d70791b4a67157321c4e8225d60b119c5cc9aee8ecf153aace4aad4ef", size = 4370054 },+ { url = "https://files.pythonhosted.org/packages/55/77/40daddf677897a923d5d33329acd52a2144d54a9644f2a5422c028c6bf2d/pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:86dcb5a1eb778d8b25659d5e4341269e8590ad6b4e8b44d9f4b07f8d136c414a", size = 4539484 },+ { url = "https://files.pythonhosted.org/packages/40/54/90de3e4256b1207300fb2b1d7168dd912a2fb4b2401e439ba23c2b2cabde/pillow-10.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:780c072c2e11c9b2c7ca37f9a2ee8ba66f44367ac3e5c7832afcfe5104fd6d1b", size = 4477375 },+ { url = "https://files.pythonhosted.org/packages/13/24/1bfba52f44193860918ff7c93d03d95e3f8748ca1de3ceaf11157a14cf16/pillow-10.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37fb69d905be665f68f28a8bba3c6d3223c8efe1edf14cc4cfa06c241f8c81d9", size = 4608773 },+ { url = "https://files.pythonhosted.org/packages/55/04/5e6de6e6120451ec0c24516c41dbaf80cce1b6451f96561235ef2429da2e/pillow-10.4.0-cp312-cp312-win32.whl", hash = "sha256:7dfecdbad5c301d7b5bde160150b4db4c659cee2b69589705b6f8a0c509d9f42", size = 2235690 },+ { url = "https://files.pythonhosted.org/packages/74/0a/d4ce3c44bca8635bd29a2eab5aa181b654a734a29b263ca8efe013beea98/pillow-10.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:1d846aea995ad352d4bdcc847535bd56e0fd88d36829d2c90be880ef1ee4668a", size = 2554951 },+ { url = "https://files.pythonhosted.org/packages/b5/ca/184349ee40f2e92439be9b3502ae6cfc43ac4b50bc4fc6b3de7957563894/pillow-10.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:e553cad5179a66ba15bb18b353a19020e73a7921296a7979c4a2b7f6a5cd57f9", size = 2243427 },+ { url = "https://files.pythonhosted.org/packages/c3/00/706cebe7c2c12a6318aabe5d354836f54adff7156fd9e1bd6c89f4ba0e98/pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8bc1a764ed8c957a2e9cacf97c8b2b053b70307cf2996aafd70e91a082e70df3", size = 3525685 },+ { url = "https://files.pythonhosted.org/packages/cf/76/f658cbfa49405e5ecbfb9ba42d07074ad9792031267e782d409fd8fe7c69/pillow-10.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6209bb41dc692ddfee4942517c19ee81b86c864b626dbfca272ec0f7cff5d9fb", size = 3374883 },+ { url = "https://files.pythonhosted.org/packages/46/2b/99c28c4379a85e65378211971c0b430d9c7234b1ec4d59b2668f6299e011/pillow-10.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bee197b30783295d2eb680b311af15a20a8b24024a19c3a26431ff83eb8d1f70", size = 4339837 },+ { url = "https://files.pythonhosted.org/packages/f1/74/b1ec314f624c0c43711fdf0d8076f82d9d802afd58f1d62c2a86878e8615/pillow-10.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ef61f5dd14c300786318482456481463b9d6b91ebe5ef12f405afbba77ed0be", size = 4455562 },+ { url = "https://files.pythonhosted.org/packages/4a/2a/4b04157cb7b9c74372fa867096a1607e6fedad93a44deeff553ccd307868/pillow-10.4.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:297e388da6e248c98bc4a02e018966af0c5f92dfacf5a5ca22fa01cb3179bca0", size = 4366761 },+ { url = "https://files.pythonhosted.org/packages/ac/7b/8f1d815c1a6a268fe90481232c98dd0e5fa8c75e341a75f060037bd5ceae/pillow-10.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:e4db64794ccdf6cb83a59d73405f63adbe2a1887012e308828596100a0b2f6cc", size = 4536767 },+ { url = "https://files.pythonhosted.org/packages/e5/77/05fa64d1f45d12c22c314e7b97398ffb28ef2813a485465017b7978b3ce7/pillow-10.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd2880a07482090a3bcb01f4265f1936a903d70bc740bfcb1fd4e8a2ffe5cf5a", size = 4477989 },+ { url = "https://files.pythonhosted.org/packages/12/63/b0397cfc2caae05c3fb2f4ed1b4fc4fc878f0243510a7a6034ca59726494/pillow-10.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b35b21b819ac1dbd1233317adeecd63495f6babf21b7b2512d244ff6c6ce309", size = 4610255 },+ { url = "https://files.pythonhosted.org/packages/7b/f9/cfaa5082ca9bc4a6de66ffe1c12c2d90bf09c309a5f52b27759a596900e7/pillow-10.4.0-cp313-cp313-win32.whl", hash = "sha256:551d3fd6e9dc15e4c1eb6fc4ba2b39c0c7933fa113b220057a34f4bb3268a060", size = 2235603 },+ { url = "https://files.pythonhosted.org/packages/01/6a/30ff0eef6e0c0e71e55ded56a38d4859bf9d3634a94a88743897b5f96936/pillow-10.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:030abdbe43ee02e0de642aee345efa443740aa4d828bfe8e2eb11922ea6a21ea", size = 2554972 },+ { url = "https://files.pythonhosted.org/packages/48/2c/2e0a52890f269435eee38b21c8218e102c621fe8d8df8b9dd06fabf879ba/pillow-10.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:5b001114dd152cfd6b23befeb28d7aee43553e2402c9f159807bf55f33af8a8d", size = 2243375 },+]++[[package]]+name = "pip"+version = "24.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/4d/87/fb90046e096a03aeab235e139436b3fe804cdd447ed2093b0d70eba3f7f8/pip-24.2.tar.gz", hash = "sha256:5b5e490b5e9cb275c879595064adce9ebd31b854e3e803740b72f9ccf34a45b8", size = 1922041 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d4/55/90db48d85f7689ec6f81c0db0622d704306c5284850383c090e6c7195a5c/pip-24.2-py3-none-any.whl", hash = "sha256:2cd581cf58ab7fcfca4ce8efa6dcacd0de5bf8d0a3eb9ec927e07405f4d9e2a2", size = 1815170 },+]++[[package]]+name = "platformdirs"+version = "4.3.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/13/fc/128cc9cb8f03208bdbf93d3aa862e16d376844a14f9a0ce5cf4507372de4/platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907", size = 21302 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb", size = 18439 },+]++[[package]]+name = "prompt-toolkit"+version = "3.0.48"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "wcwidth", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2d/4f/feb5e137aff82f7c7f3248267b97451da3644f6cdc218edfe549fb354127/prompt_toolkit-3.0.48.tar.gz", hash = "sha256:d6623ab0477a80df74e646bdbc93621143f5caf104206aa29294d53de1a03d90", size = 424684 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a9/6a/fd08d94654f7e67c52ca30523a178b3f8ccc4237fce4be90d39c938a831a/prompt_toolkit-3.0.48-py3-none-any.whl", hash = "sha256:f49a827f90062e411f1ce1f854f2aedb3c23353244f8108b89283587397ac10e", size = 386595 },+]++[[package]]+name = "protobuf"+version = "3.20.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/3d/79/34fbcce8666c74ec6729e2844143fd066d9708eecb89ecd2037fc6cfe9a9/protobuf-3.20.2.tar.gz", hash = "sha256:712dca319eee507a1e7df3591e639a2b112a2f4a62d40fe7832a16fd19151750", size = 216716 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8b/e6/2a47ce2eba1aaf287380a44270da897ada03d118a55c19595ec7b4f0831f/protobuf-3.20.2-py2.py3-none-any.whl", hash = "sha256:c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019", size = 162128 },+]++[[package]]+name = "psutil"+version = "6.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/18/c7/8c6872f7372eb6a6b2e4708b88419fb46b857f7a2e1892966b851cc79fc9/psutil-6.0.0.tar.gz", hash = "sha256:8faae4f310b6d969fa26ca0545338b21f73c6b15db7c4a8d934a5482faa818f2", size = 508067 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c5/66/78c9c3020f573c58101dc43a44f6855d01bbbd747e24da2f0c4491200ea3/psutil-6.0.0-cp27-none-win32.whl", hash = "sha256:02b69001f44cc73c1c5279d02b30a817e339ceb258ad75997325e0e6169d8b35", size = 249766 },+ { url = "https://files.pythonhosted.org/packages/e1/3f/2403aa9558bea4d3854b0e5e567bc3dd8e9fbc1fc4453c0aa9aafeb75467/psutil-6.0.0-cp27-none-win_amd64.whl", hash = "sha256:21f1fb635deccd510f69f485b87433460a603919b45e2a324ad65b0cc74f8fb1", size = 253024 },+ { url = "https://files.pythonhosted.org/packages/0b/37/f8da2fbd29690b3557cca414c1949f92162981920699cd62095a984983bf/psutil-6.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:c588a7e9b1173b6e866756dde596fd4cad94f9399daf99ad8c3258b3cb2b47a0", size = 250961 },+ { url = "https://files.pythonhosted.org/packages/35/56/72f86175e81c656a01c4401cd3b1c923f891b31fbcebe98985894176d7c9/psutil-6.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ed2440ada7ef7d0d608f20ad89a04ec47d2d3ab7190896cd62ca5fc4fe08bf0", size = 287478 },+ { url = "https://files.pythonhosted.org/packages/19/74/f59e7e0d392bc1070e9a70e2f9190d652487ac115bb16e2eff6b22ad1d24/psutil-6.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd9a97c8e94059b0ef54a7d4baf13b405011176c3b6ff257c247cae0d560ecd", size = 290455 },+ { url = "https://files.pythonhosted.org/packages/cd/5f/60038e277ff0a9cc8f0c9ea3d0c5eb6ee1d2470ea3f9389d776432888e47/psutil-6.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2e8d0054fc88153ca0544f5c4d554d42e33df2e009c4ff42284ac9ebdef4132", size = 292046 },+ { url = "https://files.pythonhosted.org/packages/8b/20/2ff69ad9c35c3df1858ac4e094f20bd2374d33c8643cf41da8fd7cdcb78b/psutil-6.0.0-cp37-abi3-win32.whl", hash = "sha256:a495580d6bae27291324fe60cea0b5a7c23fa36a7cd35035a16d93bdcf076b9d", size = 253560 },+ { url = "https://files.pythonhosted.org/packages/73/44/561092313ae925f3acfaace6f9ddc4f6a9c748704317bad9c8c8f8a36a79/psutil-6.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:33ea5e1c975250a720b3a6609c490db40dae5d83a4eb315170c4fe0d8b1f34b3", size = 257399 },+ { url = "https://files.pythonhosted.org/packages/7c/06/63872a64c312a24fb9b4af123ee7007a306617da63ff13bcc1432386ead7/psutil-6.0.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:ffe7fc9b6b36beadc8c322f84e1caff51e8703b88eee1da46d1e3a6ae11b4fd0", size = 251988 },+]++[[package]]+name = "ptyprocess"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/20/e5/16ff212c1e452235a90aeb09066144d0c5a6a8c0834397e03f5224495c4e/ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220", size = 70762 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35", size = 13993 },+]++[[package]]+name = "pure-eval"+version = "0.2.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cd/05/0a34433a064256a578f1783a10da6df098ceaa4a57bbeaa96a6c0352786b/pure_eval-0.2.3.tar.gz", hash = "sha256:5f4e983f40564c576c7c8635ae88db5956bb2229d7e9237d03b3c0b0190eaf42", size = 19752 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8e/37/efad0257dc6e593a18957422533ff0f87ede7c9c6ea010a2177d738fb82f/pure_eval-0.2.3-py3-none-any.whl", hash = "sha256:1db8e35b67b3d218d818ae653e27f06c3aa420901fa7b081ca98cbedc874e0d0", size = 11842 },+]++[[package]]+name = "pycparser"+version = "2.22"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6", size = 172736 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc", size = 117552 },+]++[[package]]+name = "pygments"+version = "2.18.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8e/62/8336eff65bcbc8e4cb5d05b55faf041285951b6e80f33e2bff2024788f31/pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199", size = 4891905 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/3f/01c8b82017c199075f8f788d0d906b9ffbbc5a47dc9918a945e13d5a2bda/pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a", size = 1205513 },+]++[[package]]+name = "pyparsing"+version = "3.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/83/08/13f3bce01b2061f2bbd582c9df82723de943784cf719a35ac886c652043a/pyparsing-3.1.4.tar.gz", hash = "sha256:f86ec8d1a83f11977c9a6ea7598e8c27fc5cddfa5b07ea2241edbbde1d7bc032", size = 900231 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/0c/0e3c05b1c87bb6a1c76d281b0f35e78d2d80ac91b5f8f524cebf77f51049/pyparsing-3.1.4-py3-none-any.whl", hash = "sha256:a6a7ee4235a3f944aa1fa2249307708f893fe5717dc603503c6c7969c070fb7c", size = 104100 },+]++[[package]]+name = "pyreadline3"+version = "3.5.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0f/49/4cea918a08f02817aabae639e3d0ac046fef9f9180518a3ad394e22da148/pyreadline3-3.5.4.tar.gz", hash = "sha256:8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7", size = 99839 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/dc/491b7661614ab97483abf2056be1deee4dc2490ecbf7bff9ab5cdbac86e1/pyreadline3-3.5.4-py3-none-any.whl", hash = "sha256:eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6", size = 83178 },+]++[[package]]+name = "python-dateutil"+version = "2.9.0.post0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "six", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 },+]++[[package]]+name = "pytz"+version = "2024.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/3a/31/3c70bf7603cc2dca0f19bdc53b4537a797747a58875b552c8c413d963a3f/pytz-2024.2.tar.gz", hash = "sha256:2aa355083c50a0f93fa581709deac0c9ad65cca8a9e9beac660adcbd493c798a", size = 319692 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/11/c3/005fcca25ce078d2cc29fd559379817424e94885510568bc1bc53d7d5846/pytz-2024.2-py2.py3-none-any.whl", hash = "sha256:31c7c1817eb7fae7ca4b8c7ee50c72f93aa2dd863de768e1ef4245d426aa0725", size = 508002 },+]++[[package]]+name = "pywin32"+version = "307"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/90/4e/9c660fa6c34db3c9542c9682b0ccd9edd63a6a4cb6ac4d22014b2c3355c9/pywin32-307-cp312-cp312-win32.whl", hash = "sha256:07649ec6b01712f36debf39fc94f3d696a46579e852f60157a729ac039df0815", size = 5916997 },+ { url = "https://files.pythonhosted.org/packages/9c/11/c56e771d2cdbd2dac8e656edb2c814e4b2239da2c9028aa7265cdfff8aed/pywin32-307-cp312-cp312-win_amd64.whl", hash = "sha256:00d047992bb5dcf79f8b9b7c81f72e0130f9fe4b22df613f755ab1cc021d8347", size = 6519708 },+ { url = "https://files.pythonhosted.org/packages/cd/64/53b1112cb05f85a6c87339a9f90a3b82d67ecb46f16b45abaac3bf4dee2b/pywin32-307-cp312-cp312-win_arm64.whl", hash = "sha256:b53658acbfc6a8241d72cc09e9d1d666be4e6c99376bc59e26cdb6223c4554d2", size = 7952978 },+ { url = "https://files.pythonhosted.org/packages/61/c2/bdff07ee75b9c0a0f87cd52bfb45152e40d4c6f99e7256336e243cf4da2d/pywin32-307-cp313-cp313-win32.whl", hash = "sha256:ea4d56e48dc1ab2aa0a5e3c0741ad6e926529510516db7a3b6981a1ae74405e5", size = 5915947 },+ { url = "https://files.pythonhosted.org/packages/fd/59/b891cf47d5893ee87e09686e736a84b80a8c5112a1a80e37363ab8801f54/pywin32-307-cp313-cp313-win_amd64.whl", hash = "sha256:576d09813eaf4c8168d0bfd66fb7cb3b15a61041cf41598c2db4a4583bf832d2", size = 6518782 },+ { url = "https://files.pythonhosted.org/packages/08/9b/3c797468a96f68ce86f84917c198f60fc4189ab2ddc5841bcd71ead7680f/pywin32-307-cp313-cp313-win_arm64.whl", hash = "sha256:b30c9bdbffda6a260beb2919f918daced23d32c79109412c2085cbc513338a0a", size = 7952027 },+]++[[package]]+name = "pyyaml"+version = "6.0.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873 },+ { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302 },+ { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154 },+ { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223 },+ { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542 },+ { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164 },+ { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611 },+ { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591 },+ { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338 },+ { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309 },+ { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679 },+ { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428 },+ { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361 },+ { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523 },+ { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660 },+ { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597 },+ { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527 },+ { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446 },+]++[[package]]+name = "pyzmq"+version = "26.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cffi", marker = "implementation_name == 'pypy' and python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fd/05/bed626b9f7bb2322cdbbf7b4bd8f54b1b617b0d2ab2d3547d6e39428a48e/pyzmq-26.2.0.tar.gz", hash = "sha256:070672c258581c8e4f640b5159297580a9974b026043bd4ab0470be9ed324f1f", size = 271975 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/28/2f/78a766c8913ad62b28581777ac4ede50c6d9f249d39c2963e279524a1bbe/pyzmq-26.2.0-cp312-cp312-macosx_10_15_universal2.whl", hash = "sha256:ded0fc7d90fe93ae0b18059930086c51e640cdd3baebdc783a695c77f123dcd9", size = 1343105 },+ { url = "https://files.pythonhosted.org/packages/b7/9c/4b1e2d3d4065be715e007fe063ec7885978fad285f87eae1436e6c3201f4/pyzmq-26.2.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:17bf5a931c7f6618023cdacc7081f3f266aecb68ca692adac015c383a134ca52", size = 1008365 },+ { url = "https://files.pythonhosted.org/packages/4f/ef/5a23ec689ff36d7625b38d121ef15abfc3631a9aecb417baf7a4245e4124/pyzmq-26.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55cf66647e49d4621a7e20c8d13511ef1fe1efbbccf670811864452487007e08", size = 665923 },+ { url = "https://files.pythonhosted.org/packages/ae/61/d436461a47437d63c6302c90724cf0981883ec57ceb6073873f32172d676/pyzmq-26.2.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4661c88db4a9e0f958c8abc2b97472e23061f0bc737f6f6179d7a27024e1faa5", size = 903400 },+ { url = "https://files.pythonhosted.org/packages/47/42/fc6d35ecefe1739a819afaf6f8e686f7f02a4dd241c78972d316f403474c/pyzmq-26.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ea7f69de383cb47522c9c208aec6dd17697db7875a4674c4af3f8cfdac0bdeae", size = 860034 },+ { url = "https://files.pythonhosted.org/packages/07/3b/44ea6266a6761e9eefaa37d98fabefa112328808ac41aa87b4bbb668af30/pyzmq-26.2.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:7f98f6dfa8b8ccaf39163ce872bddacca38f6a67289116c8937a02e30bbe9711", size = 860579 },+ { url = "https://files.pythonhosted.org/packages/38/6f/4df2014ab553a6052b0e551b37da55166991510f9e1002c89cab7ce3b3f2/pyzmq-26.2.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:e3e0210287329272539eea617830a6a28161fbbd8a3271bf4150ae3e58c5d0e6", size = 1196246 },+ { url = "https://files.pythonhosted.org/packages/38/9d/ee240fc0c9fe9817f0c9127a43238a3e28048795483c403cc10720ddef22/pyzmq-26.2.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:6b274e0762c33c7471f1a7471d1a2085b1a35eba5cdc48d2ae319f28b6fc4de3", size = 1507441 },+ { url = "https://files.pythonhosted.org/packages/85/4f/01711edaa58d535eac4a26c294c617c9a01f09857c0ce191fd574d06f359/pyzmq-26.2.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:29c6a4635eef69d68a00321e12a7d2559fe2dfccfa8efae3ffb8e91cd0b36a8b", size = 1406498 },+ { url = "https://files.pythonhosted.org/packages/07/18/907134c85c7152f679ed744e73e645b365f3ad571f38bdb62e36f347699a/pyzmq-26.2.0-cp312-cp312-win32.whl", hash = "sha256:989d842dc06dc59feea09e58c74ca3e1678c812a4a8a2a419046d711031f69c7", size = 575533 },+ { url = "https://files.pythonhosted.org/packages/ce/2c/a6f4a20202a4d3c582ad93f95ee78d79bbdc26803495aec2912b17dbbb6c/pyzmq-26.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:2a50625acdc7801bc6f74698c5c583a491c61d73c6b7ea4dee3901bb99adb27a", size = 637768 },+ { url = "https://files.pythonhosted.org/packages/5f/0e/eb16ff731632d30554bf5af4dbba3ffcd04518219d82028aea4ae1b02ca5/pyzmq-26.2.0-cp312-cp312-win_arm64.whl", hash = "sha256:4d29ab8592b6ad12ebbf92ac2ed2bedcfd1cec192d8e559e2e099f648570e19b", size = 540675 },+ { url = "https://files.pythonhosted.org/packages/04/a7/0f7e2f6c126fe6e62dbae0bc93b1bd3f1099cf7fea47a5468defebe3f39d/pyzmq-26.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9dd8cd1aeb00775f527ec60022004d030ddc51d783d056e3e23e74e623e33726", size = 1006564 },+ { url = "https://files.pythonhosted.org/packages/31/b6/a187165c852c5d49f826a690857684333a6a4a065af0a6015572d2284f6a/pyzmq-26.2.0-cp313-cp313-macosx_10_15_universal2.whl", hash = "sha256:28c812d9757fe8acecc910c9ac9dafd2ce968c00f9e619db09e9f8f54c3a68a3", size = 1340447 },+ { url = "https://files.pythonhosted.org/packages/68/ba/f4280c58ff71f321602a6e24fd19879b7e79793fb8ab14027027c0fb58ef/pyzmq-26.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4d80b1dd99c1942f74ed608ddb38b181b87476c6a966a88a950c7dee118fdf50", size = 665485 },+ { url = "https://files.pythonhosted.org/packages/77/b5/c987a5c53c7d8704216f29fc3d810b32f156bcea488a940e330e1bcbb88d/pyzmq-26.2.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c997098cc65e3208eca09303630e84d42718620e83b733d0fd69543a9cab9cb", size = 903484 },+ { url = "https://files.pythonhosted.org/packages/29/c9/07da157d2db18c72a7eccef8e684cefc155b712a88e3d479d930aa9eceba/pyzmq-26.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ad1bc8d1b7a18497dda9600b12dc193c577beb391beae5cd2349184db40f187", size = 859981 },+ { url = "https://files.pythonhosted.org/packages/43/09/e12501bd0b8394b7d02c41efd35c537a1988da67fc9c745cae9c6c776d31/pyzmq-26.2.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:bea2acdd8ea4275e1278350ced63da0b166421928276c7c8e3f9729d7402a57b", size = 860334 },+ { url = "https://files.pythonhosted.org/packages/eb/ff/f5ec1d455f8f7385cc0a8b2acd8c807d7fade875c14c44b85c1bddabae21/pyzmq-26.2.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:23f4aad749d13698f3f7b64aad34f5fc02d6f20f05999eebc96b89b01262fb18", size = 1196179 },+ { url = "https://files.pythonhosted.org/packages/ec/8a/bb2ac43295b1950fe436a81fc5b298be0b96ac76fb029b514d3ed58f7b27/pyzmq-26.2.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:a4f96f0d88accc3dbe4a9025f785ba830f968e21e3e2c6321ccdfc9aef755115", size = 1507668 },+ { url = "https://files.pythonhosted.org/packages/a9/49/dbc284ebcfd2dca23f6349227ff1616a7ee2c4a35fe0a5d6c3deff2b4fed/pyzmq-26.2.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ced65e5a985398827cc9276b93ef6dfabe0273c23de8c7931339d7e141c2818e", size = 1406539 },+ { url = "https://files.pythonhosted.org/packages/00/68/093cdce3fe31e30a341d8e52a1ad86392e13c57970d722c1f62a1d1a54b6/pyzmq-26.2.0-cp313-cp313-win32.whl", hash = "sha256:31507f7b47cc1ead1f6e86927f8ebb196a0bab043f6345ce070f412a59bf87b5", size = 575567 },+ { url = "https://files.pythonhosted.org/packages/92/ae/6cc4657148143412b5819b05e362ae7dd09fb9fe76e2a539dcff3d0386bc/pyzmq-26.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:70fc7fcf0410d16ebdda9b26cbd8bf8d803d220a7f3522e060a69a9c87bf7bad", size = 637551 },+ { url = "https://files.pythonhosted.org/packages/6c/67/fbff102e201688f97c8092e4c3445d1c1068c2f27bbd45a578df97ed5f94/pyzmq-26.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:c3789bd5768ab5618ebf09cef6ec2b35fed88709b104351748a63045f0ff9797", size = 540378 },+ { url = "https://files.pythonhosted.org/packages/3f/fe/2d998380b6e0122c6c4bdf9b6caf490831e5f5e2d08a203b5adff060c226/pyzmq-26.2.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:034da5fc55d9f8da09015d368f519478a52675e558c989bfcb5cf6d4e16a7d2a", size = 1007378 },+ { url = "https://files.pythonhosted.org/packages/4a/f4/30d6e7157f12b3a0390bde94d6a8567cdb88846ed068a6e17238a4ccf600/pyzmq-26.2.0-cp313-cp313t-macosx_10_15_universal2.whl", hash = "sha256:c92d73464b886931308ccc45b2744e5968cbaade0b1d6aeb40d8ab537765f5bc", size = 1329532 },+ { url = "https://files.pythonhosted.org/packages/82/86/3fe917870e15ee1c3ad48229a2a64458e36036e64b4afa9659045d82bfa8/pyzmq-26.2.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:794a4562dcb374f7dbbfb3f51d28fb40123b5a2abadee7b4091f93054909add5", size = 653242 },+ { url = "https://files.pythonhosted.org/packages/50/2d/242e7e6ef6c8c19e6cb52d095834508cd581ffb925699fd3c640cdc758f1/pyzmq-26.2.0-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aee22939bb6075e7afededabad1a56a905da0b3c4e3e0c45e75810ebe3a52672", size = 888404 },+ { url = "https://files.pythonhosted.org/packages/ac/11/7270566e1f31e4ea73c81ec821a4b1688fd551009a3d2bab11ec66cb1e8f/pyzmq-26.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ae90ff9dad33a1cfe947d2c40cb9cb5e600d759ac4f0fd22616ce6540f72797", size = 845858 },+ { url = "https://files.pythonhosted.org/packages/91/d5/72b38fbc69867795c8711bdd735312f9fef1e3d9204e2f63ab57085434b9/pyzmq-26.2.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:43a47408ac52647dfabbc66a25b05b6a61700b5165807e3fbd40063fcaf46386", size = 847375 },+ { url = "https://files.pythonhosted.org/packages/dd/9a/10ed3c7f72b4c24e719c59359fbadd1a27556a28b36cdf1cd9e4fb7845d5/pyzmq-26.2.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:25bf2374a2a8433633c65ccb9553350d5e17e60c8eb4de4d92cc6bd60f01d306", size = 1183489 },+ { url = "https://files.pythonhosted.org/packages/72/2d/8660892543fabf1fe41861efa222455811adac9f3c0818d6c3170a1153e3/pyzmq-26.2.0-cp313-cp313t-musllinux_1_1_i686.whl", hash = "sha256:007137c9ac9ad5ea21e6ad97d3489af654381324d5d3ba614c323f60dab8fae6", size = 1492932 },+ { url = "https://files.pythonhosted.org/packages/7b/d6/32fd69744afb53995619bc5effa2a405ae0d343cd3e747d0fbc43fe894ee/pyzmq-26.2.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:470d4a4f6d48fb34e92d768b4e8a5cc3780db0d69107abf1cd7ff734b9766eb0", size = 1392485 },+]++[[package]]+name = "requests"+version = "2.32.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi", marker = "python_full_version >= '3.12'" },+ { name = "charset-normalizer", marker = "python_full_version >= '3.12'" },+ { name = "idna", marker = "python_full_version >= '3.12'" },+ { name = "urllib3", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 },+]++[[package]]+name = "rich"+version = "13.9.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py", marker = "python_full_version >= '3.12'" },+ { name = "pygments", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/aa/9e/1784d15b057b0075e5136445aaea92d23955aad2c93eaede673718a40d95/rich-13.9.2.tar.gz", hash = "sha256:51a2c62057461aaf7152b4d611168f93a9fc73068f8ded2790f29fe2b5366d0c", size = 222843 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/67/91/5474b84e505a6ccc295b2d322d90ff6aa0746745717839ee0c5fb4fdcceb/rich-13.9.2-py3-none-any.whl", hash = "sha256:8c82a3d3f8dcfe9e734771313e606b39d8247bb6b826e196f4914b333b743cf1", size = 242117 },+]++[[package]]+name = "scipy"+version = "1.14.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/62/11/4d44a1f274e002784e4dbdb81e0ea96d2de2d1045b2132d5af62cc31fd28/scipy-1.14.1.tar.gz", hash = "sha256:5a275584e726026a5699459aa72f828a610821006228e841b94275c4a7c08417", size = 58620554 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c0/04/2bdacc8ac6387b15db6faa40295f8bd25eccf33f1f13e68a72dc3c60a99e/scipy-1.14.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:631f07b3734d34aced009aaf6fedfd0eb3498a97e581c3b1e5f14a04164a456d", size = 39128781 },+ { url = "https://files.pythonhosted.org/packages/c8/53/35b4d41f5fd42f5781dbd0dd6c05d35ba8aa75c84ecddc7d44756cd8da2e/scipy-1.14.1-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:af29a935803cc707ab2ed7791c44288a682f9c8107bc00f0eccc4f92c08d6e07", size = 29939542 },+ { url = "https://files.pythonhosted.org/packages/66/67/6ef192e0e4d77b20cc33a01e743b00bc9e68fb83b88e06e636d2619a8767/scipy-1.14.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:2843f2d527d9eebec9a43e6b406fb7266f3af25a751aa91d62ff416f54170bc5", size = 23148375 },+ { url = "https://files.pythonhosted.org/packages/f6/32/3a6dedd51d68eb7b8e7dc7947d5d841bcb699f1bf4463639554986f4d782/scipy-1.14.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:eb58ca0abd96911932f688528977858681a59d61a7ce908ffd355957f7025cfc", size = 25578573 },+ { url = "https://files.pythonhosted.org/packages/f0/5a/efa92a58dc3a2898705f1dc9dbaf390ca7d4fba26d6ab8cfffb0c72f656f/scipy-1.14.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30ac8812c1d2aab7131a79ba62933a2a76f582d5dbbc695192453dae67ad6310", size = 35319299 },+ { url = "https://files.pythonhosted.org/packages/8e/ee/8a26858ca517e9c64f84b4c7734b89bda8e63bec85c3d2f432d225bb1886/scipy-1.14.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f9ea80f2e65bdaa0b7627fb00cbeb2daf163caa015e59b7516395fe3bd1e066", size = 40849331 },+ { url = "https://files.pythonhosted.org/packages/a5/cd/06f72bc9187840f1c99e1a8750aad4216fc7dfdd7df46e6280add14b4822/scipy-1.14.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:edaf02b82cd7639db00dbff629995ef185c8df4c3ffa71a5562a595765a06ce1", size = 42544049 },+ { url = "https://files.pythonhosted.org/packages/aa/7d/43ab67228ef98c6b5dd42ab386eae2d7877036970a0d7e3dd3eb47a0d530/scipy-1.14.1-cp312-cp312-win_amd64.whl", hash = "sha256:2ff38e22128e6c03ff73b6bb0f85f897d2362f8c052e3b8ad00532198fbdae3f", size = 44521212 },+ { url = "https://files.pythonhosted.org/packages/50/ef/ac98346db016ff18a6ad7626a35808f37074d25796fd0234c2bb0ed1e054/scipy-1.14.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1729560c906963fc8389f6aac023739ff3983e727b1a4d87696b7bf108316a79", size = 39091068 },+ { url = "https://files.pythonhosted.org/packages/b9/cc/70948fe9f393b911b4251e96b55bbdeaa8cca41f37c26fd1df0232933b9e/scipy-1.14.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:4079b90df244709e675cdc8b93bfd8a395d59af40b72e339c2287c91860deb8e", size = 29875417 },+ { url = "https://files.pythonhosted.org/packages/3b/2e/35f549b7d231c1c9f9639f9ef49b815d816bf54dd050da5da1c11517a218/scipy-1.14.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:e0cf28db0f24a38b2a0ca33a85a54852586e43cf6fd876365c86e0657cfe7d73", size = 23084508 },+ { url = "https://files.pythonhosted.org/packages/3f/d6/b028e3f3e59fae61fb8c0f450db732c43dd1d836223a589a8be9f6377203/scipy-1.14.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:0c2f95de3b04e26f5f3ad5bb05e74ba7f68b837133a4492414b3afd79dfe540e", size = 25503364 },+ { url = "https://files.pythonhosted.org/packages/a7/2f/6c142b352ac15967744d62b165537a965e95d557085db4beab2a11f7943b/scipy-1.14.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b99722ea48b7ea25e8e015e8341ae74624f72e5f21fc2abd45f3a93266de4c5d", size = 35292639 },+ { url = "https://files.pythonhosted.org/packages/56/46/2449e6e51e0d7c3575f289f6acb7f828938eaab8874dbccfeb0cd2b71a27/scipy-1.14.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5149e3fd2d686e42144a093b206aef01932a0059c2a33ddfa67f5f035bdfe13e", size = 40798288 },+ { url = "https://files.pythonhosted.org/packages/32/cd/9d86f7ed7f4497c9fd3e39f8918dd93d9f647ba80d7e34e4946c0c2d1a7c/scipy-1.14.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e4f5a7c49323533f9103d4dacf4e4f07078f360743dec7f7596949149efeec06", size = 42524647 },+ { url = "https://files.pythonhosted.org/packages/f5/1b/6ee032251bf4cdb0cc50059374e86a9f076308c1512b61c4e003e241efb7/scipy-1.14.1-cp313-cp313-win_amd64.whl", hash = "sha256:baff393942b550823bfce952bb62270ee17504d02a1801d7fd0719534dfb9c84", size = 44469524 },+]++[[package]]+name = "seaborn"+version = "0.13.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "matplotlib", marker = "python_full_version >= '3.12'" },+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "pandas", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/86/59/a451d7420a77ab0b98f7affa3a1d78a313d2f7281a57afb1a34bae8ab412/seaborn-0.13.2.tar.gz", hash = "sha256:93e60a40988f4d65e9f4885df477e2fdaff6b73a9ded434c1ab356dd57eefff7", size = 1457696 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl", hash = "sha256:636f8336facf092165e27924f223d3c62ca560b1f2bb5dff7ab7fad265361987", size = 294914 },+]++[[package]]+name = "setuptools"+version = "75.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/27/b8/f21073fde99492b33ca357876430822e4800cdf522011f18041351dfa74b/setuptools-75.1.0.tar.gz", hash = "sha256:d59a21b17a275fb872a9c3dae73963160ae079f1049ed956880cd7c09b120538", size = 1348057 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ff/ae/f19306b5a221f6a436d8f2238d5b80925004093fa3edea59835b514d9057/setuptools-75.1.0-py3-none-any.whl", hash = "sha256:35ab7fd3bcd95e6b7fd704e4a1539513edad446c097797f2985e0e4b960772f2", size = 1248506 },+]++[[package]]+name = "six"+version = "1.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a28c93c7714febeca8b79af85e/six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", size = 34041 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254", size = 11053 },+]++[[package]]+name = "stack-data"+version = "0.6.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "asttokens", marker = "python_full_version >= '3.12'" },+ { name = "executing", marker = "python_full_version >= '3.12'" },+ { name = "pure-eval", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/28/e3/55dcc2cfbc3ca9c29519eb6884dd1415ecb53b0e934862d3559ddcb7e20b/stack_data-0.6.3.tar.gz", hash = "sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9", size = 44707 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f1/7b/ce1eafaf1a76852e2ec9b22edecf1daa58175c090266e9f6c64afcd81d91/stack_data-0.6.3-py3-none-any.whl", hash = "sha256:d5558e0c25a4cb0853cddad3d77da9891a08cb85dd9f9f91b9f8cd66e511e695", size = 24521 },+]++[[package]]+name = "sympy"+version = "1.13.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mpmath", marker = "python_full_version >= '3.12'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/11/8a/5a7fd6284fa8caac23a26c9ddf9c30485a48169344b4bd3b0f02fef1890f/sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9", size = 7533196 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/99/ff/c87e0622b1dadea79d2fb0b25ade9ed98954c9033722eb707053d310d4f3/sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73", size = 6189483 },+]++[[package]]+name = "thop"+version = "0.1.1.post2209072238"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "torch", marker = "python_full_version >= '3.12'" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/bb/0f/72beeab4ff5221dc47127c80f8834b4bcd0cb36f6ba91c0b1d04a1233403/thop-0.1.1.post2209072238-py3-none-any.whl", hash = "sha256:01473c225231927d2ad718351f78ebf7cffe6af3bed464c4f1ba1ef0f7cdda27", size = 15443 },+]++[[package]]+name = "torch"+version = "2.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "filelock", marker = "python_full_version >= '3.12'" },+ { name = "fsspec", marker = "python_full_version >= '3.12'" },+ { name = "jinja2", marker = "python_full_version >= '3.12'" },+ { name = "networkx", marker = "python_full_version >= '3.12'" },+ { name = "nvidia-cublas-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cuda-cupti-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cuda-nvrtc-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cuda-runtime-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cudnn-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cufft-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-curand-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cusolver-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-cusparse-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-nccl-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "nvidia-nvtx-cu12", marker = "platform_machine == 'x86_64' and platform_system == 'Linux'" },+ { name = "setuptools", marker = "python_full_version >= '3.12'" },+ { name = "sympy", marker = "python_full_version >= '3.12'" },+ { name = "triton", marker = "python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux' and python_full_version >= '3.12'" },+ { name = "typing-extensions", marker = "python_full_version >= '3.12'" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/df/5204a13a7a973c23c7ade615bafb1a3112b5d0ec258d8390f078fa4ab0f7/torch-2.4.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:fdc4fe11db3eb93c1115d3e973a27ac7c1a8318af8934ffa36b0370efe28e042", size = 797019590 },+ { url = "https://files.pythonhosted.org/packages/4f/16/d23a689e5ef8001ed2ace1a3a59f2fda842889b0c3f3877799089925282a/torch-2.4.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:18835374f599207a9e82c262153c20ddf42ea49bc76b6eadad8e5f49729f6e4d", size = 89613802 },+ { url = "https://files.pythonhosted.org/packages/a8/e0/ca8354dfb8d834a76da51b06e8248b70fc182bc163540507919124974bdf/torch-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:ebea70ff30544fc021d441ce6b219a88b67524f01170b1c538d7d3ebb5e7f56c", size = 199387694 },+ { url = "https://files.pythonhosted.org/packages/ac/30/8b6f77ea4ce84f015ee024b8dfef0dac289396254e8bfd493906d4cbb848/torch-2.4.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:72b484d5b6cec1a735bf3fa5a1c4883d01748698c5e9cfdbeb4ffab7c7987e0d", size = 62123443 },+]++[[package]]+name = "torchaudio"+version = "2.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "torch", marker = "python_full_version >= '3.12'" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/63/ca0921398395834db67c52e2a0d0a4edec8077875c8ef825cb1ef81b86f7/torchaudio-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:953946cf610ffd57bb3fdd228effa2112fa51c5dfe36a96611effc9074a3d3be", size = 1792504 },+ { url = "https://files.pythonhosted.org/packages/59/0c/2eaf389ebb377febaef128bce57e7ebdfb5375b959163dd936c06941fe59/torchaudio-2.4.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:1796a8961decb522c47daab0fbe27c057d6d143ee22bb6ae0d5eb9b2a038c7b6", size = 3361194 },+ { url = "https://files.pythonhosted.org/packages/7a/d0/4835f9f6d8ea26b633c6331aaff40d9ac52b26bd3e72d91d40f9c83ff5a1/torchaudio-2.4.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:5b62fc7b16ed708b0c07d4393137797e92f63fc3bd5705607d97ba6a9a7cf3f0", size = 1659845 },+ { url = "https://files.pythonhosted.org/packages/9b/f5/d3c9b0ba802e2b8e363c5366b37b6b5fb703ac052a5afc334c36b255401f/torchaudio-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:d721b186aae7bd8752c9ad95213f5d650926597bb9060728dfe476986a1ff570", size = 2412111 },+]++[[package]]+name = "torchvision"+version = "0.19.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy", marker = "python_full_version >= '3.12'" },+ { name = "pillow", marker = "python_full_version >= '3.12'" },+ { name = "torch", marker = "python_full_version >= '3.12'" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/d0/b1029ab95d9219cac2dfc0d835e9ab4cebb01f5cb6b48e736778020fb995/torchvision-0.19.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:27ece277ff0f6cdc7fed0627279c632dcb2e58187da771eca24b0fbcf3f8590d", size = 1660230 },+ { url = "https://files.pythonhosted.org/packages/8b/34/fdd2d9e01228a069b28473a7c020bf1812c8ecab8565666feb247659ed30/torchvision-0.19.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:c659ff92a61f188a1a7baef2850f3c0b6c85685447453c03d0e645ba8f1dcc1c", size = 7026404 },+ { url = "https://files.pythonhosted.org/packages/da/b2/9da42d67dfc30d9e3b161f7a37f6c7eca86a80e6caef4a9aa11727faa4f5/torchvision-0.19.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:c07bf43c2a145d792ecd9d0503d6c73577147ece508d45600d8aac77e4cdfcf9", size = 14072022 },+ { url = "https://files.pythonhosted.org/packages/6b/b2/fd577e1622b43cdeb74782a60cea4909f88f471813c215ea7b4e7ea84a74/torchvision-0.19.1-cp312-cp312-win_amd64.whl", hash = "sha256:b4283d283675556bb0eae31d29996f53861b17cbdcdf3509e6bc050414ac9289", size = 1288328 },+]++[[package]]+name = "tornado"+version = "6.4.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ee/66/398ac7167f1c7835406888a386f6d0d26ee5dbf197d8a571300be57662d3/tornado-6.4.1.tar.gz", hash = "sha256:92d3ab53183d8c50f8204a51e6f91d18a15d5ef261e84d452800d4ff6fc504e9", size = 500623 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/00/d9/c33be3c1a7564f7d42d87a8d186371a75fd142097076767a5c27da941fef/tornado-6.4.1-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:163b0aafc8e23d8cdc3c9dfb24c5368af84a81e3364745ccb4427669bf84aec8", size = 435924 },+ { url = "https://files.pythonhosted.org/packages/2e/0f/721e113a2fac2f1d7d124b3279a1da4c77622e104084f56119875019ffab/tornado-6.4.1-cp38-abi3-macosx_10_9_x86_64.whl", hash = "sha256:6d5ce3437e18a2b66fbadb183c1d3364fb03f2be71299e7d10dbeeb69f4b2a14", size = 433883 },+ { url = "https://files.pythonhosted.org/packages/13/cf/786b8f1e6fe1c7c675e79657448178ad65e41c1c9765ef82e7f6f765c4c5/tornado-6.4.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2e20b9113cd7293f164dc46fffb13535266e713cdb87bd2d15ddb336e96cfc4", size = 437224 },+ { url = "https://files.pythonhosted.org/packages/e4/8e/a6ce4b8d5935558828b0f30f3afcb2d980566718837b3365d98e34f6067e/tornado-6.4.1-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8ae50a504a740365267b2a8d1a90c9fbc86b780a39170feca9bcc1787ff80842", size = 436597 },+ { url = "https://files.pythonhosted.org/packages/22/d4/54f9d12668b58336bd30defe0307e6c61589a3e687b05c366f804b7faaf0/tornado-6.4.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:613bf4ddf5c7a95509218b149b555621497a6cc0d46ac341b30bd9ec19eac7f3", size = 436797 },+ { url = "https://files.pythonhosted.org/packages/cf/3f/2c792e7afa7dd8b24fad7a2ed3c2f24a5ec5110c7b43a64cb6095cc106b8/tornado-6.4.1-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25486eb223babe3eed4b8aecbac33b37e3dd6d776bc730ca14e1bf93888b979f", size = 437516 },+ { url = "https://files.pythonhosted.org/packages/71/63/c8fc62745e669ac9009044b889fc531b6f88ac0f5f183cac79eaa950bb23/tornado-6.4.1-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:454db8a7ecfcf2ff6042dde58404164d969b6f5d58b926da15e6b23817950fc4", size = 436958 },+ { url = "https://files.pythonhosted.org/packages/94/d4/f8ac1f5bd22c15fad3b527e025ce219bd526acdbd903f52053df2baecc8b/tornado-6.4.1-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a02a08cc7a9314b006f653ce40483b9b3c12cda222d6a46d4ac63bb6c9057698", size = 436882 },+ { url = "https://files.pythonhosted.org/packages/4b/3e/a8124c21cc0bbf144d7903d2a0cadab15cadaf683fa39a0f92bc567f0d4d/tornado-6.4.1-cp38-abi3-win32.whl", hash = "sha256:d9a566c40b89757c9aa8e6f032bcdb8ca8795d7c1a9762910c722b1635c9de4d", size = 438092 },+ { url = "https://files.pythonhosted.org/packages/d9/2f/3f2f05e84a7aff787a96d5fb06821323feb370fe0baed4db6ea7b1088f32/tornado-6.4.1-cp38-abi3-win_amd64.whl", hash = "sha256:b24b8982ed444378d7f21d563f4180a2de31ced9d8d84443907a0a64da2072e7", size = 438532 },+]++[[package]]+name = "tqdm"+version = "4.66.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "platform_system == 'Windows'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/58/83/6ba9844a41128c62e810fddddd72473201f3eacde02046066142a2d96cc5/tqdm-4.66.5.tar.gz", hash = "sha256:e1020aef2e5096702d8a025ac7d16b1577279c9d63f8375b63083e9a5f0fcbad", size = 169504 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/48/5d/acf5905c36149bbaec41ccf7f2b68814647347b72075ac0b1fe3022fdc73/tqdm-4.66.5-py3-none-any.whl", hash = "sha256:90279a3770753eafc9194a0364852159802111925aa30eb3f9d85b0e805ac7cd", size = 78351 },+]++[[package]]+name = "traitlets"+version = "5.14.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/eb/79/72064e6a701c2183016abbbfedaba506d81e30e232a68c9f0d6f6fcd1574/traitlets-5.14.3.tar.gz", hash = "sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7", size = 161621 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/00/c0/8f5d070730d7836adc9c9b6408dec68c6ced86b304a9b26a14df072a6e8c/traitlets-5.14.3-py3-none-any.whl", hash = "sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f", size = 85359 },+]++[[package]]+name = "triton"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "filelock", marker = "(platform_machine != 'aarch64' and platform_system != 'Darwin') or (platform_system != 'Darwin' and platform_system != 'Linux')" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/fe/7b/7757205dee3628f75e7991021d15cd1bd0c9b044ca9affe99b50879fc0e1/triton-3.0.0-1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e509deb77f1c067d8640725ef00c5cbfcb2052a1a3cb6a6d343841f92624eb", size = 209464695 },+]++[[package]]+name = "typing-extensions"+version = "4.12.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 },+]++[[package]]+name = "tzdata"+version = "2024.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e1/34/943888654477a574a86a98e9896bae89c7aa15078ec29f490fef2f1e5384/tzdata-2024.2.tar.gz", hash = "sha256:7d85cc416e9382e69095b7bdf4afd9e3880418a2413feec7069d533d6b4e31cc", size = 193282 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a6/ab/7e5f53c3b9d14972843a647d8d7a853969a58aecc7559cb3267302c94774/tzdata-2024.2-py2.py3-none-any.whl", hash = "sha256:a48093786cdcde33cad18c2555e8532f34422074448fbc874186f0abd79565cd", size = 346586 },+]++[[package]]+name = "urllib3"+version = "2.2.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ed/63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260/urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9", size = 300677 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac", size = 126338 },+]++[[package]]+name = "wcwidth"+version = "0.2.13"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6c/63/53559446a878410fc5a5974feb13d31d78d752eb18aeba59c7fef1af7598/wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5", size = 101301 }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859", size = 34166 },+]diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dartindex de544314ef..9f464c4f54 100644--- a/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/detection.dart@@ -92,8 +92,8 @@ class FaceDetectionRelative extends Detection {// Calculate the scalingfinal double scaleX = originalSize.width / newSize.width;final double scaleY = originalSize.height / newSize.height;- const double translateX = 0;- const double translateY = 0;+ final double translateX = - ((originalSize.width - newSize.width) / 2) / originalSize.width;+ final double translateY = - ((originalSize.height - newSize.height) / 2) / originalSize.height;// Transform Box_transformBox(box, scaleX, scaleY, translateX, translateY);@@ -117,10 +117,10 @@ class FaceDetectionRelative extends Detection {double translateX,double translateY,) {- box[0] = (box[0] * scaleX + translateX).clamp(0.0, 1.0);- box[1] = (box[1] * scaleY + translateY).clamp(0.0, 1.0);- box[2] = (box[2] * scaleX + translateX).clamp(0.0, 1.0);- box[3] = (box[3] * scaleY + translateY).clamp(0.0, 1.0);+ box[0] = ((box[0] + translateX) * scaleX).clamp(0.0, 1.0);+ box[1] = ((box[1] + translateY) * scaleY).clamp(0.0, 1.0);+ box[2] = ((box[2] + translateX) * scaleX).clamp(0.0, 1.0);+ box[3] = ((box[3] + translateY) * scaleY).clamp(0.0, 1.0);}List<double> _transformPoint(@@ -131,8 +131,8 @@ class FaceDetectionRelative extends Detection {double translateY,) {return [- (point[0] * scaleX + translateX).clamp(0.0, 1.0),- (point[1] * scaleY + translateY).clamp(0.0, 1.0),+ ((point[0] + translateX) * scaleX).clamp(0.0, 1.0),+ ((point[1] + translateY) * scaleY).clamp(0.0, 1.0),];}diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dartdeleted file mode 100644index a01017559d..0000000000--- a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart+++ /dev/null@@ -1,138 +0,0 @@-import 'dart:math' as math show max, min;--import 'package:photos/services/machine_learning/face_ml/face_detection/detection.dart';--List<FaceDetectionRelative> yoloOnnxFilterExtractDetections(- double minScoreSigmoidThreshold,- int inputWidth,- int inputHeight, {- required List<List<double>> results, // // [25200, 16]-}) {- final outputDetections = <FaceDetectionRelative>[];- final output = <List<double>>[];-- // Go through the raw output and check the scores- for (final result in results) {- // Filter out raw detections with low scores- if (result[4] < minScoreSigmoidThreshold) {- continue;- }-- // Get the raw detection- final rawDetection = List<double>.from(result);-- // Append the processed raw detection to the output- output.add(rawDetection);- }-- if (output.isEmpty) {- double maxScore = 0;- for (final result in results) {- if (result[4] > maxScore) {- maxScore = result[4];- }- }- }-- for (final List<double> rawDetection in output) {- // Get absolute bounding box coordinates in format [xMin, yMin, xMax, yMax] https://github.com/deepcam-cn/yolov5-face/blob/eb23d18defe4a76cc06449a61cd51004c59d2697/utils/general.py#L216- final xMinAbs = rawDetection[0] - rawDetection[2] / 2;- final yMinAbs = rawDetection[1] - rawDetection[3] / 2;- final xMaxAbs = rawDetection[0] + rawDetection[2] / 2;- final yMaxAbs = rawDetection[1] + rawDetection[3] / 2;-- // Get the relative bounding box coordinates in format [xMin, yMin, xMax, yMax]- final box = [- xMinAbs / inputWidth,- yMinAbs / inputHeight,- xMaxAbs / inputWidth,- yMaxAbs / inputHeight,- ];-- // Get the keypoints coordinates in format [x, y]- final allKeypoints = <List<double>>[- [- rawDetection[5] / inputWidth,- rawDetection[6] / inputHeight,- ],- [- rawDetection[7] / inputWidth,- rawDetection[8] / inputHeight,- ],- [- rawDetection[9] / inputWidth,- rawDetection[10] / inputHeight,- ],- [- rawDetection[11] / inputWidth,- rawDetection[12] / inputHeight,- ],- [- rawDetection[13] / inputWidth,- rawDetection[14] / inputHeight,- ],- ];-- // Get the score- final score =- rawDetection[4]; // Or should it be rawDetection[4]*rawDetection[15]?-- // Create the relative detection- final detection = FaceDetectionRelative(- score: score,- box: box,- allKeypoints: allKeypoints,- );-- // Append the relative detection to the output- outputDetections.add(detection);- }-- return outputDetections;-}--List<FaceDetectionRelative> naiveNonMaxSuppression({- required List<FaceDetectionRelative> detections,- required double iouThreshold,-}) {- // Sort the detections by score, the highest first- detections.sort((a, b) => b.score.compareTo(a.score));-- // Loop through the detections and calculate the IOU- for (var i = 0; i < detections.length - 1; i++) {- for (var j = i + 1; j < detections.length; j++) {- final iou = _calculateIOU(detections[i], detections[j]);- if (iou >= iouThreshold) {- detections.removeAt(j);- j--;- }- }- }- return detections;-}--double _calculateIOU(- FaceDetectionRelative detectionA,- FaceDetectionRelative detectionB,-) {- final areaA = detectionA.width * detectionA.height;- final areaB = detectionB.width * detectionB.height;-- final intersectionMinX = math.max(detectionA.xMinBox, detectionB.xMinBox);- final intersectionMinY = math.max(detectionA.yMinBox, detectionB.yMinBox);- final intersectionMaxX = math.min(detectionA.xMaxBox, detectionB.xMaxBox);- final intersectionMaxY = math.min(detectionA.yMaxBox, detectionB.yMaxBox);-- final intersectionWidth = intersectionMaxX - intersectionMinX;- final intersectionHeight = intersectionMaxY - intersectionMinY;-- if (intersectionWidth < 0 || intersectionHeight < 0) {- return 0.0; // If boxes do not overlap, IoU is 0- }-- final intersectionArea = intersectionWidth * intersectionHeight;-- final unionArea = areaA + areaB - intersectionArea;-- return intersectionArea / unionArea;-}diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dartindex 38d085bf5c..3400dd9935 100644--- a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart@@ -1,5 +1,6 @@import "dart:async";-import 'dart:typed_data' show Uint8List, Float32List;+import "dart:math" show min;+import 'dart:typed_data' show Int32List, Uint8List;import 'dart:ui' as ui show Image;import 'package:logging/logging.dart';@@ -7,15 +8,13 @@ import "package:onnx_dart/onnx_dart.dart";import 'package:onnxruntime/onnxruntime.dart';import "package:photos/models/ml/face/dimension.dart";import 'package:photos/services/machine_learning/face_ml/face_detection/detection.dart';-import "package:photos/services/machine_learning/face_ml/face_detection/face_detection_postprocessing.dart";import "package:photos/services/machine_learning/ml_model.dart";-import "package:photos/utils/image_ml_util.dart";class YOLOFaceInterpreterRunException implements Exception {}/// This class is responsible for running the face detection model (YOLOv5Face) on ONNX runtime, and can be accessed through the singleton instance [FaceDetectionService.instance].class FaceDetectionService extends MlModel {- static const kRemoteBucketModelPath = "yolov5s_face_640_640_dynamic.onnx";+ static const kRemoteBucketModelPath = "yolov5s_face_opset18_rgba_opt.onnx";static const _modelName = "YOLOv5Face";@override@@ -55,44 +54,37 @@ class FaceDetectionService extends MlModel {);final startTime = DateTime.now();-- final (inputImageList, newSize) =- await preprocessImageToFloat32ChannelsFirst(- image,- rawRgbaBytes,- normalization: 1,- requiredWidth: kInputWidth,- requiredHeight: kInputHeight,- maintainAspectRatio: true,- );- final preprocessingTime = DateTime.now();- final preprocessingMs =- preprocessingTime.difference(startTime).inMilliseconds;+ final inputShape = <int>[image.height, image.width, 4]; // [H, W, C]+ final scaledSize = _getScaledSize(image.width, image.height);// Run inference- List<List<List<double>>>? nestedResults = [];+ List<List<double>>? nestedResults = [];try {if (MlModel.usePlatformPlugin) {- nestedResults = await _runPlatformPluginPredict(inputImageList);+ nestedResults =+ await _runPlatformPluginPredict(rawRgbaBytes, inputShape);} else {nestedResults = _runFFIBasedPredict(+ rawRgbaBytes,+ inputShape,sessionAddress,- inputImageList,- ); // [1, 25200, 16]+ ); // [detections, 16]}final inferenceTime = DateTime.now();- final inferenceMs =- inferenceTime.difference(preprocessingTime).inMilliseconds;_logger.info(- 'Face detection is finished, in ${inferenceTime.difference(startTime).inMilliseconds} ms (preprocessing: $preprocessingMs ms, inference: $inferenceMs ms)',+ 'Face detection is finished, in ${inferenceTime.difference(startTime).inMilliseconds} ms',);} catch (e, s) {- _logger.severe('Error while running inference (PlatformPlugin: ${MlModel.usePlatformPlugin})', e, s);+ _logger.severe(+ 'Error while running inference (PlatformPlugin: ${MlModel.usePlatformPlugin})',+ e,+ s,+ );throw YOLOFaceInterpreterRunException();}try {final relativeDetections =- _yoloPostProcessOutputs(nestedResults!, newSize);+ _yoloPostProcessOutputs(nestedResults!, scaledSize);return relativeDetections;} catch (e, s) {_logger.severe('Error while post processing', e, s);@@ -100,27 +92,20 @@ class FaceDetectionService extends MlModel {}}- static List<List<List<double>>>? _runFFIBasedPredict(+ static List<List<double>>? _runFFIBasedPredict(+ Uint8List inputImageList,+ List<int> inputImageShape,int sessionAddress,- Float32List inputImageList,) {- final inputShape = [- 1,- 3,- kInputHeight,- kInputWidth,- ];final inputOrt = OrtValueTensor.createTensorWithDataList(inputImageList,- inputShape,+ inputImageShape,);final inputs = {'input': inputOrt};-final runOptions = OrtRunOptions();final session = OrtSession.fromAddress(sessionAddress);final List<OrtValue?> outputs = session.run(runOptions, inputs);- final result =- outputs[0]?.value as List<List<List<double>>>; // [1, 25200, 16]+ final result = outputs[0]?.value as List<List<double>>; // [detections, 16]inputOrt.release();runOptions.release();for (var element in outputs) {@@ -130,41 +115,36 @@ class FaceDetectionService extends MlModel {return result;}- static Future<List<List<List<double>>>> _runPlatformPluginPredict(- Float32List inputImageList,+ static Future<List<List<double>>> _runPlatformPluginPredict(+ Uint8List inputImageList,+ List<int> inputImageShape,) async {final OnnxDart plugin = OnnxDart();- final result = await plugin.predict(+ final result = await plugin.predictRgba(inputImageList,+ Int32List.fromList(inputImageShape),_modelName,);final int resultLength = result!.length;- assert(resultLength % 25200 * 16 == 0);- const int outerLength = 1;- const int middleLength = 25200;- const int innerLength = 16;+ assert(resultLength % 16 == 0);+ final int detections = resultLength ~/ 16;return List.generate(- outerLength,- (_) => List.generate(- middleLength,- (j) => result.sublist(j * innerLength, (j + 1) * innerLength).toList(),- ),+ detections,+ (index) => result.sublist(index * 16, (index + 1) * 16).toList(),);}static List<FaceDetectionRelative> _yoloPostProcessOutputs(- List<List<List<double>>> nestedResults,- Dimensions newSize,+ List<List<double>> nestedResults,+ Dimensions scaledSize,) {- final firstResults = nestedResults[0]; // [25200, 16]-// Filter output- var relativeDetections = yoloOnnxFilterExtractDetections(+ final relativeDetections = _yoloOnnxFilterExtractDetections(kMinScoreSigmoidThreshold,kInputWidth,kInputHeight,- results: firstResults,+ results: nestedResults,);// Account for the fact that the aspect ratio was maintained@@ -174,16 +154,102 @@ class FaceDetectionService extends MlModel {width: kInputWidth,height: kInputHeight,),- newSize,+ scaledSize,);}- // Non-maximum suppression to remove duplicate detections- relativeDetections = naiveNonMaxSuppression(- detections: relativeDetections,- iouThreshold: kIouThreshold,- );-return relativeDetections;}++ static Dimensions _getScaledSize(int imageWidth, int imageHeight) {+ final scale = min(kInputWidth / imageWidth, kInputHeight / imageHeight);+ final scaledWidth = (imageWidth * scale).round().clamp(0, kInputWidth);+ final scaledHeight = (imageHeight * scale).round().clamp(0, kInputHeight);++ return Dimensions(width: scaledWidth, height: scaledHeight);+ }}++List<FaceDetectionRelative> _yoloOnnxFilterExtractDetections(+ double minScoreSigmoidThreshold,+ int inputWidth,+ int inputHeight, {+ required List<List<double>> results, // // [detections, 16]+}) {+ final outputDetections = <FaceDetectionRelative>[];+ final output = <List<double>>[];++ // Go through the raw output and check the scores+ for (final result in results) {+ // Filter out raw detections with low scores+ if (result[4] < minScoreSigmoidThreshold) {+ continue;+ }++ // Get the raw detection+ final rawDetection = List<double>.from(result);++ // Append the processed raw detection to the output+ output.add(rawDetection);+ }++ if (output.isEmpty) {+ return outputDetections;+ }++ for (final List<double> rawDetection in output) {+ // Get absolute bounding box coordinates in format [xMin, yMin, xMax, yMax] https://github.com/deepcam-cn/yolov5-face/blob/eb23d18defe4a76cc06449a61cd51004c59d2697/utils/general.py#L216+ final xMinAbs = rawDetection[0] - rawDetection[2] / 2;+ final yMinAbs = rawDetection[1] - rawDetection[3] / 2;+ final xMaxAbs = rawDetection[0] + rawDetection[2] / 2;+ final yMaxAbs = rawDetection[1] + rawDetection[3] / 2;++ // Get the relative bounding box coordinates in format [xMin, yMin, xMax, yMax]+ final box = [+ xMinAbs / inputWidth,+ yMinAbs / inputHeight,+ xMaxAbs / inputWidth,+ yMaxAbs / inputHeight,+ ];++ // Get the keypoints coordinates in format [x, y]+ final allKeypoints = <List<double>>[+ [+ rawDetection[5] / inputWidth,+ rawDetection[6] / inputHeight,+ ],+ [+ rawDetection[7] / inputWidth,+ rawDetection[8] / inputHeight,+ ],+ [+ rawDetection[9] / inputWidth,+ rawDetection[10] / inputHeight,+ ],+ [+ rawDetection[11] / inputWidth,+ rawDetection[12] / inputHeight,+ ],+ [+ rawDetection[13] / inputWidth,+ rawDetection[14] / inputHeight,+ ],+ ];++ // Get the score+ final score =+ rawDetection[4]; // Or should it be rawDetection[4]*rawDetection[15]?++ // Create the relative detection+ final detection = FaceDetectionRelative(+ score: score,+ box: box,+ allKeypoints: allKeypoints,+ );++ // Append the relative detection to the output+ outputDetections.add(detection);+ }++ return outputDetections;+}\ No newline at end of filediff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/lib/services/machine_learning/ml_model.dartindex ec91f0a0df..1b97a858b9 100644--- a/mobile/lib/services/machine_learning/ml_model.dart+++ b/mobile/lib/services/machine_learning/ml_model.dart@@ -140,6 +140,7 @@ abstract class MlModel {ONNXEnvFFI.instance.initONNX(modelName);try {final sessionOptions = OrtSessionOptions()+ ..appendCPUProvider(CPUFlags.useArena)..setInterOpNumThreads(1)..setIntraOpNumThreads(1)..setSessionGraphOptimizationLevel(diff --git a/mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart b/mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dartindex 4b78c00d56..1307ee2836 100644--- a/mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart+++ b/mobile/lib/services/machine_learning/semantic_search/clip/clip_image_encoder.dart@@ -9,7 +9,9 @@ import "package:photos/utils/ml_util.dart";class ClipImageEncoder extends MlModel {static const kRemoteBucketModelPath =- "mobileclip_s2_image_opset18_rgba_sim.onnx";+ "mobileclip_s2_image_opset18_rgba_opt.onnx"; // FP32 model+ // static const kRemoteBucketModelPath =+ // "mobileclip_s2_image_opset18_fp16.onnx"; // FP16 modelstatic const _modelName = "ClipImageEncoder";@overridediff --git a/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart b/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dartindex 792b20fed8..c475540fcb 100644--- a/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart+++ b/mobile/lib/services/machine_learning/semantic_search/clip/clip_text_encoder.dart@@ -7,12 +7,10 @@ import 'package:photos/services/machine_learning/semantic_search/clip/clip_text_import "package:photos/utils/ml_util.dart";class ClipTextEncoder extends MlModel {- // static const _kRemoteBucketModelPath = "clip-text-vit-32-float32-int32.onnx"; // Unquantized modelstatic const kRemoteBucketModelPath =- "mobileclip_s2_text_int32.onnx"; // Quantized model+ "mobileclip_s2_text_opset18_quant.onnx"; // Quantized modelstatic const _kVocabRemotePath = "bpe_simple_vocab_16e6.txt";- // static const kRemoteBucketModelPath = "clip-text-vit-32-uint8.onnx";static const _modelName = "ClipTextEncoder";@overridediff --git a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart b/mobile/lib/ui/settings/ml/machine_learning_settings_page.dartindex 8267648ad4..44264d890e 100644--- a/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart+++ b/mobile/lib/ui/settings/ml/machine_learning_settings_page.dart@@ -5,6 +5,8 @@ import "package:intl/intl.dart";import "package:photos/generated/l10n.dart";import "package:photos/l10n/l10n.dart";import "package:photos/service_locator.dart";+import "package:photos/services/machine_learning/face_ml/face_detection/face_detection_service.dart";+import "package:photos/services/machine_learning/face_ml/face_embedding/face_embedding_service.dart";import "package:photos/services/machine_learning/machine_learning_controller.dart";import "package:photos/services/machine_learning/ml_service.dart";import "package:photos/services/machine_learning/semantic_search/clip/clip_image_encoder.dart";@@ -296,9 +298,9 @@ class _ModelLoadingStateState extends State<ModelLoadingState> {title = "Image Model";} else if (url.contains(ClipTextEncoder.kRemoteBucketModelPath)) {title = "Text Model";- } else if (url.contains("yolov5s_face")) {+ } else if (url.contains(FaceDetectionService.kRemoteBucketModelPath)) {title = "Face Detection Model";- } else if (url.contains("mobilefacenet")) {+ } else if (url.contains(FaceEmbeddingService.kRemoteBucketModelPath)) {title = "Face Embedding Model";}if (title.isNotEmpty) {diff --git a/mobile/lib/utils/image_ml_util.dart b/mobile/lib/utils/image_ml_util.dartindex a6d047a842..4075ddf765 100644--- a/mobile/lib/utils/image_ml_util.dart+++ b/mobile/lib/utils/image_ml_util.dart@@ -1,6 +1,6 @@import "dart:async";import "dart:io" show File, Platform;-import "dart:math" show exp, min, pi;+import "dart:math" show min;import "dart:typed_data" show Float32List, Uint8List;import "dart:ui";@@ -9,7 +9,6 @@ import "package:flutter_image_compress/flutter_image_compress.dart";import "package:logging/logging.dart";import 'package:ml_linalg/linalg.dart';import "package:photos/models/ml/face/box.dart";-import "package:photos/models/ml/face/dimension.dart";import 'package:photos/services/machine_learning/face_ml/face_alignment/alignment_result.dart';import 'package:photos/services/machine_learning/face_ml/face_alignment/similarity_transform.dart';import 'package:photos/services/machine_learning/face_ml/face_detection/detection.dart';@@ -23,15 +22,6 @@ final _logger = Logger("ImageMlUtil");/// These are 8 bit unsigned integers in range 0-255 for each RGB channeltypedef RGB = (int, int, int);-const gaussianKernelSize = 5;-const gaussianKernelRadius = gaussianKernelSize ~/ 2;-const gaussianSigma = 10.0;-final List<List<double>> gaussianKernel =- create2DGaussianKernel(gaussianKernelSize, gaussianSigma);--const maxKernelSize = gaussianKernelSize;-const maxKernelRadius = maxKernelSize ~/ 2;-Future<(Image, Uint8List)> decodeImageFromPath(String imagePath) async {try {final imageData = await File(imagePath).readAsBytes();@@ -178,61 +168,6 @@ Future<List<Uint8List>> generateFaceThumbnailsUsingCanvas(}}-Future<(Float32List, Dimensions)> preprocessImageToFloat32ChannelsFirst(- Image image,- Uint8List rawRgbaBytes, {- required int normalization,- required int requiredWidth,- required int requiredHeight,- RGB Function(num, num, Image, Uint8List) getPixel = _getPixelBilinear,- maintainAspectRatio = true,-}) async {- final normFunction = normalization == 2- ? _normalizePixelRange2- : normalization == 1- ? _normalizePixelRange1- : _normalizePixelNoRange;-- double scaleW = requiredWidth / image.width;- double scaleH = requiredHeight / image.height;- if (maintainAspectRatio) {- final scale =- min(requiredWidth / image.width, requiredHeight / image.height);- scaleW = scale;- scaleH = scale;- }- final scaledWidth = (image.width * scaleW).round().clamp(0, requiredWidth);- final scaledHeight = (image.height * scaleH).round().clamp(0, requiredHeight);-- final processedBytes = Float32List(3 * requiredHeight * requiredWidth);-- final buffer = Float32List.view(processedBytes.buffer);- int pixelIndex = 0;- final int channelOffsetGreen = requiredHeight * requiredWidth;- final int channelOffsetBlue = 2 * requiredHeight * requiredWidth;- for (var h = 0; h < requiredHeight; h++) {- for (var w = 0; w < requiredWidth; w++) {- late RGB pixel;- if (w >= scaledWidth || h >= scaledHeight) {- pixel = const (114, 114, 114);- } else {- pixel = getPixel(- w / scaleW,- h / scaleH,- image,- rawRgbaBytes,- );- }- buffer[pixelIndex] = normFunction(pixel.$1);- buffer[pixelIndex + channelOffsetGreen] = normFunction(pixel.$2);- buffer[pixelIndex + channelOffsetBlue] = normFunction(pixel.$3);- pixelIndex++;- }- }-- return (processedBytes, Dimensions(width: scaledWidth, height: scaledHeight));-}-Future<(Float32List, List<AlignmentResult>, List<bool>, List<double>, Size)>preprocessToMobileFaceNetFloat32List(Image image,@@ -310,10 +245,7 @@ RGB _readPixelColor(Uint8List rgbaBytes,) {if (y < 0 || y >= image.height || x < 0 || x >= image.width) {- if (y < -maxKernelRadius ||- y >= image.height + maxKernelRadius ||- x < -maxKernelRadius ||- x >= image.width + maxKernelRadius) {+ if (y < -2 || y >= image.height + 2 || x < -2 || x >= image.width + 2) {_logger.severe('`readPixelColor`: Invalid pixel coordinates, out of bounds. x: $x, y: $y',);@@ -331,29 +263,6 @@ RGB _readPixelColor();}-RGB _getPixelBlurred(- int x,- int y,- Image image,- Uint8List rgbaBytes,-) {- double r = 0, g = 0, b = 0;- for (int ky = 0; ky < gaussianKernelSize; ky++) {- for (int kx = 0; kx < gaussianKernelSize; kx++) {- final int px = (x - gaussianKernelRadius + kx);- final int py = (y - gaussianKernelRadius + ky);-- final RGB pixelRgbTuple = _readPixelColor(px, py, image, rgbaBytes);- final double weight = gaussianKernel[ky][kx];-- r += pixelRgbTuple.$1 * weight;- g += pixelRgbTuple.$2 * weight;- b += pixelRgbTuple.$3 * weight;- }- }- return (r.round(), g.round(), b.round());-}-List<List<int>> _createGrayscaleIntMatrixFromNormalized2List(Float32List imageList,int startIndex, {@@ -367,46 +276,16 @@ List<List<int>> _createGrayscaleIntMatrixFromNormalized2List((x) {// 0.299 ∙ Red + 0.587 ∙ Green + 0.114 ∙ Bluefinal pixelIndex = startIndex + 3 * (y * width + x);- return (0.299 * _unnormalizePixelRange2(imageList[pixelIndex]) +- 0.587 * _unnormalizePixelRange2(imageList[pixelIndex + 1]) +- 0.114 * _unnormalizePixelRange2(imageList[pixelIndex + 2]))+ return (0.299 * ((imageList[pixelIndex] + 1) * 127.5) ++ 0.587 * ((imageList[pixelIndex + 1] + 1) * 127.5) ++ 0.114 * ((imageList[pixelIndex + 2] + 1) * 127.5)).round().clamp(0, 255);- // return unnormalizePixelRange2(- // (0.299 * imageList[pixelIndex] +- // 0.587 * imageList[pixelIndex + 1] +- // 0.114 * imageList[pixelIndex + 2]),- // ).round().clamp(0, 255);},),);}-/// Function normalizes the pixel value to be in range [-1, 1].-///-/// It assumes that the pixel value is originally in range [0, 255]-double _normalizePixelRange2(num pixelValue) {- return (pixelValue / 127.5) - 1;-}--/// Function unnormalizes the pixel value to be in range [0, 255].-///-/// It assumes that the pixel value is originally in range [-1, 1]-int _unnormalizePixelRange2(double pixelValue) {- return ((pixelValue + 1) * 127.5).round().clamp(0, 255);-}--/// Function normalizes the pixel value to be in range [0, 1].-///-/// It assumes that the pixel value is originally in range [0, 255]-double _normalizePixelRange1(num pixelValue) {- return (pixelValue / 255);-}--double _normalizePixelNoRange(num pixelValue) {- return pixelValue.toDouble();-}-Future<Image> _cropImage(Image image, {required double x,@@ -501,11 +380,11 @@ void _warpAffineFloat32List(// Set the new pixeloutputList[startIndex + 3 * (yTrans * width + xTrans)] =- _normalizePixelRange2(pixel.$1);+ (pixel.$1 / 127.5) - 1;outputList[startIndex + 3 * (yTrans * width + xTrans) + 1] =- _normalizePixelRange2(pixel.$2);+ (pixel.$2 / 127.5) - 1;outputList[startIndex + 3 * (yTrans * width + xTrans) + 2] =- _normalizePixelRange2(pixel.$3);+ (pixel.$3 / 127.5) - 1;}}}@@ -527,52 +406,6 @@ Future<Uint8List> _cropAndEncodeCanvas(return await _encodeImageToPng(croppedImage);}-RGB _getPixelBilinear(- num fx,- num fy,- Image image,- Uint8List rawRgbaBytes, {- bool antiAlias = false,-}) {- // Clamp to image boundaries- fx = fx.clamp(0, image.width - 1);- fy = fy.clamp(0, image.height - 1);-- // Get the surrounding coordinates and their weights- final int x0 = fx.floor();- final int x1 = fx.ceil();- final int y0 = fy.floor();- final int y1 = fy.ceil();- final dx = fx - x0;- final dy = fy - y0;- final dx1 = 1.0 - dx;- final dy1 = 1.0 - dy;-- // Get the original pixels (with gaussian blur if antialias)- final RGB Function(int, int, Image, Uint8List) readPixel =- antiAlias ? _getPixelBlurred : _readPixelColor;- final RGB pixel1 = readPixel(x0, y0, image, rawRgbaBytes);- final RGB pixel2 = readPixel(x1, y0, image, rawRgbaBytes);- final RGB pixel3 = readPixel(x0, y1, image, rawRgbaBytes);- final RGB pixel4 = readPixel(x1, y1, image, rawRgbaBytes);-- int bilinear(- num val1,- num val2,- num val3,- num val4,- ) =>- (val1 * dx1 * dy1 + val2 * dx * dy1 + val3 * dx1 * dy + val4 * dx * dy)- .round();-- // Calculate the weighted sum of pixels- final int r = bilinear(pixel1.$1, pixel2.$1, pixel3.$1, pixel4.$1);- final int g = bilinear(pixel1.$2, pixel2.$2, pixel3.$2, pixel4.$2);- final int b = bilinear(pixel1.$3, pixel2.$3, pixel3.$3, pixel4.$3);-- return (r, g, b);-}-/// Get the pixel value using Bicubic Interpolation. Code taken mainly from https://github.com/brendan-duncan/image/blob/6e407612752ffdb90b28cd5863c7f65856349348/lib/src/image/image.dart#L697RGB _getPixelBicubic(num fx, num fy, Image image, Uint8List rawRgbaBytes) {fx = fx.clamp(0, image.width - 1);@@ -664,30 +497,3 @@ RGB _getPixelBicubic(num fx, num fy, Image image, Uint8List rawRgbaBytes) {return (c0, c1, c2); // (red, green, blue)}--List<List<double>> create2DGaussianKernel(int size, double sigma) {- final List<List<double>> kernel =- List.generate(size, (_) => List<double>.filled(size, 0));- double sum = 0.0;- final int center = size ~/ 2;-- for (int y = 0; y < size; y++) {- for (int x = 0; x < size; x++) {- final int dx = x - center;- final int dy = y - center;- final double g = (1 / (2 * pi * sigma * sigma)) *- exp(-(dx * dx + dy * dy) / (2 * sigma * sigma));- kernel[y][x] = g;- sum += g;- }- }-- // Normalize the kernel- for (int y = 0; y < size; y++) {- for (int x = 0; x < size; x++) {- kernel[y][x] /= sum;- }- }-- return kernel;-}diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock b/mobile/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.locknew file mode 100644index 0000000000..eda644daa6Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/checksums/checksums.lock differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock b/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.locknew file mode 100644index 0000000000..62f9bf21aaBinary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.properties b/mobile/plugins/onnx_dart/android/.gradle/8.5/dependencies-accessors/gc.propertiesnew file mode 100644index 0000000000..e69de29bb2diff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin b/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.binnew file mode 100644index 0000000000..cc7e26245aBinary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.bin differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock b/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.locknew file mode 100644index 0000000000..a3c2bdd206Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/executionHistory/executionHistory.lock differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.binnew file mode 100644index 0000000000..f76dd238adBinary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileChanges/last-build.bin differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.binnew file mode 100644index 0000000000..58f4b9e962Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.bin differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.locknew file mode 100644index 0000000000..4e4d51aaa9Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/8.5/fileHashes/fileHashes.lock differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/8.5/gc.properties b/mobile/plugins/onnx_dart/android/.gradle/8.5/gc.propertiesnew file mode 100644index 0000000000..e69de29bb2diff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.locknew file mode 100644index 0000000000..ca921a15e6Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.propertiesnew file mode 100644index 0000000000..ba2e2828fc--- /dev/null+++ b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/cache.properties@@ -0,0 +1,2 @@+#Wed Oct 09 09:02:46 CEST 2024+gradle.version=8.5diff --git a/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.binnew file mode 100644index 0000000000..a49084dcd8Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/buildOutputCleanup/outputFiles.bin differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/config.properties b/mobile/plugins/onnx_dart/android/.gradle/config.propertiesnew file mode 100644index 0000000000..4471cfd61c--- /dev/null+++ b/mobile/plugins/onnx_dart/android/.gradle/config.properties@@ -0,0 +1,2 @@+#Wed Oct 09 08:43:27 CEST 2024+java.home=/home/laurens/dev/installations/android-studio-2024.1.1.13-linux/android-studio/jbrdiff --git a/mobile/plugins/onnx_dart/android/.gradle/file-system.probe b/mobile/plugins/onnx_dart/android/.gradle/file-system.probenew file mode 100644index 0000000000..91b6aa2bb6Binary files /dev/null and b/mobile/plugins/onnx_dart/android/.gradle/file-system.probe differdiff --git a/mobile/plugins/onnx_dart/android/.gradle/vcs-1/gc.properties b/mobile/plugins/onnx_dart/android/.gradle/vcs-1/gc.propertiesnew file mode 100644index 0000000000..e69de29bb2diff --git a/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar b/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jarnew file mode 100644index 0000000000..d64cd49177Binary files /dev/null and b/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.jar differdiff --git a/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties b/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.propertiesnew file mode 100644index 0000000000..1af9e0930b--- /dev/null+++ b/mobile/plugins/onnx_dart/android/gradle/wrapper/gradle-wrapper.properties@@ -0,0 +1,7 @@+distributionBase=GRADLE_USER_HOME+distributionPath=wrapper/dists+distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip+networkTimeout=10000+validateDistributionUrl=true+zipStoreBase=GRADLE_USER_HOME+zipStorePath=wrapper/distsdiff --git a/mobile/plugins/onnx_dart/android/gradlew b/mobile/plugins/onnx_dart/android/gradlewnew file mode 100755index 0000000000..1aa94a4269--- /dev/null+++ b/mobile/plugins/onnx_dart/android/gradlew@@ -0,0 +1,249 @@+#!/bin/sh++#+# Copyright © 2015-2021 the original authors.+#+# Licensed under the Apache License, Version 2.0 (the "License");+# you may not use this file except in compliance with the License.+# You may obtain a copy of the License at+#+# https://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#++##############################################################################+#+# Gradle start up script for POSIX generated by Gradle.+#+# Important for running:+#+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is+# noncompliant, but you have some other compliant shell such as ksh or+# bash, then to run this script, type that shell name before the whole+# command line, like:+#+# ksh Gradle+#+# Busybox and similar reduced shells will NOT work, because this script+# requires all of these POSIX shell features:+# * functions;+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;+# * compound commands having a testable exit status, especially «case»;+# * various built-in commands including «command», «set», and «ulimit».+#+# Important for patching:+#+# (2) This script targets any POSIX shell, so it avoids extensions provided+# by Bash, Ksh, etc; in particular arrays are avoided.+#+# The "traditional" practice of packing multiple parameters into a+# space-separated string is a well documented source of bugs and security+# problems, so this is (mostly) avoided, by progressively accumulating+# options in "$@", and eventually passing that to Java.+#+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;+# see the in-line comments for details.+#+# There are tweaks for specific operating systems such as AIX, CygWin,+# Darwin, MinGW, and NonStop.+#+# (3) This script is generated from the Groovy template+# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt+# within the Gradle project.+#+# You can find Gradle at https://github.com/gradle/gradle/.+#+##############################################################################++# Attempt to set APP_HOME++# Resolve links: $0 may be a link+app_path=$0++# Need this for daisy-chained symlinks.+while+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path+ [ -h "$app_path" ]+do+ ls=$( ls -ld "$app_path" )+ link=${ls#*' -> '}+ case $link in #(+ /*) app_path=$link ;; #(+ *) app_path=$APP_HOME$link ;;+ esac+done++# This is normally unused+# shellcheck disable=SC2034+APP_BASE_NAME=${0##*/}+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)+APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit++# Use the maximum available, or set MAX_FD != -1 to use that value.+MAX_FD=maximum++warn () {+ echo "$*"+} >&2++die () {+ echo+ echo "$*"+ echo+ exit 1+} >&2++# OS specific support (must be 'true' or 'false').+cygwin=false+msys=false+darwin=false+nonstop=false+case "$( uname )" in #(+ CYGWIN* ) cygwin=true ;; #(+ Darwin* ) darwin=true ;; #(+ MSYS* | MINGW* ) msys=true ;; #(+ NONSTOP* ) nonstop=true ;;+esac++CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar+++# Determine the Java command to use to start the JVM.+if [ -n "$JAVA_HOME" ] ; then+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then+ # IBM's JDK on AIX uses strange locations for the executables+ JAVACMD=$JAVA_HOME/jre/sh/java+ else+ JAVACMD=$JAVA_HOME/bin/java+ fi+ if [ ! -x "$JAVACMD" ] ; then+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME++Please set the JAVA_HOME variable in your environment to match the+location of your Java installation."+ fi+else+ JAVACMD=java+ if ! command -v java >/dev/null 2>&1+ then+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.++Please set the JAVA_HOME variable in your environment to match the+location of your Java installation."+ fi+fi++# Increase the maximum file descriptors if we can.+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then+ case $MAX_FD in #(+ max*)+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.+ # shellcheck disable=SC2039,SC3045+ MAX_FD=$( ulimit -H -n ) ||+ warn "Could not query maximum file descriptor limit"+ esac+ case $MAX_FD in #(+ '' | soft) :;; #(+ *)+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.+ # shellcheck disable=SC2039,SC3045+ ulimit -n "$MAX_FD" ||+ warn "Could not set maximum file descriptor limit to $MAX_FD"+ esac+fi++# Collect all arguments for the java command, stacking in reverse order:+# * args from the command line+# * the main class name+# * -classpath+# * -D...appname settings+# * --module-path (only if needed)+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.++# For Cygwin or MSYS, switch paths to Windows format before running java+if "$cygwin" || "$msys" ; then+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )++ JAVACMD=$( cygpath --unix "$JAVACMD" )++ # Now convert the arguments - kludge to limit ourselves to /bin/sh+ for arg do+ if+ case $arg in #(+ -*) false ;; # don't mess with options #(+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath+ [ -e "$t" ] ;; #(+ *) false ;;+ esac+ then+ arg=$( cygpath --path --ignore --mixed "$arg" )+ fi+ # Roll the args list around exactly as many times as the number of+ # args, so each arg winds up back in the position where it started, but+ # possibly modified.+ #+ # NB: a `for` loop captures its iteration list before it begins, so+ # changing the positional parameters here affects neither the number of+ # iterations, nor the values presented in `arg`.+ shift # remove old arg+ set -- "$@" "$arg" # push replacement arg+ done+fi+++# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'++# Collect all arguments for the java command:+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,+# and any embedded shellness will be escaped.+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be+# treated as '${Hostname}' itself on the command line.++set -- \+ "-Dorg.gradle.appname=$APP_BASE_NAME" \+ -classpath "$CLASSPATH" \+ org.gradle.wrapper.GradleWrapperMain \+ "$@"++# Stop when "xargs" is not available.+if ! command -v xargs >/dev/null 2>&1+then+ die "xargs is not available"+fi++# Use "xargs" to parse quoted args.+#+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.+#+# In Bash we could simply go:+#+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&+# set -- "${ARGS[@]}" "$@"+#+# but POSIX shell has neither arrays nor command substitution, so instead we+# post-process each arg (as a line of input to sed) to backslash-escape any+# character that might be a shell metacharacter, then use eval to reverse+# that process (while maintaining the separation between arguments), and wrap+# the whole thing up as a single "set" statement.+#+# This will of course break if any of these variables contains a newline or+# an unmatched quote.+#++eval "set -- $(+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |+ xargs -n1 |+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |+ tr '\n' ' '+ )" '"$@"'++exec "$JAVACMD" "$@"diff --git a/mobile/plugins/onnx_dart/android/gradlew.bat b/mobile/plugins/onnx_dart/android/gradlew.batnew file mode 100644index 0000000000..6689b85bee--- /dev/null+++ b/mobile/plugins/onnx_dart/android/gradlew.bat@@ -0,0 +1,92 @@+@rem+@rem Copyright 2015 the original author or authors.+@rem+@rem Licensed under the Apache License, Version 2.0 (the "License");+@rem you may not use this file except in compliance with the License.+@rem You may obtain a copy of the License at+@rem+@rem https://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing, software+@rem distributed under the License is distributed on an "AS IS" BASIS,+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+@rem See the License for the specific language governing permissions and+@rem limitations under the License.+@rem++@if "%DEBUG%"=="" @echo off+@rem ##########################################################################+@rem+@rem Gradle startup script for Windows+@rem+@rem ##########################################################################++@rem Set local scope for the variables with windows NT shell+if "%OS%"=="Windows_NT" setlocal++set DIRNAME=%~dp0+if "%DIRNAME%"=="" set DIRNAME=.+@rem This is normally unused+set APP_BASE_NAME=%~n0+set APP_HOME=%DIRNAME%++@rem Resolve any "." and ".." in APP_HOME to make it shorter.+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi++@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"++@rem Find java.exe+if defined JAVA_HOME goto findJavaFromJavaHome++set JAVA_EXE=java.exe+%JAVA_EXE% -version >NUL 2>&1+if %ERRORLEVEL% equ 0 goto execute++echo.+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.+echo.+echo Please set the JAVA_HOME variable in your environment to match the+echo location of your Java installation.++goto fail++:findJavaFromJavaHome+set JAVA_HOME=%JAVA_HOME:"=%+set JAVA_EXE=%JAVA_HOME%/bin/java.exe++if exist "%JAVA_EXE%" goto execute++echo.+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%+echo.+echo Please set the JAVA_HOME variable in your environment to match the+echo location of your Java installation.++goto fail++:execute+@rem Setup the command line++set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar+++@rem Execute Gradle+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*++:end+@rem End local scope for the variables with windows NT shell+if %ERRORLEVEL% equ 0 goto mainEnd++:fail+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of+rem the _cmd.exe /c_ return code!+set EXIT_CODE=%ERRORLEVEL%+if %EXIT_CODE% equ 0 set EXIT_CODE=1+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%+exit /b %EXIT_CODE%++:mainEnd+if "%OS%"=="Windows_NT" endlocal++:omegadiff --git a/mobile/plugins/onnx_dart/android/local.properties b/mobile/plugins/onnx_dart/android/local.propertiesindex 54c35dc361..44de4e83d4 100644--- a/mobile/plugins/onnx_dart/android/local.properties+++ b/mobile/plugins/onnx_dart/android/local.properties@@ -1,2 +1,9 @@-sdk.dir=/Users/ua741/Library/Android/sdk-flutter.sdk=/Users/ua741/work/flutter\ No newline at end of file+## This file must *NOT* be checked into Version Control Systems,+# as it contains information specific to your local configuration.+#+# Location of the SDK. This is only used by Gradle.+# For customization when using a Version Control System, please read the+# header note.+#Wed Oct 09 09:02:56 CEST 2024+flutter.sdk=/Users/ua741/work/flutter+sdk.dir=/home/laurens/Android/Sdkdiff --git a/mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt b/mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.ktindex 0114c43d2f..82688af394 100644--- a/mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt+++ b/mobile/plugins/onnx_dart/android/src/main/kotlin/io/ente/photos/onnx_dart/OnnxDartPlugin.kt@@ -172,11 +172,13 @@ class OnnxDartPlugin: FlutterPlugin, MethodCallHandler {try {val env = OrtEnvironment.getEnvironment()- var inputTensorShape = longArrayOf(1, 3, 640, 640)+ var inputTensorShape: LongArray = longArrayOf(1, 112, 112, 3)when (modelType) {ModelType.MobileFaceNet -> {val totalSize = inputDataFloat!!.size.toLong() / FACENET_SINGLE_INPUT_SIZE+ if (totalSize != 1.toLong()) {inputTensorShape = longArrayOf(totalSize, 112, 112, 3)+ }}ModelType.ClipImageEncoder -> {if (inputShapeArray != null) {@@ -189,7 +191,11 @@ class OnnxDartPlugin: FlutterPlugin, MethodCallHandler {inputTensorShape = longArrayOf(1, 77)}ModelType.YOLOv5Face -> {- inputTensorShape = longArrayOf(1, 3, 640, 640)+ if (inputShapeArray != null) {+ inputTensorShape = inputShapeArray.map { it.toLong() }.toLongArray()+ } else {+ result.error("INVALID_ARGUMENT", "Input shape is missing for YOLOv5Face input", null)+ }}}@@ -206,19 +212,10 @@ class OnnxDartPlugin: FlutterPlugin, MethodCallHandler {inputs["input"] = inputTensor}val outputs = session.run(inputs)- // Log.d(TAG, "Output shape: ${outputs.size()}")- if (modelType == ModelType.YOLOv5Face) {- val outputTensor = (outputs[0].value as Array<Array<FloatArray>>).get(0)- val flatList = outputTensor.flattenToFloatArray()- withContext(Dispatchers.Main) {- result.success(flatList)- }- } else {- val outputTensor = (outputs[0].value as Array<FloatArray>)- val flatList = outputTensor.flattenToFloatArray()- withContext(Dispatchers.Main) {- result.success(flatList)- }+ val outputTensor = (outputs[0].value as Array<FloatArray>)+ val flatList = outputTensor.flattenToFloatArray()+ withContext(Dispatchers.Main) {+ result.success(flatList)}outputs.close()inputTensor.close()@@ -236,7 +233,12 @@ class OnnxDartPlugin: FlutterPlugin, MethodCallHandler {}private fun createSession(env: OrtEnvironment, modalPath: String): OrtSession? {- return env.createSession(modalPath, OrtSession.SessionOptions())+ val sessionOptions = OrtSession.SessionOptions()+ sessionOptions.addCPU(true)+ sessionOptions.setInterOpNumThreads(1)+ sessionOptions.setIntraOpNumThreads(1)+ sessionOptions.setOptimizationLevel(OrtSession.SessionOptions.OptLevel.ALL_OPT)+ return env.createSession(modalPath, sessionOptions)}private fun releaseAllSessions() {diff --git a/web/apps/photos/package.json b/web/apps/photos/package.jsonindex 3da38fa149..76f9bf1d8e 100644--- a/web/apps/photos/package.json+++ b/web/apps/photos/package.json@@ -34,7 +34,6 @@"react-window": "^1.8.10","sanitize-filename": "^1.6.3","similarity-transformation": "^0.0.1",- "transformation-matrix": "^2.16","uuid": "^9.0.1","xml-js": "^1.6.11","zxcvbn": "^4.4.2"diff --git a/web/docs/dependencies.md b/web/docs/dependencies.mdindex b8e13fe8c7..ab544e2004 100644--- a/web/docs/dependencies.md+++ b/web/docs/dependencies.md@@ -195,20 +195,11 @@ For more details, see [translations.md](translations.md).### Face search-- [transformation-matrix](https://github.com/chrvadala/transformation-matrix)- is used for performing 2D affine transformations using transformation- matrices. It is used during face detection.-- [matrix](https://github.com/mljs/matrix) is mathematical matrix abstraction.It is used alongwith[similarity-transformation](https://github.com/shaileshpandit/similarity-transformation-js)during face alignment.- > Note that while both `transformation-matrix` and `matrix` are "matrix"- > libraries, they have different foci and purposes: `transformation-matrix`- > provides affine transforms, while `matrix` is for performing computations- > on matrices, say inverting them or performing their decomposition.-## Auth app specific- [otpauth](https://github.com/hectorm/otpauth) is used for the generation ofdiff --git a/web/packages/base/types/ipc.ts b/web/packages/base/types/ipc.tsindex 303251bb1e..95f38f094f 100644--- a/web/packages/base/types/ipc.ts+++ b/web/packages/base/types/ipc.ts@@ -594,7 +594,10 @@ export interface ElectronMLWorker {* Both the input and output are opaque binary data whose internal structure* is specific to our implementation and the model (YOLO) we use.*/- detectFaces: (input: Float32Array) => Promise<Float32Array>;+ detectFaces: (+ input: Uint8ClampedArray,+ inputShape: number[],+ ) => Promise<Float32Array>;/*** Return a MobileFaceNet embeddings for the given faces.diff --git a/web/packages/new/photos/services/ml/clip.ts b/web/packages/new/photos/services/ml/clip.tsindex 59df54af90..c4ccd0fe4b 100644--- a/web/packages/new/photos/services/ml/clip.ts+++ b/web/packages/new/photos/services/ml/clip.ts@@ -112,10 +112,8 @@ const computeEmbedding = async (imageData: ImageData,electron: ElectronMLWorker,): Promise<Float32Array> => {- // In contrast to the face detection model, the image pre-preprocessing- // happens within the model itself, using ONNX primitives. This is more- // performant and also saves us from having to reinvent (say) the- // antialising wheels.+ // The image pre-preprocessing happens within the model itself, using ONNX primitives. This is more+ // performant and also saves us from having to reinvent (say) the antialising wheels.const { height, width, data: pixelData } = imageData;const inputShape = [height, width, 4]; // [H, W, C]return normalized(diff --git a/web/packages/new/photos/services/ml/face.ts b/web/packages/new/photos/services/ml/face.tsindex 1e7716f9fc..f2e96c7775 100644--- a/web/packages/new/photos/services/ml/face.ts+++ b/web/packages/new/photos/services/ml/face.ts@@ -12,17 +12,9 @@ import type { ElectronMLWorker } from "@/base/types/ipc";import type { EnteFile } from "@/new/photos/types/file";import { Matrix } from "ml-matrix";import { getSimilarityTransformation } from "similarity-transformation";-import {- applyToPoint,- compose,- scale,- translate,- type Matrix as TransformationMatrix,-} from "transformation-matrix";import type { ImageBitmapAndData } from "./blob";import {grayscaleIntMatrixFromNormalized2List,- pixelRGBBilinear,warpAffineFloat32List,} from "./image";import { clamp } from "./math";@@ -343,69 +335,52 @@ const detectFaces = async (imageData: ImageData,electron: ElectronMLWorker,): Promise<YOLOFaceDetection[]> => {- const rect = ({ width, height }: Dimensions) => ({- x: 0,- y: 0,- width,- height,- });-- const { yoloInput, yoloSize } =- convertToYOLOInputFloat32ChannelsFirst(imageData);- const yoloOutput = await electron.detectFaces(yoloInput);+ // The image pre-preprocessing+ // happens within the model itself, using ONNX primitives. This is more+ // performant and also saves us from having to reinvent (say) the+ // antialising wheels.+ const {+ height: imageHeight,+ width: imageWidth,+ data: pixelData,+ } = imageData;+ const inputShape = [imageHeight, imageWidth, 4]; // [H, W, C]++ const scaledSize = getScaledSize(imageWidth, imageHeight);+ const yoloOutput = await electron.detectFaces(pixelData, inputShape);const faces = filterExtractDetectionsFromYOLOOutput(yoloOutput);const faceDetections = transformYOLOFaceDetections(faces,- rect(yoloSize),- rect(imageData),+ {+ x: (640 - scaledSize.width) / 2,+ y: (640 - scaledSize.height) / 2,+ width: scaledSize.width,+ height: scaledSize.height,+ },+ { x: 0, y: 0, width: imageWidth, height: imageHeight },);- return naiveNonMaxSuppression(faceDetections, 0.4);+ return faceDetections;};/**- * Convert {@link imageData} into the format that the YOLOv5 face detection- * model expects.+ * Calculate image scaling done inside ONNX model run preprocessing. Needed to correct the output.*/-const convertToYOLOInputFloat32ChannelsFirst = (imageData: ImageData) => {+const getScaledSize = (imageWidth: number, imageHeight: number) => {const requiredWidth = 640;const requiredHeight = 640;- const { width, height, data: pixelData } = imageData;-- // Maintain aspect ratio.- const scale = Math.min(requiredWidth / width, requiredHeight / height);-- const scaledWidth = clamp(Math.round(width * scale), 0, requiredWidth);- const scaledHeight = clamp(Math.round(height * scale), 0, requiredHeight);-- const yoloInput = new Float32Array(1 * 3 * requiredWidth * requiredHeight);- const yoloSize = { width: scaledWidth, height: scaledHeight };-- // Populate the Float32Array with normalized pixel values.- let pi = 0;- const channelOffsetGreen = requiredHeight * requiredWidth;- const channelOffsetBlue = 2 * requiredHeight * requiredWidth;- for (let h = 0; h < requiredHeight; h++) {- for (let w = 0; w < requiredWidth; w++) {- const { r, g, b } =- w >= scaledWidth || h >= scaledHeight- ? { r: 114, g: 114, b: 114 }- : pixelRGBBilinear(- w / scale,- h / scale,- pixelData,- width,- height,- );- yoloInput[pi] = r / 255.0;- yoloInput[pi + channelOffsetGreen] = g / 255.0;- yoloInput[pi + channelOffsetBlue] = b / 255.0;- pi++;- }- }-- return { yoloInput, yoloSize };+ const scale = Math.min(+ requiredWidth / imageWidth,+ requiredHeight / imageHeight,+ );+ const scaledWidth = clamp(Math.round(imageWidth * scale), 0, requiredWidth);+ const scaledHeight = clamp(+ Math.round(imageHeight * scale),+ 0,+ requiredHeight,+ );+ return { width: scaledWidth, height: scaledHeight };};interface YOLOFaceDetection {@@ -480,107 +455,31 @@ const transformYOLOFaceDetections = (inBox: Box,toBox: Box,): YOLOFaceDetection[] => {- const transform = boxTransformationMatrix(inBox, toBox);- return yoloFaceDetections.map((f) => ({- box: transformBox(f.box, transform),- landmarks: f.landmarks.map((p) => applyToPoint(transform, p)),- score: f.score,- }));-};--const boxTransformationMatrix = (- inBox: Box,- toBox: Box,-): TransformationMatrix =>- compose(- translate(toBox.x, toBox.y),- scale(toBox.width / inBox.width, toBox.height / inBox.height),- );--const transformBox = (box: Box, transform: TransformationMatrix): Box => {- const topLeft = applyToPoint(transform, { x: box.x, y: box.y });- const bottomRight = applyToPoint(transform, {- x: box.x + box.width,- y: box.y + box.height,- });-- return {- x: topLeft.x,- y: topLeft.y,- width: bottomRight.x - topLeft.x,- height: bottomRight.y - topLeft.y,- };-};--/**- * Remove overlapping faces from an array of face detections through non-maximum- * suppression algorithm.- *- * This function sorts the detections by their score in descending order, then- * iterates over them.- *- * For each detection, it calculates the Intersection over Union (IoU) with all- * other detections.- *- * If the IoU is greater than or equal to the specified threshold- * (`iouThreshold`), the other detection is considered overlapping and is- * removed.- *- * @param detections - An array of YOLO face detections to remove overlapping- * faces from.- *- * @param iouThreshold - The minimum IoU between two detections for them to be- * considered overlapping.- *- * @returns An array of face detections with overlapping faces removed- */-const naiveNonMaxSuppression = (- detections: YOLOFaceDetection[],- iouThreshold: number,-): YOLOFaceDetection[] => {- // Sort the detections by score, the highest first.- detections.sort((a, b) => b.score - a.score);-- // Loop through the detections and calculate the IOU.- for (let i = 0; i < detections.length - 1; i++) {- for (let j = i + 1; j < detections.length; j++) {- const iou = intersectionOverUnion(detections[i]!, detections[j]!);- if (iou >= iouThreshold) {- detections.splice(j, 1);- j--;- }- }- }-- return detections;-};--const intersectionOverUnion = (a: FaceDetection, b: FaceDetection): number => {- const intersectionMinX = Math.max(a.box.x, b.box.x);- const intersectionMinY = Math.max(a.box.y, b.box.y);- const intersectionMaxX = Math.min(- a.box.x + a.box.width,- b.box.x + b.box.width,- );- const intersectionMaxY = Math.min(- a.box.y + a.box.height,- b.box.y + b.box.height,- );-- const intersectionWidth = intersectionMaxX - intersectionMinX;- const intersectionHeight = intersectionMaxY - intersectionMinY;-- if (intersectionWidth < 0 || intersectionHeight < 0) {- return 0.0; // If boxes do not overlap, IoU is 0+ const scaleX = toBox.width / inBox.width;+ const scaleY = toBox.height / inBox.height;+ const translateX = toBox.x - inBox.x;+ const translateY = toBox.y - inBox.y;++ const correctDetections: YOLOFaceDetection[] = [];++ for (const detection of yoloFaceDetections) {+ const score = detection.score;++ const box = detection.box;+ box.x = (box.x + translateX) * scaleX;+ box.y = (box.y + translateY) * scaleY;+ box.width *= scaleX;+ box.height *= scaleY;++ const landmarks = detection.landmarks;+ landmarks.forEach((p) => {+ p.x = (p.x + translateX) * scaleX;+ p.y = (p.y + translateY) * scaleY;+ });+ correctDetections.push({ score, box, landmarks });}- const areaA = a.box.width * a.box.height;- const areaB = b.box.width * b.box.height;-- const intersectionArea = intersectionWidth * intersectionHeight;- const unionArea = areaA + areaB - intersectionArea;-- return intersectionArea / unionArea;+ return correctDetections;};const makeFaceID = (fileID: number, box: Box, image: Dimensions) => {diff --git a/web/packages/new/photos/services/ml/image.ts b/web/packages/new/photos/services/ml/image.tsindex f8d6f009b3..8494eb961c 100644--- a/web/packages/new/photos/services/ml/image.ts+++ b/web/packages/new/photos/services/ml/image.ts@@ -5,53 +5,6 @@ import { ensure } from "@/utils/ensure";import { Matrix, inverse } from "ml-matrix";import { clamp } from "./math";-/**- * Returns the pixel value (RGB) at the given coordinates ({@link fx},- * {@link fy}) using bilinear interpolation.- */-export function pixelRGBBilinear(- fx: number,- fy: number,- imageData: Uint8ClampedArray,- imageWidth: number,- imageHeight: number,-) {- // Clamp to image boundaries.- fx = clamp(fx, 0, imageWidth - 1);- fy = clamp(fy, 0, imageHeight - 1);-- // Get the surrounding coordinates and their weights.- const x0 = Math.floor(fx);- const x1 = Math.ceil(fx);- const y0 = Math.floor(fy);- const y1 = Math.ceil(fy);- const dx = fx - x0;- const dy = fy - y0;- const dx1 = 1.0 - dx;- const dy1 = 1.0 - dy;-- // Get the original pixels.- const pixel1 = pixelRGBA(imageData, imageWidth, imageHeight, x0, y0);- const pixel2 = pixelRGBA(imageData, imageWidth, imageHeight, x1, y0);- const pixel3 = pixelRGBA(imageData, imageWidth, imageHeight, x0, y1);- const pixel4 = pixelRGBA(imageData, imageWidth, imageHeight, x1, y1);-- const bilinear = (val1: number, val2: number, val3: number, val4: number) =>- Math.round(- val1 * dx1 * dy1 +- val2 * dx * dy1 +- val3 * dx1 * dy +- val4 * dx * dy,- );-- // Return interpolated pixel colors.- return {- r: bilinear(pixel1.r, pixel2.r, pixel3.r, pixel4.r),- g: bilinear(pixel1.g, pixel2.g, pixel3.g, pixel4.g),- b: bilinear(pixel1.b, pixel2.b, pixel3.b, pixel4.b),- };-}-const pixelRGBA = (imageData: Uint8ClampedArray,width: number,diff --git a/web/yarn.lock b/web/yarn.lockindex 17e17639d6..a3485ab6ec 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -4379,11 +4379,6 @@ tr46@~0.0.3:resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==-transformation-matrix@^2.16:- version "2.16.1"- resolved "https://registry.yarnpkg.com/transformation-matrix/-/transformation-matrix-2.16.1.tgz#4a2de06331b94ae953193d1b9a5ba002ec5f658a"- integrity sha512-tdtC3wxVEuzU7X/ydL131Q3JU5cPMEn37oqVLITjRDSDsnSHVFzW2JiCLfZLIQEgWzZHdSy3J6bZzvKEN24jGA==-tree-kill@^1.2.2:version "1.2.2"resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"