{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/79Av0wURiwEKG5LZot3E/t9y1cg78o72YaSZyIMIp/nWZy3UnCE.js"],
  "sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { addPropertyControls, ControlType, Link } from \"framer\";\nimport * as React from \"react\"; /**\n                                * @framerRecordIdKey id\n                                * @framerSlug Tu_Pd0zTZ\n                                * @framerData\n                                */\nconst data = [{\n  DD39DBmBH: 'var(--token-bd377b4b-bd02-4975-a6e5-f4242e212fba, rgb(78, 204, 207)) /* {\"name\":\"Green\"} */',\n  EZue1CzWP: \"2022-12-31T00:00:00.000Z\",\n  id: \"F1_yRNKWp\",\n  ivFLyaMNq: \"In this article we share topics, techniques, and resources that had the greatest impact on our work during the year.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/tCWCL57WPYRcvW9eheSCI4tHM.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/tCWCL57WPYRcvW9eheSCI4tHM.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/tCWCL57WPYRcvW9eheSCI4tHM.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/tCWCL57WPYRcvW9eheSCI4tHM.png\").href} 2000w`\n  },\n  oblsMPwoB: true,\n  PPeTwl1b8: \"Yearly review\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [\"It's already been a year since \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"our last update on our top learnings from 2021\"\n        })\n      }), \", and a lot has happened in the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" field since then. 2022 has seen even more exciting advancements and breakthroughs, and at Pento, we've had the opportunity to put many of these to use in our projects.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In this article, we'll share the techniques, topics, and resources that have impacted our work this year. We'll delve into the latest applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"diffusers in computer vision\"\n      }), \", discuss techniques for improving \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection models\"\n      }), \", and share the latest progress in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"deep metric learning\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"As always, this is by no means an exhaustive list of all the trends and developments in the field, but we hope it will serve as a useful guide for those looking to stay up-to-date on the latest in machine learning. If you have any questions or comments, don't hesitate to reach out!\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Latent Space Diffusion\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"Image created with MidJourney\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,hxkOn8oSMDWBJNGwmygO3hnwZI.png\",\n      \"data-framer-height\": \"1310\",\n      \"data-framer-width\": \"1616\",\n      height: \"655\",\n      src: new URL(\"https://framerusercontent.com/images/hxkOn8oSMDWBJNGwmygO3hnwZI.png\").href,\n      style: {\n        aspectRatio: \"1616 / 1310\"\n      },\n      width: \"808\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This is by far the hottest topic in machine learning of 2022. You cannot talk about AI progress this past year without mentioning \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Latent Space Diffusion\"\n      }), \". But where did it come from, and what did the big breakthrough entail? Well, let\u2019s take a look.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Diffusion actually appeared back in 2015 (I can\u2019t believe this is thought of as \u201Cold\u201D), but most people just heard of it. The main idea is that images are blurred with Gaussian noise, and the model learns how to denoise those images, thus, learning how to reverse the diffusion process. Basically, the model consisted of a sequence of autoencoders. So, what happened in 2022 that revolutionized the industry?\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Latent Space Diffusion has a more sophisticated process, and it\u2019s composed of three parts:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"16px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 35, 40)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Text Encoder\"\n          }), \": It converts the input into embeddings. The Stable Diffusion model that was initially released used ClipText. The paper mentioned Bert and Stable Diffusion uses OpenClip. So, Transformer text models can vary, but the bigger the model, the better quality that is obtained from the image generation.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Denoising UNet + Scheduler\"\n          }), \": It takes the noise tensor or embedding and outputs an array containing information. How? Well, the UNet takes noisy, compressed images (latent) as inputs and adds the noise and embeddings in the attention layers between the ResNet blocks. By doing this, the information is merged into the latent.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Autoencoder\u2019s decoder\"\n          }), \": This part is tricky to put down to earth, but we\u2019ll do our best to keep it simple. The autoencoder\u2019s encoder is in charge of converting the input image into a lower dimensional space. This learned process can be reversed to turn noise into an image. That's it! That\u2019s how the autoencoder\u2019s decoder is capable of generating quality images.\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Back in January 2021, when OpenAI released DALL-E we could tell something huge was coming. Then \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://openai.com/dall-e-2/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"DALL-E 2\"\n        })\n      }), \" appeared in April 2022, and everyone went crazy with its amazing results, but being open source and running it on a \u201Cnormal\u201D GPU made \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Stable Diffusion\"\n      }), \" the hottest topic of 2022.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Latent Stable Diffusion allowed anyone with access to a GPU with at least 10GB of memory to play with its features: text-to-image and image modification. And the capabilities go as far as your mind \u2014 from illustrations for a children\u2019s book to combining great painters' masterpieces.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We played around with this technology to create \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://songdle.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Songdle\"\n        })\n      }), \" and \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pictorial.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Pictorial\"\n        })\n      }), \". Songdle is a game that leverages Stable Diffusion to mimic the iconic Wordle game but with songs. Pictorial allows businesses to create visuals for their site/socials/blog effortlessly by scanning their website content to create personalized prompts describing website illustrations that are fed into an image generation model.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"YOLOv7\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"Image by Yolov7 authors\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,26o7WzqInyNqw0b69aPY20uWeOU.png?preferredSize=full\",\n      \"data-framer-height\": \"320\",\n      \"data-framer-width\": \"640\",\n      height: \"160\",\n      src: new URL(\"https://framerusercontent.com/images/26o7WzqInyNqw0b69aPY20uWeOU.png\").href,\n      style: {\n        aspectRatio: \"640 / 320\"\n      },\n      width: \"320\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Object detection is a Computer Vision problem that aims to determine which objects are present in an image and where they are. The research on this topic started decades ago, with classic Computer Vision techniques, and had a huge breakthrough when \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"FasterRCNN\"\n      }), \" appeared in 2015. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLO\"\n      }), \" architecture also appeared around that time. It wasn\u2019t until a few years back that \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLOV3\"\n      }), \" and then \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLOv5\"\n      }), \" became popular for object detection challenges. In 2022, different enhancements have been made over the years, with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLOv7\"\n      }), \" appearing this year to challenge YOLOv5\u2019s object detection throne.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, let\u2019s dig into what makes the YOLO family so special. Until YOLO, deep learning object detection models worked in two steps: proposing a bounding box first and then determining whether there was an object in that bounding box and which one it was. To speed up the inference time, YOLO appeared with a single-step logic, where the image was divided into a grid, and predictions were made on each grid box. Then they were filtered using a non-maximal suppression algorithm.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In the following years, many enhancements were made, leading to YOLOv5. By introducing anchor boxes, bottleneck CSP, and mosaic augmentation, they became one of the industry's most widely used object detection algorithms. Also, unlike previous versions, it is a Python open-source model, which meant it was easily deployed into production. But the improvements didn\u2019t stop there. In 2022, YOLOv7 appeared to push the boundaries of object detection even more.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"YOLOv7 is the current state-of-the-art in object detection, maintaining similar inference speeds to YOLOv5. But what distinguishes it from its predecessor? Well, let\u2019s go through each key aspect:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"16px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 35, 40)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Model scaling\"\n          }), \": YOLO models already came in families, varying the networks\u2019 depth and width to achieve different results, but YOLOv7 took this to the next level by also concatenating layers together. By doing this, they managed to scale the model while maintaining an optimal model architecture.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Re-parametrization\"\n          }), \": Some modules of the layer are re-parameterized to average the model weights and create a more robust model. But not all modules can be re-parameterized. YOLOv7 manages to re-parametrize plain convolutional and ResNet modules.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Auxiliary head\"\n          }), \": Usually, models have a bunch of layers and finish with a head that finishes the work by outputting the desired result. In YOLOv7, they added an auxiliary head before the end of the network and determined that a coarse-to-fine with different levels of supervision improved the model's performance.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Bag-of-freebies\"\n          }), \": This idea is not new to the YOLO family, having appeared already in YOLOv4. Training strategies are applied to improve the model's performance without increasing inference times: data augmentation, semantic distribution bias in the datasets, and objective function of bounding box regression.\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This way, the authors of YOLOv7 created more complex models requiring longer training time but having similar inference times than comparable models like YOLOv5. It is particularly interesting that with the years, deep learning has not only evolved due to new architectures but also because of the preprocessing that is done to the data, the augmentations a key aspect for training a robust Machine Learning model.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Deep Metric Learning\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,SVChN8uwYVPq6dIEfQ7QVgqqU.png\",\n      \"data-framer-height\": \"400\",\n      \"data-framer-width\": \"1242\",\n      height: \"200\",\n      src: new URL(\"https://framerusercontent.com/images/SVChN8uwYVPq6dIEfQ7QVgqqU.png\").href,\n      style: {\n        aspectRatio: \"1242 / 400\"\n      },\n      width: \"621\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Deep Metric Learning (DML)\"\n      }), \" is a recurrent research topic at Pento, as it is applied to tackling different types of challenges. \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#metric_learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Last year we reviewed\"\n        })\n      }), \" a couple of learnings on leveraging global information to build better embeddings using DML. We also share wrote some articles on how to get started with \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/pytorch-metric-learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"DML using the popular library Pytorch Metric Learning\"\n        })\n      }), \". This year we will review two ideas, one that directly impacted our results and another that will greatly impact and define the direction of future research.\"]\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Integrating Language Guidance into Vision-based Deep Metric Learning\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2203.08543\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"This paper\"\n        })\n      }), \" proposes a framework to harness the power of Large Language Models (LLMs) to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"incorporate language high-level semantics\"\n      }), \" into the embedding generation using the DML approach. Usually, supervised DML uses class labels and contrastive objectives to build embeddings. These approaches fail to capture the high-level language semantics between classes that contain much information useful to understand the relationship between images.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The increasing capabilities of LLMs will facilitate significant advancements in vision models. This will be a prominent area of focus in 2023, resulting in many innovative developments.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The authors propose two approaches:\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Expert Language Guidance (ELG)\"\n      }), \" This approach is used to better align visual representations with language semantics. This is done by using large pre-trained language models (such as CLIP, BERT, or RoBERTa) to map an input sentence to generate language embeddings. These sentences represent the ground truth class labels. Then the respective similarity matrixes are created and compared using KL-Divergence matching. The matrixes are then adapted to ensure intraclass resolution.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Language Guidance without extra supervision\"\n      }), \" It uses the pretrained backbone and classifier head of the ImageNet dataset to produce softmax outputs that correspond to all ImageNet classes. These outputs are then averaged for each class. The top-k ImageNet pseudo-class names are then selected to represent the image. The language network is then used over the pseudo labels to provide approximate semantic context. This can be done sample-by-sample to capture the semantic differences between images of the same class. Ultimately, this helps the algorithm align image representations to the multiple class concepts related to the image.\"]\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Hyperbolic Vision Transformers: Combining Improvements in Metric Learning\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Another approach we researched to get better embeddings is \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2203.10833\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"hyperbolic vision transformers\"\n        })\n      }), \". Yes, we know that this part initially sounds like a bunch of fancy words, but we swear we\u2019ll do our best to bring it back to the real world. There are three keys to understanding what goes on here: the architecture, the embedding space, and the loss. Let\u2019s break down each of them.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vision transformers\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2010.11929\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"em\", {\n            children: \"https://arxiv.org/abs/2010.11929\"\n          })\n        })\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This is how the embeddings are formed initially. This is turning the image into 16x16 patches, flattening, projecting into an embedding, concatenating, a token is added for the associated class, and, finally, this is passed through the encoder of the transformer to obtain an embedding. In a few words, vision transformers are used to transform the image into an embedding.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Hyperbolic embeddings\"\n      }), \" This concept might feel more abstract to many people, but again, we\u2019ll do put best. There are different types of spaces. The \u201Cnormal\u201D one is Euclidean space. But it is not the only one.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We are referring to the hyperbolic space projected over a Poincar\\xe9 ball. Let\u2019s imagine a plain 3D ball to understand some concepts versus a cube for euclidean spaces. When you increase the volume, the ball scales exponentially with the radius, while the cube does so polynomially with the side. An analog concept happens with trees. So, we can imagine that data can be embedded hierarchically with lower dimensions in a hyperbolic embedding space.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Ok, that one was tough, but as long as we got the idea that it allows us to have more efficiently distributed embeddings, we will be fine.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Pairwise cross-entropy loss\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This part is quite straightforward. The pairwise cross-entropy loss has one key characteristic that makes it ideal for this kind of job: since it is computed by comparing one pair of data points, it means that it operates directly on the embeddings. Unlike other losses that operate over a subset of data altogether, the pairwise cross-entropy loss performs better when dealing with data points with subtle differences.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"These three techniques work together to be used with low supervision, which is usually a big deal on machine learning projects.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Our predictions for 2023\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We expect further progress in diffusion models, getting better results and performance. But \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"our bet for 2023 is on combining language and vision\"\n      }), \". We have already seen how it could be applied to boost existing topics such as Detic in object detection and Language guidance in DML (described above).\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"computer-vision-2022\",\n  YSKHrdVc1: \"Our top learnings from Computer Vision 2022\"\n}, {\n  DD39DBmBH: 'var(--token-4741f72e-3b36-49cf-851b-1e44fa9a054a, rgb(245, 102, 135)) /* {\"name\":\"Red\"} */',\n  EZue1CzWP: \"2022-12-22T00:00:00.000Z\",\n  id: \"z3Xy8f1nD\",\n  ivFLyaMNq: \"Build a unique experience by mixing and matching components.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/R8brEOdCzZcvYa5agp7kr7ZsKXU.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/R8brEOdCzZcvYa5agp7kr7ZsKXU.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/R8brEOdCzZcvYa5agp7kr7ZsKXU.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/R8brEOdCzZcvYa5agp7kr7ZsKXU.png\").href} 2000w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"AI in business\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision\"\n      }), \" is a rapidly growing field transforming how businesses interact with technology. In recent years, advances in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" have enabled the development of new applications in a wide range of industries. This is the case with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In this blog post, we will explore how computer vision is being used to improve \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"online marketplaces\"\n      }), \", including product search, content moderation, inventory management, and more.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"By leveraging the power of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \", these applications can help to improve the accuracy, efficiency, and user experience of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce marketplaces\"\n      }), \", making them more scalable, profitable, and successful.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"1. Improved Search\"\n    }), /*#__PURE__*/_jsx(\"video\", {\n      autoPlay: true,\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,bPPXIm0Dl335INmK48kIYmtCuuU.mp4\",\n      loop: true,\n      muted: true,\n      playsInline: true,\n      src: new URL(\"https://framerusercontent.com/modules/assets/bPPXIm0Dl335INmK48kIYmtCuuU~BR2n18Hw2loa2sorZaeUDvT6pzPmuEBTkYZCwtKRk8Q.mp4\").href\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision\"\n      }), \" is a key technology that can improve the accuracy and efficiency of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"product searches\"\n      }), \" on an \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce platform\"\n      }), \". In particular, computer vision algorithms can be used to automatically analyze product images and extract relevant visual features, such as color, shape, and texture.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"These features can then be used as indices for the products on the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"marketplace\"\n      }), \", allowing for more accurate and relevant search results.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To implement this functionality, an e-commerce store must train a computer vision model on a large dataset of labeled product images. The model would be trained to recognize and extract the relevant visual features.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This training process typically involves using a supervised learning algorithm, where the model is provided with labeled examples of product images and the corresponding visual features that should be extracted.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Once the model has been trained, it can be applied to new, unseen product images to extract the relevant visual features. This can be done by feeding the product images into the model and processing the output to generate a set of visual features for each product.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"These visual features can then be used to index and categorize the products on the marketplace, allowing for more accurate, relevant search results and maximizing user engagement and conversions.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"2. E-commerce content moderation through computer vision\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Content moderation is the process of reviewing and filtering user-generated content on an \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce platform\"\n      }), \" to ensure that it is appropriate and complies with the platform's policies. This is a crucial task for e-commerce operators, as inappropriate or spammy content can harm both buyers and sellers and damage the marketplace's reputation.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision\"\n      }), \" can be used to automatically detect any sensitive or personal information in user-generated content, such as phone numbers or email addresses. This can help protect users' privacy and prevent the misuse of their personal information.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Furthermore, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" can also be used to improve the overall efficiency of content moderation on a marketplace platform. By automatically analyzing and flagging potentially inappropriate content, computer vision algorithms can help reduce human moderators' workload and allow them to focus on the most difficult or complex cases.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"3. Inventory management\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ZCOWdguWBEYLmhtueyDDkMsYgQ.png\",\n      \"data-framer-height\": \"426\",\n      \"data-framer-width\": \"500\",\n      height: \"213\",\n      src: new URL(\"https://framerusercontent.com/images/ZCOWdguWBEYLmhtueyDDkMsYgQ.png\").href,\n      style: {\n        aspectRatio: \"500 / 426\"\n      },\n      width: \"250\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Another way to implement \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision in e-commerce\"\n      }), \" is through Inventory management. It is the process of tracking and managing the stock of products on an e-commerce platform. Accurate and efficient inventory management is crucial for the success of a marketplace, as it ensures that products are available when users want to purchase them and prevents overstocking or stockouts.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision algorithms\"\n      }), \" can be used to automatically analyze product images and extract information that is relevant for inventory management. For example, computer vision algorithms can be trained to recognize and classify products based on their size, shape, and color, allowing for more accurate inventory tracking.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Additionally, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" can be used to automatically identify any defects or damage in products, allowing for efficient and timely removal of these products from the inventory.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"4. E-commerce Image retouching\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,dzl4350mHsjHY4yBJvqor8ETtc.png\",\n      \"data-framer-height\": \"547\",\n      \"data-framer-width\": \"790\",\n      height: \"273\",\n      src: new URL(\"https://framerusercontent.com/images/dzl4350mHsjHY4yBJvqor8ETtc.png\").href,\n      style: {\n        aspectRatio: \"790 / 547\"\n      },\n      width: \"395\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Image retouching is a process that involves enhancing the appearance of an image to make it more visually appealing. In the world of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"online commerce\"\n      }), \", image retouching can be a valuable tool for improving the user experience and increasing conversions. Computer vision is a key technology that enables this process.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Computer vision algorithms are used in image retouching to automatically analyze and interpret an image's content. These algorithms can be trained to recognize specific features in an image, such as blemishes, wrinkles, or other imperfections. Once these features have been identified, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision algorithms can be used to automatically apply retouching techniques to the image to improve its appearance\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Additionally, computer vision is used in image retouching to improve the consistency and standardization of product images across a marketplace platform. An \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce marketplace\"\n      }), \" can create a cohesive and professional-looking visual brand by applying the same retouching techniques to all product images. Computer vision algorithms can be used to automatically detect and correct any inconsistencies in the retouching process, ensuring that all product images are retouched to the same high standards.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"5. Virtual try on\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,KcJveeE9DoQG1NP9uC9IEkTQqU.png\",\n      \"data-framer-height\": \"630\",\n      \"data-framer-width\": \"1200\",\n      height: \"315\",\n      src: new URL(\"https://framerusercontent.com/images/KcJveeE9DoQG1NP9uC9IEkTQqU.png\").href,\n      style: {\n        aspectRatio: \"1200 / 630\"\n      },\n      width: \"600\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"One of the most flashy applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision in e-commerce\"\n      }), \" is Virtual try-on. It is a technology that allows users to try on virtual versions of clothing and accessories to see how they would look. In the world of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"online stores and marketplaces\"\n      }), \", virtual try-on can be a valuable tool for increasing conversions and improving the user experience. And computer vision plays a key role in enabling this technology.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Computer vision is used in virtual try-on technology in several ways. First, it analyzes images of the user's body to create a virtual 3D model. This model accurately simulates the appearance of clothing and accessories on the user's body. Computer vision algorithms also track the user's movements and update the virtual try-on experience in real-time.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Additionally, computer vision is used to enhance the quality of the virtual try-on experience. For example, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision algorithms\"\n      }), \" can remove noise or other imperfections from the input images and improve the lighting and contrast in the virtual try-on environment. This can make the virtual try-on experience more realistic and enjoyable for users.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Conclusion\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In conclusion, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" is a valuable technology for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"e-commerce and online marketplaces\"\n      }), \". It can improve the accuracy, efficiency, and user experience of various tasks, including product search, content moderation, inventory management, and more.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"If you are interested in developing custom computer vision solutions for your e-commerce or marketplace, our team of experts can help. Contact us to learn more about how we can help you improve your e-commerce and online marketplace operations.\"\n    })]\n  }),\n  Tu_Pd0zTZ: \"computer-vision-ecommerce\",\n  YSKHrdVc1: \"Computer Vision in e-commerce: 5 ways it is transforming online shopping\"\n}, {\n  DD39DBmBH: 'var(--token-2e606580-c5cb-45c2-a66e-07cb8dbe5a38, rgb(11, 83, 245)) /* {\"name\":\"Purple\"} */',\n  EZue1CzWP: \"2022-10-25T00:00:00.000Z\",\n  id: \"whd8qEh1E\",\n  ivFLyaMNq: \"Welcome, Vectory: How to handle embedding experiments faster and smarter\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/ixZ1bx0HgngOAkRxXZJYiP7wMw.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/ixZ1bx0HgngOAkRxXZJYiP7wMw.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/ixZ1bx0HgngOAkRxXZJYiP7wMw.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/ixZ1bx0HgngOAkRxXZJYiP7wMw.png?scale-down-to=2048\").href} 2048w, ${new URL(\"https://framerusercontent.com/images/ixZ1bx0HgngOAkRxXZJYiP7wMw.png\").href} 2400w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Machine Learning\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Handling embeddings\"\n      }), \" is something every \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"machine learning engineer\"\n      }), \" who has worked on \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" or \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"natural language processing\"\n      }), \" has done.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you are one of them, the following observations won\u2019t come as a surprise, and we are sorry to bring these memories back. If you are yet to work with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \", consider yourself lucky, and use this as a warning of what lies ahead.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"During experimentation, it\u2019s easy to get lost in how datasets were built, what models were used, and what the results were; tracking is messy. Once you have a good result, you need to start iterating, tuning, and refining until you get a better version.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"But, how can you be sure an \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding\"\n      }), \" is better than another one? If you are lucky, you can use metadata such as classes and tags, then search for the nearest neighbors and check whether they share the same class or tag.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Unfortunately, even in these cases, the computations required are expensive and complex to implement. If you were to build visualizations and more sophisticated comparison techniques to get a robust evaluation, this investment would become far more significant.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Pento\"\n        })\n      }), \", we had to deal with challenges like these repeatedly. After a while, we got the hang of it and decided to encapsulate our tools in a single place. That is how \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" was born, and we have been using it internally for a while now.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As we got new challenges, we were able to iterate it and expand its functionalities. There is still a lot of room for improvement and new features. Still, it is important for us to make it accessible to everyone and hopefully make the process of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"working with embeddings\"\n      }), \" less tedious.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Working with Vectory you will be able to:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"16px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 35, 40)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Track embedding spaces\"\n          }), \", as well as all the datasets and experiments associated\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Compare any two embedding spaces\"\n          }), \" of your choice using quantitative and qualitative methods.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Visualize embeddings\"\n          }), \" to observe clusters and outliers, and get a better sense of data.\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" is a tool made for and by \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"machine learning engineers\"\n      }), \" who want a light and easy way to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"track and compare embeddings. Let\u2019s go over what makes Vectory, Vectory:\"\n      })]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"16px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 35, 40)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Easy:\"\n          }), \" Just load your data and take advantage of its features, including a visualization Streamlit app.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Big dataset? No problem:\"\n          }), \" Vectory uses \", /*#__PURE__*/_jsx(Link, {\n            href: \"https://www.elastic.co/\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Elasticsearch\"\n            })\n          }), \" (a high-performance search engine) to index your embeddings in order to handle large amounts of data.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Fast:\"\n          }), \" Elasticsearch speeds up the computing of the algorithms you need.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Real applications:\"\n          }), \" We actually came up with and created Vectory because we needed it on some of our own projects. Vectory is beneficial not only for tracking and visualization but also for similarity searches, comparing spaces, and so on!\"]\n        })\n      }), /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Robust:\"\n          }), \" it is thoroughly tested, and we aim to support it as much as possible, continuing its development and solving issues as they arise.\"]\n        }), /*#__PURE__*/_jsx(\"p\", {\n          children: /*#__PURE__*/_jsx(\"br\", {\n            className: \"trailing-break\"\n          })\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"How to use Vectory\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"First of all, these are the three main concepts of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory: datasets, experiments, and embedding spaces\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"16px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 35, 40)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Dataset: A collection of data, used for evaluation or for training purposes.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Experiment: A machine learning model which has been trained with a particular dataset. You can create different experiments by varying the model and the training dataset.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Embedding space: An array with all the generated vectors for a particular dataset using a particular experiment.\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,yzsrCNEFSc1hnT7Ifbj9E2FCod0.png\",\n      \"data-framer-height\": \"1440\",\n      \"data-framer-width\": \"1040\",\n      height: \"720\",\n      src: new URL(\"https://framerusercontent.com/images/yzsrCNEFSc1hnT7Ifbj9E2FCod0.png\").href,\n      style: {\n        aspectRatio: \"1040 / 1440\"\n      },\n      width: \"520\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Vectory Workflow\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For you to get a better understanding of the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" workflow, we will describe a general application of it. For an even better understanding, go to the Use Case section!\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Suppose that from some dataset we generated several \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding spaces\"\n      }), \" with trained \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"machine learning models\"\n      }), \". In fact, some models have the same architecture but are trained with different datasets, and different hyperparameters.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We want to choose the best \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding space\"\n      }), \" for this particular dataset. The best way to do this is by tracking the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding spaces\"\n      }), \", comparing them and finally, choosing the best \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding space\"\n      }), \" for our use case. Here is where Vectory comes in: a fast and easy way to track these \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding spaces\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To track them, we will add everything to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \". Subsequently, we will calculate how similar these \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding spaces\"\n      }), \" are between them, and visualize them to compare them qualitatively.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"After we have already compared them quantitatively and qualitatively, we will choose the one which suits better for our use case. We will be able to track down the model, the training dataset of the model, and the hyperparameters with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Vectory Usage\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now that we got that straight, let\u2019s start to use it:\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"All you need for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" to run is to install the package and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Elasticsearch\"\n      }), \". You can install the package using pip:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ pip install vectory\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Before you load anything: Vectory\"\n      }), \" only accepts dataset in csv format, and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \" saved in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"NumPy arrays\"\n      }), \" as .npy and .npz files.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This is what the tiny-imagenet-200 dataset csv file looks like:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ktSJFrUYrLRHZjeDyq1xh2njCwc.gif\",\n      \"data-framer-height\": \"347\",\n      \"data-framer-width\": \"457\",\n      height: \"173\",\n      src: new URL(\"https://framerusercontent.com/images/ktSJFrUYrLRHZjeDyq1xh2njCwc.gif\").href,\n      style: {\n        aspectRatio: \"457 / 347\"\n      },\n      width: \"228\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The following code snippet will help you to transform a tensor to a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"NumPy array\"\n      }), \":\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import tensorflow as tf\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"a_tensor = tf.constant([[1, 2], [3, 4]])\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"an_array = a_tensor.numpy()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"path = \u201Csome/path\u201D\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"np.save(path, an_array)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now, you can track datasets, experiments and embedding spaces with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \". One line in the terminal will do.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"You only need to specify the dataset\u2019s path and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding\u2019s path\"\n      }), \". However, it is recommended to specify the experiment name and, if you have it, the name of the dataset the model was trained with in order to correctly track your data.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"--load\"\n      }), \" \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" loads the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding space\"\n      }), \" to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Elasticsearch\"\n      }), \" right away.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory add --input [path_to_csv] --embeddings [path_to_npz] \u2013-experiment-name [experiment_name] --train-dataset [train_dataset_name] --load\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"You can list and track everything added to Vectory by running:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory ls\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Here, you can also check all the information regarding the datasets, the experiments, the embedding spaces and the Elasticsearch indices.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To establish which embedding space to use for a particular dataset, it is best to analytically compare the embedding spaces. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" computes the similarity between two embedding spaces of your choice with a variety of metrics, and optionally displays a similarity histogram.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The similarity between two embedding spaces is computed as the mean of the local neighbor similarity of every point, which is the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"IoU\"\n      }), \" of the ten nearest neighbors. This similarity measure is based on \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/pdf/1912.04853.pdf\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"this paper\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At the moment, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" won\u2019t decide which \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embedding\"\n      }), \" is better for your use case, you will have to choose on your own, hopefully using the information \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" provides you.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory compare embedding_space_a embedding_space_b\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"All set, you can \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"visualize the embeddings\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In the console run the visualization with the following command:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory run\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"You have to specify the dataset, the embedding spaces you want to visualize, the parameters for the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"kNN\"\n      }), \" search and the dimension reduction technique for visualization. With this information \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" will plot the two embeddings spaces in two dimensions.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,CV6cobp00YprnrjMY0R3l9yTmr0.gif?originalFilename=tiny1.gif\",\n      \"data-framer-height\": \"815\",\n      \"data-framer-width\": \"1355\",\n      height: \"407\",\n      src: new URL(\"https://framerusercontent.com/images/CV6cobp00YprnrjMY0R3l9yTmr0.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 815\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you scroll down even more, you will find the histogram of the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"IoU\"\n      }), \" of the 10 nearest neighbours of the two embedding spaces.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,Lc7dqOewYAXlZSOazwzKqKykKdw.gif?originalFilename=imdb2.gif\",\n      \"data-framer-height\": \"575\",\n      \"data-framer-width\": \"1355\",\n      height: \"287\",\n      src: new URL(\"https://framerusercontent.com/images/Lc7dqOewYAXlZSOazwzKqKykKdw.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 575\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Select any embedding in one of the plots, and query the 10 nearest neighbours in each embedding space. Also, these 10 nearest neighbours in each embedding space are plotted in red as it shows in the following image.\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,I6Y5IVBK83kIiq8DYtH2XpxvGbM.gif\",\n      \"data-framer-height\": \"662\",\n      \"data-framer-width\": \"1355\",\n      height: \"331\",\n      src: new URL(\"https://framerusercontent.com/images/I6Y5IVBK83kIiq8DYtH2XpxvGbM.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 662\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Use case\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We will walk through an entire use case: finding a great embedding space for the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://paperswithcode.com/dataset/tiny-imagenet\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"tiny-imagenet-200\"\n        })\n      }), \" dataset.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We will analyze an embedding space created with a pretrained \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"resnet50\"\n      }), \" and the other with a pretrained convnext.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Suppose we already installed \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory\"\n      }), \" and set up \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Elasticsearch\"\n      }), \". We will \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"track the embeddings separately\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory add -i /data/tiny-imagenet-200-data.csv --dataset-name tiny_imagenet --experiment-name resnet_exp --train-dataset tiny_imagenet --model-name resnet50 -e data/resnet50_embedding.npy --embedding-name resnet50_embedding\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory add -i /data/tiny-imagenet-200-data.csv --dataset-name tiny_imagenet --experiment-name convnext_exp --train-dataset tiny_imagenet --model-name convnext -e data/convnext_embedding.npy --embedding-name convnext_embedding\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now we will load these embeddings independently to Elasticsearch.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory embeddings load convnext_embedding convnext_embedding --model lsh --similarity euclidean\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory embeddings load resnet50_embedding resnet50_embedding --model lsh --similarity euclidean\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"These two embeddings have been loaded to ElasticSearch. To verify this we can run:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory embeddings list-indices\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"If we want to compare both of these embeddings for posterior use, we run:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory compare resnet50_embedding convnext_embedding\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"resnet50_embedding euclidean convnext_embedding euclidean\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The mean of the Jaccard similarity for each query is 0.00978131983427649\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Since the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"similarity measure\"\n      }), \" goes from 0 to 1, we can conclude both embedding spaces are not similar at all.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To have more insight into the embedding spaces, we will visualize them. This will give us the opportunity to make a qualitative comparison.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory run\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"First, we will determine the parameters of the visualization. In this case we chose for both embeddings the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"lsh model\"\n      }), \" and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"cosine similarity function\"\n      }), \" for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"kNN\"\n      }), \" search, and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"UMAP\"\n      }), \" for dimension reduction.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,CV6cobp00YprnrjMY0R3l9yTmr0.gif\",\n      \"data-framer-height\": \"815\",\n      \"data-framer-width\": \"1355\",\n      height: \"407\",\n      src: new URL(\"https://framerusercontent.com/images/CV6cobp00YprnrjMY0R3l9yTmr0.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 815\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"After we submit this information, the plots of the embedding spaces will appear on screen.\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,DBp5KaEanGsSHmW9wUZ2Z1i8iAg.gif\",\n      \"data-framer-height\": \"815\",\n      \"data-framer-width\": \"1355\",\n      height: \"407\",\n      src: new URL(\"https://framerusercontent.com/images/DBp5KaEanGsSHmW9wUZ2Z1i8iAg.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 815\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Scrolling down, we\u2019ll see a histogram of the similarity of these two embedding spaces.\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,Nq1rEk5DBngOE5GoE6FAVHsSxI8.gif\",\n      \"data-framer-height\": \"580\",\n      \"data-framer-width\": \"1355\",\n      height: \"290\",\n      src: new URL(\"https://framerusercontent.com/images/Nq1rEk5DBngOE5GoE6FAVHsSxI8.gif\").href,\n      style: {\n        aspectRatio: \"1355 / 580\"\n      },\n      width: \"677\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now, we will choose a point in the plot of one of the embedding spaces. A query the 10 nearest neigbours will appear if we scroll all the way down, and also the same two plots with these 10 nearest neighbours colored in red.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This is useful to check on the images that are near to the one chosen in order to understand the backbone of our embedding spaces. To illustrate this, we will check on the images of four of the nearest neighbours.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now we know our embedding space places the embedding of tractor images near each other.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Conclusion\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you need to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"compare embedding spaces\"\n      }), \", if you are struggling with large amounts of data, or if you need to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"track your embedding spaces\"\n      }), \" with the models and the train dataset used to create them, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Vectory is the tool you need\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Pento\"\n        })\n      }), \" we use it all the time, and we just \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"love it\"\n      }), \". Nonetheless, if you\u2019d like us to work on any particular feature, please let us know by creating an issue on GitHub. Install it and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"begin to work smarter around embeddings\"\n      }), \". Feel free to tell us what you think! And of course, if you build something using it, share it with us!\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"vectory\",\n  YSKHrdVc1: \"Welcome, Vectory: Handle embedding experiments faster and smarter\"\n}, {\n  DD39DBmBH: 'var(--token-2e606580-c5cb-45c2-a66e-07cb8dbe5a38, rgb(11, 83, 245)) /* {\"name\":\"Purple\"} */',\n  EZue1CzWP: \"2022-10-05T00:00:00.000Z\",\n  id: \"YvTXWxMIf\",\n  ivFLyaMNq: \"Get familiarized with PyTorch Metric Learning and tackle your Metric Learning problems with ease.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/gvj1EkrrrwTLlEcBdMJjRWiaq8.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/gvj1EkrrrwTLlEcBdMJjRWiaq8.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/gvj1EkrrrwTLlEcBdMJjRWiaq8.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/gvj1EkrrrwTLlEcBdMJjRWiaq8.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Machine Learning\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Generating good \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/embeddings-overview\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"embeddings\"\n        })\n      }), \" is a crucial part of the daily job of many \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ML engineers\"\n      }), \". Despite the fact it is a repetitive task, it is not a basic one. There are many ways to get this done. Today, we\u2019d like to introduce you to a great tool for this purpose: \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Pytorch Metric Learning\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"But before we go deep into a use case, let us make a small review of what this library stands for.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"PyTorch Metric Learning: What is it?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Metric Learning\"\n      }), \" is an interesting and powerful approach to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"generate embeddings\"\n      }), \". This method aims to construct task-specific distance metrics from data using machine learning.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In this way, it aims to solve the problem of grouping elements with similar attributes. This can be applied to different cases such as separating visually similar objects or relating concepts (words) with similar meanings.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"However, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Metric Learning\"\n      }), \" does have a downside: it is a huge and quite complex world. You can go deeper into this world with this \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1812.05944\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"tutorial\"\n        })\n      }), \" or with this great survey on \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://hav4ik.github.io/articles/deep-metric-learning-survey\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Deep Metric Learning\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The key parts in Metric Learning are choosing a neural network architecture to build the embeddings, and a loss function to train it with.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Here is where \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"PyTorch Metric Learning\"\n        })\n      }), \" \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"(PML)\"\n      }), \" comes into the picture. This library encapsulates many algorithms that play an important role in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Metric Learning\"\n      }), \". As its author says on his site, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PML\"\n      }), \" contains 9 modules, each of which can be used independently within your existing codebase or combined for a complete train/test workflow.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"It also includes a few examples to show how to use all of these modules in different scenarios.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In this article, we are going to use \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch Metric Learning\"\n      }), \" to train a model with two different losses which we will compare against each other, taking advantage of many of the cool gadgets the library offers. We\u2019ll discuss these experiments further down the road.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Experimenting with Pytorch Metric Learning\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As we mentioned before, to apply \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"metric learning\"\n      }), \" on a problem we first need to choose a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"dataset\"\n      }), \" to work with, a model architecture to generate the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \" and a loss to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"train and improve those embeddings\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"On this occasion, we chose to work with the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"TinyImageNet dataset\"\n      }), \". Having a significant amount of classes and images, with these last being small in size, we thought this well-known dataset would be a great fit for the scope of the experiments.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ResNet50\"\n      }), \" as the model architecture, we compared the results between \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace loss\"\n      }), \". This choice wasn\u2019t random. Both losses have their pros and cons.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Triplet Loss approach\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" is very popular due to its simplicity and intuitiveness. It is based on three elements: an anchor image, a positive image, and a negative one. The anchor represents a reference. The positive image belongs to the same class as the anchor, and the negative image is from a different class.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Using \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \", the model is trained so that the Euclidean distance between the anchor and positive images decreases, while the distance between the anchor and negatives increases.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"However, it has its defects. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" is indifferent to class variation of the features. It is difficult to guarantee that samples with similar labels are pulled together. Also, choosing useful triplets to train can be quite problematic.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,SVChN8uwYVPq6dIEfQ7QVgqqU.png\",\n      \"data-framer-height\": \"400\",\n      \"data-framer-width\": \"1242\",\n      height: \"200\",\n      src: new URL(\"https://framerusercontent.com/images/SVChN8uwYVPq6dIEfQ7QVgqqU.png\").href,\n      style: {\n        aspectRatio: \"1242 / 400\"\n      },\n      width: \"621\"\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"ArcFace approach\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace\"\n      }), \" has a different approach and was developed more recently. It derives from other losses, such as \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"SphereFace\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"CosFace\"\n      }), \", both of which are built from \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Softmax loss\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"These losses take care of intraclass similarity and interclass diversity in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \". They distribute \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \" on a hypersphere, giving them a geometrical interpretation. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace\"\n      }), \" adds an angular margin penalty in its structure to go one step further on the benefits these losses have to offer.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The distance between embeddings of the same class is smaller, whilst embeddings of different classes fall further apart.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"You can check out a complete explanation of how this loss is built \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.kaggle.com/code/josealways123/understanding-arcface-and-adacos\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"here\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ghGWcJofVSry22grQ1A0kzWlM8.png\",\n      \"data-framer-height\": \"400\",\n      \"data-framer-width\": \"1242\",\n      height: \"200\",\n      src: new URL(\"https://framerusercontent.com/images/ghGWcJofVSry22grQ1A0kzWlM8.png\").href,\n      style: {\n        aspectRatio: \"1242 / 400\"\n      },\n      width: \"621\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace\"\n      }), \" proved to perform better than \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"SphereFace\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"CosFace\"\n      }), \", and contrastive approaches such as \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet Loss\"\n      }), \". However, it is not as intuitive as other loss functions, with which you can also achieve good results.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch Metric Learning\"\n      }), \" is an excellent fit to carry out the experiments needed to compare these two losses.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We\u2019ll mention the parts of the library we used along the way but won\u2019t get into details due to the fact they are all very well explained in the library\u2019s documentation. In this way, with all the corresponding references you can easily replicate the process.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Triplet Loss vs ArcFace: Hands-On\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We worked on a whole train/test workflow, based on the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/KevinMusgrave/pytorch-metric-learning/blob/master/examples/notebooks/MetricLossOnly.ipynb\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"example\"\n        })\n      }), \" given on the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/trainers/#metriclossonly\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"MetricLossOnly\"\n        })\n      }), \" \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"trainer\"\n      }), \". Here, we defined our \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"dataset\"\n      }), \" and initialized the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ResNet\"\n      }), \" and a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Fully Connected Layer\"\n      }), \" to decrease the embeddings\u2019 dimension, in this case, to 512.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Keep in mind that we are using a different \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"dataset\"\n      }), \" than the one presented in the example. You can download the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"TinyImageNet dataset\"\n      }), \" by clicking on this \", /*#__PURE__*/_jsx(Link, {\n        href: \"http://cs231n.stanford.edu/tiny-imagenet-200.zip\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"link\"\n        })\n      }), \", and get the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"code\"\n      }), \" to load the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"dataset\"\n      }), \" from our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pentoai/pytorch-metric-learning-blog-post\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"public repository\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We also initialized the losses, which are already built in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch Metric Learning\"\n      }), \". The library has lots of tools that come in very handy. One of them is the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"miner\"\n      }), \". It does the dirty work of picking data points to train the model.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For instance, it solves the problem of distinguishing \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"anchor, positive and negative triplets\"\n      }), \" to feed the model when using \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In this case, we used the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/miners/#multisimilarityminer\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"MultiSimilarityMiner\"\n          })\n        })\n      }), \". For this experiment, we used the parameters\u2019 default values and picked out \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pytorch.org/docs/stable/generated/torch.optim.Adam.html#torch.optim.Adam\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"Adam optimizers\"\n          })\n        })\n      }), \" and \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/samplers/#mperclasssampler\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"MPerClassSampler\"\n          })\n        })\n      }), \", which were recommended in the example.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"However, in a real scenario, we suggest you try out the different optimizers and samplers. They can be easily swapped and may lead you to better results. Also, the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/testers/#globalembeddingspacetester\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"GlobalEmbeddingSpaceTester\"\n          })\n        })\n      }), \" is an excellent tool to use in these cases. It takes care of accuracy calculation, embedding plots, and saving of models and checkpoints. Being integrated with Tensorboard, it makes monitoring the training progress really simple.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Results\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"em\", {\n        children: \"We trained the model twice, one with each loss, for 150 epochs, on a 2080ti GPU. The dataset was composed of 100.000 images, which we divided into batches of 64.\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Each training took approximately 3 hours and 50 minutes. The results we obtained were quite interesting.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To analyze them, we measured the accuracies provided by the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/accuracy_calculation/#accuracy-calculation\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"AccuracyCalculator\"\n          })\n        })\n      }), ', with the parameter k in \"max_bin_count\". The default accuracies the library offers are the following:']\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Adjusted Mutual Information (AMI)\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Normalized Mutual Information (NMI)\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Mean Average Precision\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Mean Average Precision at R\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Mean Reciprocal Rank\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Precision at 1\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"R precision\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch Metric Learning\"\n      }), \" provides documentation links to understand each one in the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/accuracy_calculation/#explanations-of-the-default-accuracy-metrics\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"utils section\"\n        })\n      }), \" of its documentation. One could also implement custom accuracies in the workflow.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"On one hand, the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" scored better in both accuracies regarding mutual information (\", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AMI\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"NMI\"\n      }), \"). This means the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \" obtained from \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" give a better measure of the similarity between two clusters. Check out the graphs we obtained with the help of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PML\"\n      }), \":\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,wE1UYh7ylTcGinWONMCE28dOe6w.png?preferredSize=full\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/wE1UYh7ylTcGinWONMCE28dOe6w.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,7G82fQPnBNuPhbcG7GoGnIKL5g.png?preferredSize=full\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/7G82fQPnBNuPhbcG7GoGnIKL5g.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"On the other hand, precision metrics were better in the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace\"\n      }), \" results. This makes sense with the theoretical framework we\u2019ve seen before, where \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace\"\n      }), \" is a newer loss with better results than \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \". Once again, we have the results plotted on \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Tensorboard\"\n      }), \" thanks to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PML\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,YxMVsjtf9f3XrfmmX1LaEE1WOpc.png?preferredSize=large\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/YxMVsjtf9f3XrfmmX1LaEE1WOpc.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,UT8JMWcPBEShu6XwBezWneUKiSo.png?preferredSize=large\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/UT8JMWcPBEShu6XwBezWneUKiSo.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,9CD9ykm628uPZeQ6TQ5sauQIa4.png?preferredSize=large\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/9CD9ykm628uPZeQ6TQ5sauQIa4.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,LSfXzcYHca3jewXniRvlL6vc3M.png?preferredSize=large\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/LSfXzcYHca3jewXniRvlL6vc3M.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,VB2hN5QPAL496BO4Dixow1MZKM.png?preferredSize=large\",\n      \"data-framer-height\": \"345\",\n      \"data-framer-width\": \"460\",\n      height: \"172\",\n      src: new URL(\"https://framerusercontent.com/images/VB2hN5QPAL496BO4Dixow1MZKM.png\").href,\n      style: {\n        aspectRatio: \"460 / 345\"\n      },\n      width: \"230\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As you can see, using \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch Metric Learning\"\n      }), \" is very easy. In just a few steps we were able to train a model twice and get quick insights of their results.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In addition, the implementation of the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://kevinmusgrave.github.io/pytorch-metric-learning/logging_presets/#hookcontainer\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"end_of_epoch_hook\"\n          })\n        })\n      }), \" in our tester allows us to see the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\u2019 plots\"\n      }), \" as we \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"train our model\"\n      }), \". We could go on investigating all the gadgets the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"library\"\n      }), \" has to offer, but we\u2019ll leave some of the fun for you.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"In conclusion\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We hope this example serves you as a first step into the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Metric Learning\"\n      }), \" world, understanding and comparing two very different losses. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Pytorch Metric Learning\"\n      }), \" helped us experiment with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Triplet loss\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"ArcFace loss\"\n      }), \" in a very friendly way.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Whenever you face your next \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"similarity challenge\"\n      }), \", don\u2019t hesitate in using this \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"library\"\n      }), \". \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PML\"\n      }), \" makes \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Metric Learning\"\n      }), \" more accessible, with great modules that have many practitioners\u2019 nightmares already sorted out.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you liked this article, check out the other entries on our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"blog\"\n        })\n      }), \"!\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"pytorch-metric-learning\",\n  YSKHrdVc1: \"PyTorch Metric Learning: An opinionated review\"\n}, {\n  DD39DBmBH: 'var(--token-2e606580-c5cb-45c2-a66e-07cb8dbe5a38, rgb(11, 83, 245)) /* {\"name\":\"Purple\"} */',\n  EZue1CzWP: \"2022-09-01T00:00:00.000Z\",\n  id: \"JMoO9uPhs\",\n  ivFLyaMNq: \"Pytorch metric learning, Part II: Analyzing embeddings with Vectory\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/E7wQhhJsf6scrDM0klz97Lnda38.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/E7wQhhJsf6scrDM0klz97Lnda38.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/E7wQhhJsf6scrDM0klz97Lnda38.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/E7wQhhJsf6scrDM0klz97Lnda38.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Machine Learning\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Hi there! \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/pytorch-metric-learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"In Pytorch Metric Learning: An opinated review\"\n        })\n      }), \", we introduced ourselves to the world of Python Metric Learning (PML) and experimented on training with two different losses: Triplet Loss and ArcFace Loss. Here, we go one step further and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"evaluate\"\n      }), \" the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \" that are generated from PML models with our latest Open-Source Software: Vectory. If you didn\u2019t follow the previous tutorial, don\u2019t worry! You can download all the files you need clicking here.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Vectory\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"em\", {\n        children: \"Feel free to skip this part if you are already familiar with Vectory.\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Vectory is a library that was designed by Pento\u2019s ML Engineers to track and compare embeddings. Projects that require working with embeddings also require training models over several datasets testing different models to obtain the best results for each specific case. When the number of different experiments starts to grow, mistakes or time inefficiencies start to appear. Here is where the tracking functionalities of Vectory come in handy.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In addition, it is not always easy to compare two embeddings spaces to know which one is a better fit for your problem, especially if you are working with unlabeled data. That's why Vectory includes its own embeddings space analyzer, a tool that can compare both labeled and unlabeled data easily.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you haven't gotten to know Vectory yet, you can read \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/vectory\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"this blog\"\n        })\n      }), \" for an overall idea of how it works. However, to follow this blog, just follow the steps mentioned in the tool\u2019s \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pentoai/vectory#installation\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"README file\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Recap\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Let's recap a little. In \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/pytorch-metric-learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"PyTorch Metric Learning: An opinionated review\"\n        })\n      }), \", we finetuned a ResNet50 twice, once with Triplet Loss and then with ArcFace loss, both times with the train dataset of Tiny ImageNet. We analyzed the results with the tools PML provided. Now, we are going to compare the embeddings obtained with each model in the validation dataset of Tiny ImageNet, using Vectory.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"First, we have to register our dataset, both experiments, and both resulting embedding spaces. Fortunately, we can do this with a single CLI command:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"$ vectory add -e [path/to/triplet.npz] -d [path/to/tinyimagenet.csv] --dataset-name tiny_imagenet_val --experiment-name triplet_loss_v1.0 --model-name triplet_loss_resnet --embedding-space-name triplet_loss_v1.0 --id-field image_id\", /*#__PURE__*/_jsx(\"br\", {}), \"$ vectory add -e [path/to/arcface.npz] --dataset-name tiny_imagenet_val --experiment-name arcface_loss_v1.0 --model-name arcface_resnet --embedding-space-name arcface_loss_v1.0 --id-field image_id\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We can check if everything is loaded:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory ls\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Once we have loaded our embedding space, we have to create an index in order to run queries over this space. In the background, Vectory is loading the embeddings into \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.elastic.co/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ElasticSearch\"\n        })\n      }), \", using the column \u201Cimage_id\u201D from the csv as the key. However, you don\u2019t have to worry about using ElasticSearch, Vectory will take care of it.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We can load our indices with the following command:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"$ vectory embeddings load triplet_loss_v1.0_lsh_cosine triplet_loss_v1.0\", /*#__PURE__*/_jsx(\"br\", {}), \"$ vectory embeddings load arcface_loss_v1.0_lsh_cosine arcface_loss_v1.0\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Here we are creating two indices using the default values of \u201Cmodel\u201D and \u201Csimilarity\u201D, which are lsh and cosine. However, you can try loading more indices with different similarities and compare the results.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Before we continue to compare both spaces, it\u2019s important to know that all these commands are also available through \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pentoai/vectory#python-api\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Vectory\u2019s API\"\n        })\n      }), \". Moreover, we could also add this API into our training pipeline in order to automatically load experiments into Vectory and evaluate the results faster.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Basic comparison\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"After loading everything into ElasticSearch and before visualizing both spaces, we should \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pentoai/vectory#comparing-embedding-spaces\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"calculate the similarity between the spaces\"\n        })\n      }), \". This is one of Vectory\u2019s main features because it gives you a metric to know how similar two embeddings spaces of the same dataset are, even for unlabeled data. It works in this way:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This calculation computes the ten nearest neighbors for every data point for both embedding spaces, gets the IoU for each group of neighbors obtained, and shows the distribution of the IoU values. It also calculates the mean of the IoUs to generate the Similarity number.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, if we run the next command:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory compare arcface_loss_v1.0 triplet_loss_v1.0 --precompute -ma cosine -mb cosine\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We should see the next output:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"code\", {\n        children: \"The mean of the Jaccard similarity for each query is 0.2261433099923812\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Which means the similarity between both spaces is 22.6 %. This means the spaces are different, which is what we were expecting because of the differences between the losses!\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Extra: This Jaccard similarity calculation is very powerful because it gives us an overall idea of how similar the spaces are. We can use this, for example, to compare the evolution of an embedding space over a training and see if it\u2019s worth keeping training. However, remember that this only looks at the 10 nearest neighbors, so two spaces can have very similar clusters but have a low Jaccard similarity. On the other hand, if the Jaccard similarity is high it is mostly possible that the spaces are similar.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"In-depth Space Analysis\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Right now, we could just be happy with this result and conclude that both models give us different results, but then we wouldn\u2019t know where the differences are and which model has a better fit for our problem. So now we are going to compare these two embedding spaces in depth.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now, it\u2019s time to use Vectory\u2019s main tool: the Embedding Space Analyser. This analyzer is a space visualization tool, it integrates all the tools available in Vectory in one easy-to-use \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://streamlit.io/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Streamlit\"\n        })\n      }), \". As with most of Vectory\u2019s tools, we can access this analyzer by running the next command:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"$ vectory run\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Then, we have to open the direction http://localhost:8501 in any browser. There we can access the analyzer.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We start by selecting the tiny imagenet dataset and both embedding spaces. It\u2019s important to note that if we want to change the model or the similarity, we must \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pentoai/vectory#load\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"reload the embedding into ElasticSearch as a new index\"\n        })\n      }), \". We will also choose \u201Clabels\u201D as the label to color the data points.\"]\n    }), /*#__PURE__*/_jsx(\"video\", {\n      autoPlay: true,\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,VIdvms9DWX4NycIw4Q5OcdgzJH0.mp4\",\n      loop: true,\n      muted: true,\n      playsInline: true,\n      src: new URL(\"https://framerusercontent.com/modules/assets/VIdvms9DWX4NycIw4Q5OcdgzJH0~x7stuPD-qdOCgk9ToUQKhnNPRpJSlIToIykUQDiU_AA.mp4\").href\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"After submitting this request, we will see a 2D representation of both spaces, where each point is an embedding of an image colored by the label. Vectory lets us make these representations in three different ways: with \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://umap-learn.readthedocs.io/en/latest/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"UMAP\"\n        })\n      }), \", with \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"PCA\"\n        })\n      }), \", and using a combination of both. Here you can see each representation:\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,NYXHDSLgAGEKHkojPgubVFYy7E.png\",\n      \"data-framer-height\": \"819\",\n      \"data-framer-width\": \"1756\",\n      height: \"409\",\n      src: new URL(\"https://framerusercontent.com/images/NYXHDSLgAGEKHkojPgubVFYy7E.png\").href,\n      style: {\n        aspectRatio: \"1756 / 819\"\n      },\n      width: \"878\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,uU0EQGVSQXJPlBpvMJC58cmuPxc.png\",\n      \"data-framer-height\": \"768\",\n      \"data-framer-width\": \"1673\",\n      height: \"384\",\n      src: new URL(\"https://framerusercontent.com/images/uU0EQGVSQXJPlBpvMJC58cmuPxc.png\").href,\n      style: {\n        aspectRatio: \"1673 / 768\"\n      },\n      width: \"836\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,1KaTLwZiOe1XWcJICJzAdFmRUMI.png\",\n      \"data-framer-height\": \"850\",\n      \"data-framer-width\": \"1701\",\n      height: \"425\",\n      src: new URL(\"https://framerusercontent.com/images/1KaTLwZiOe1XWcJICJzAdFmRUMI.png\").href,\n      style: {\n        aspectRatio: \"1701 / 850\"\n      },\n      width: \"850\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In the first two representations, we can see that the colors seem to be well clusterized to a certain degree. However, the ArcFace model has a big cluster with a lot of points of different classes in the first two images. This may be because of one of two reasons: Either the model needs more training in order to converge, or the model doesn\u2019t have a good fit for this dataset. It would be a good idea to train this model for more epochs and do the comparison again.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The third image, which is the representation using only PCA, doesn\u2019t seem to be a good representation of the space. This is something common, since PCA is not an algorithm that was made to see good 2d representations as UMAP.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Later we will see how we can know which representation is better. But first, let\u2019s take a look at the similarity histogram below:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,GI5bbky7xLDCrwyKxWTrwaaFUl4.png\",\n      \"data-framer-height\": \"671\",\n      \"data-framer-width\": \"1723\",\n      height: \"335\",\n      src: new URL(\"https://framerusercontent.com/images/GI5bbky7xLDCrwyKxWTrwaaFUl4.png\").href,\n      style: {\n        aspectRatio: \"1723 / 671\"\n      },\n      width: \"861\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This is the IoU histogram between spaces. It tells us, for example, that for ~30% of the embeddings, the IoU of their ten closest neighbors has a value between 0 and 0.1. Here we can conclude that not only do the embeddings have a different distribution in each space, but the distance between two given embeddings is different for each of the spaces. This is what matters when we are working with embeddings, not where they are but which ones are near. Not their absolute position but rather their relative position to other data points.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Extra: We can also see this graphic when we run the \u201Ccompare\u201D command, by adding the flag \u2013histogram.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Okay, so we know that each model gives us a different embedding representation for each space. But now we want to know what the differences are and their similarities.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Well, here is when the 2D representation comes in handy. We are going to reload the 2D spaces, but now we choose \u201Ccoincidence\u201D as the label to color the points. This is what we get:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,HgNjFNKRTuUorCRBCUMURPG4KlY.png\",\n      \"data-framer-height\": \"819\",\n      \"data-framer-width\": \"1705\",\n      height: \"409\",\n      src: new URL(\"https://framerusercontent.com/images/HgNjFNKRTuUorCRBCUMURPG4KlY.png\").href,\n      style: {\n        aspectRatio: \"1705 / 819\"\n      },\n      width: \"852\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, it's everything blue? Let's zoom in and find out:\"\n    }), /*#__PURE__*/_jsx(\"video\", {\n      autoPlay: true,\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,Z7zIaVkyE0nroFeMhOFyqCNTlI4.mp4\",\n      loop: true,\n      muted: true,\n      playsInline: true,\n      src: new URL(\"https://framerusercontent.com/modules/assets/Z7zIaVkyE0nroFeMhOFyqCNTlI4~tAghdii8T71IsHv1fnnMRPCFDkFNbcrt7XFScLreb1s.mp4\").href\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"As you can see, not all the points have the same color. This color distribution correlates with the coincidence histogram, so basically the blue points are the ones with the lowest similarity between the models and the red points are the ones with the highest similarity. If we want to go one step further with this comparison, we can also run a KNN query over both spaces and compare the matches and differences:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This tool shows us the result of the query in two different ways: As a dataframe with all the metadata we loaded in the csv and the location of each result in the 2D representation of each space.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Let's take a look at the dataframe. The results of the query show us that most results correspond to images that belong to the class \u201C190\u201D, which means that even if the spaces don't have a big IoU similarity, both seem to perform great in differentiating the classes. However, we shouldn\u2019t jump to conclusions so fast, running more queries would be a good idea.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We can also see the location of each point in each model in the 2D representation. This lets us know how reliable this 2D representation is. Here we can see that in both models the top 10 nearest neighbors (which are calculated with the original dimension of the models, not the reduced dimensions) are close to the queried point, which tells us that both 2D plots are a good representation of the spaces.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"So, what did we learn?\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"After all this analysis we made, we are now able to make certain statements:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Both spaces are different from each other in terms of nearest neighbors. This would matter a lot if we are trying to build, for example, a recommendation model.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"The Umap representation seems to be a good 2d representation for each space.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Both spaces make good a clusterization of the dataset, and seem to have similar clusters between them. So, if we only want to make a tagging model, both spaces seem to be doing well.\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The first conclusion is the most interesting of all, since it would be very difficult to make this statement without using Vectory. We could, for example, start making k-neighbors queries and see the similarities between the results of those queries in order to know this, but that would take a long time and could be a very biased statement depending on the queries. With vectory, we only have to run the \u201Ccompare '' command to find the answer.\"\n    })]\n  }),\n  Tu_Pd0zTZ: \"pytorch-metric-learning-vectory\",\n  YSKHrdVc1: \"Pytorch metric learning, Part II: Analyzing embeddings with Vectory\"\n}, {\n  DD39DBmBH: 'var(--token-81c88cf7-3b7f-4171-9140-39d2c84ed790, rgb(61, 161, 255)) /* {\"name\":\"Blue\"} */',\n  EZue1CzWP: \"2022-08-28T00:00:00.000Z\",\n  id: \"uVRYTE11u\",\n  ivFLyaMNq: \"Learn what object detection is and how it has evolved. Take a look at some of the most common and practical use cases. Code included.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/JhpDAAUKc2Z1shoO3uBuUh36A.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/JhpDAAUKc2Z1shoO3uBuUh36A.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/JhpDAAUKc2Z1shoO3uBuUh36A.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/JhpDAAUKc2Z1shoO3uBuUh36A.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Computer Vision\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Object detection\"\n      }), \" has been a trendy topic in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" in the last 10 years. This shouldn't be a surprise to anybody, taking into account that it allows computers to watch the world with their own eyes (or cameras, whatever).\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In this article, we will discuss \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection\"\n      }), \" and how it can be used and mention some of the most popular techniques: from classic to state-of-art. Finally, we also include code examples of some of the most popular models to try yourself.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"What do we mean when we say \u201CObject detection\u201D?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Object detection\"\n      }), \" is the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" task that deals with the localization and, most of the time, classification of specific objects in images. This can be done by looking for a single object (\", /*#__PURE__*/_jsx(Link, {\n        href: \"https://blog.tensorflow.org/2021/06/easier-object-detection-on-mobile-with-tf-lite.html\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"left figure\"\n        })\n      }), \"), multiple objects of the same class (\", /*#__PURE__*/_jsx(Link, {\n        href: \"https://towardsdatascience.com/object-detection-with-yolo-bringing-vision-to-self-driving-cars-980295226830\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"middle figure\"\n        })\n      }), \") or even multiple objects of multiple classes (right figure).\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,yOtUoHTNtntPAfLtLUS5TKadM.png\",\n      \"data-framer-height\": \"646\",\n      \"data-framer-width\": \"1015\",\n      height: \"323\",\n      src: new URL(\"https://framerusercontent.com/images/yOtUoHTNtntPAfLtLUS5TKadM.png\").href,\n      style: {\n        aspectRatio: \"1015 / 646\"\n      },\n      width: \"507\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ubXooQ0zrGtXvlEupW5k5pYxMU.png\",\n      \"data-framer-height\": \"500\",\n      \"data-framer-width\": \"800\",\n      height: \"250\",\n      src: new URL(\"https://framerusercontent.com/images/ubXooQ0zrGtXvlEupW5k5pYxMU.png\").href,\n      style: {\n        aspectRatio: \"800 / 500\"\n      },\n      width: \"400\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,4TkL0BYdXuIpIXNbsuz0h0r4TPw.png\",\n      \"data-framer-height\": \"613\",\n      \"data-framer-width\": \"920\",\n      height: \"306\",\n      src: new URL(\"https://framerusercontent.com/images/4TkL0BYdXuIpIXNbsuz0h0r4TPw.png\").href,\n      style: {\n        aspectRatio: \"920 / 613\"\n      },\n      width: \"460\"\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Object Detection Use cases\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Once you familiarize yourself with the tool, it's only up to your imagination to set use cases. We will mention some of the most common ones you can find. Consider that \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection\"\n      }), \" could be applied not only in a given set of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"images\"\n      }), \" but also to a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"live video\"\n      }), \", applying the algorithm frame by frame.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Tracking\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"One of the most common uses is \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"video frame-by-frame tracking\"\n      }), \". This consists of applying an \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection algorithm\"\n      }), \" to each video frame. This could be done for different purposes, like following a football player on the field, tracking a customer in a store, or ensuring nobody enters a particular zone for security purposes.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,U4e5ijbFvbHJUFngsygsMFuVs7o.gif\",\n      \"data-framer-height\": \"317\",\n      \"data-framer-width\": \"531\",\n      height: \"158\",\n      src: new URL(\"https://framerusercontent.com/images/U4e5ijbFvbHJUFngsygsMFuVs7o.gif\").href,\n      style: {\n        aspectRatio: \"531 / 317\"\n      },\n      width: \"265\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Object counting\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Another everyday use is \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"counting objects in an image (or a video frame)\"\n      }), \". As in many other examples, this is often faster and more reliable when done by machines rather than humans. An example of this could be counting the number of vehicles passing by like in the following \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.fiverr.com/hamzakhalil411/do-object-detection-and-count-for-domestic-industrial-use\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"figure\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,5NyH2lC2Flj0PWYrQLKUhSQQ1Bo.png\",\n      \"data-framer-height\": \"720\",\n      \"data-framer-width\": \"1280\",\n      height: \"360\",\n      src: new URL(\"https://framerusercontent.com/images/5NyH2lC2Flj0PWYrQLKUhSQQ1Bo.png\").href,\n      style: {\n        aspectRatio: \"1280 / 720\"\n      },\n      width: \"640\"\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Feature detection\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Sometimes, you may want to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"detect objects\"\n      }), \" with specific characteristics (color, size, and position). Similar to the previous example, but only looking for red cars.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Anomaly detection\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Similarly, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"anomaly detection\"\n      }), \" consists of detecting the presence of an object you don't want in an image. Sometimes we also look for the absence of the object itself. For example, you can have a camera pointing to plants and detecting if any of them is dry or has odd leaves purely based on \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"what the camera is seeing\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Medical images\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Even though it is a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"sub-case of anomaly detection\"\n      }), \", this application has become an independent field. The idea is to detect the presence of different objects (or living beings) in a medical image (it could be a resonance, x-rays, tomography, radiography, etc.), supporting the doctors on where to look.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Robots\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: ['Just like all animals, robots also need to \"see\" the world in their own way. But sometimes, it\\'s not enough. They have to know what they are looking at. One well-known example of this is ', /*#__PURE__*/_jsx(Link, {\n        href: \"https://insideevs.com/news/346873/video-tesla-autopilot-sees-fire-truck/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"autonomous cars\"\n        })\n      }), \", which have to distinguish between road signs, cars, pedestrians, traffic lights, etc. to decide how to respond.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,NZWbk9tkTqjElZORJKHLOmgjl0Y.png\",\n      \"data-framer-height\": \"1080\",\n      \"data-framer-width\": \"1920\",\n      height: \"540\",\n      src: new URL(\"https://framerusercontent.com/images/NZWbk9tkTqjElZORJKHLOmgjl0Y.png\").href,\n      style: {\n        aspectRatio: \"1920 / 1080\"\n      },\n      width: \"960\"\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Object detection evolution\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision\"\n      }), \" has made enormous progress in the last couple of decades, and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection\"\n      }), ' is not the exception. Just to understand on what basis it stands today, it may be helpful to see some of the most important changes in its brief history. Mainly it can be divided into two different \"eras\": Before and After ', /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.ibm.com/cloud/learn/deep-learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"Deep Learning\"\n          })\n        })\n      }), \" (BDL and ADL).\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Before using \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"deep learning on object detection\"\n      }), \", the methods were based on hand-crafted features. These features come from various \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"algorithms\"\n      }), \" with information that can be obtained directly from the image. The methods are sometimes labeled as \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Traditional object detectors\"\n      }), \". There are 3 representative examples of this era:\"]\n    }), /*#__PURE__*/_jsx(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Haar-like features:\"\n          }), \" These were implemented in object-detection research by Viola and Jones. They detected faces based on 3 basic types: edge, line, and four-rectangle features.\"]\n        }), /*#__PURE__*/_jsx(\"img\", {\n          alt: \"\",\n          className: \"framer-image\",\n          \"data-framer-asset\": \"data:framer/asset-reference,EWDuGe4ptHzZNIWhdNtVbP75BI0.png\",\n          \"data-framer-height\": \"186\",\n          \"data-framer-width\": \"271\",\n          height: \"93\",\n          src: new URL(\"https://framerusercontent.com/images/EWDuGe4ptHzZNIWhdNtVbP75BI0.png\").href,\n          style: {\n            aspectRatio: \"271 / 186\"\n          },\n          width: \"135\"\n        }), /*#__PURE__*/_jsx(\"img\", {\n          alt: \"\",\n          className: \"framer-image\",\n          \"data-framer-asset\": \"data:framer/asset-reference,Pcj6PW657UX8jyp2P7QgYYcY9n0.gif\",\n          \"data-framer-height\": \"340\",\n          \"data-framer-width\": \"550\",\n          height: \"170\",\n          src: new URL(\"https://framerusercontent.com/images/Pcj6PW657UX8jyp2P7QgYYcY9n0.gif\").href,\n          style: {\n            aspectRatio: \"550 / 340\"\n          },\n          width: \"275\"\n        })]\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"HOG Detector:\"\n          }), \" Histograms of Oriented Gradients gained popularity after the Conference on CVPR (Computer Vision and Pattern Recognition) held in 2005. This method counts how many times a gradient orientation appears in a certain portion of an image.\"]\n        }), /*#__PURE__*/_jsx(\"img\", {\n          alt: \"HOG Detector used on an old couple walking.\",\n          className: \"framer-image\",\n          \"data-framer-asset\": \"data:framer/asset-reference,3qcePLh1bTKS5F2G4AxkdGVYw.png\",\n          \"data-framer-height\": \"541\",\n          \"data-framer-width\": \"1024\",\n          height: \"270\",\n          src: new URL(\"https://framerusercontent.com/images/3qcePLh1bTKS5F2G4AxkdGVYw.png\").href,\n          style: {\n            aspectRatio: \"1024 / 541\"\n          },\n          width: \"512\"\n        })]\n      }), /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"DPM:\"\n          }), \" Deformable Parts Model consists of a group of templates arranged in a deformable configuration. It has one global template and many part templates. \", /*#__PURE__*/_jsx(Link, {\n            href: \"https://cs.brown.edu/courses/cs143/2011/lectures/DPM.pdf\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"reference\"\n            })\n          })]\n        }), /*#__PURE__*/_jsx(\"img\", {\n          alt: \"DPM Detector used on a bicycle.\",\n          className: \"framer-image\",\n          \"data-framer-asset\": \"data:framer/asset-reference,ld77GTg2LusNogCqVE31JtHhs.jpg\",\n          \"data-framer-height\": \"360\",\n          \"data-framer-width\": \"541\",\n          height: \"180\",\n          src: new URL(\"https://framerusercontent.com/images/ld77GTg2LusNogCqVE31JtHhs.jpg\").href,\n          style: {\n            aspectRatio: \"541 / 360\"\n          },\n          width: \"270\"\n        })]\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Progress got stuck around 2010 until AlexNet came up in 2012, starting the new \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"DL\"\n      }), \" era. This project implemented \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"CNN\"\n      }), \", combined with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"data augmentation\"\n      }), \", and achieved the lowest error rates to that date.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"CNNs\"\n      }), \" had been applied to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"handwritten recognition\"\n      }), \", but there were computational limitations and not large enough databases to scale to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection\"\n      }), \" in a wider range of images. AlexNet tackled this problem. \"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Later on, all the different models proposed in the last decade can be sorted out into 2 main categories:\"\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Two-stage methods:\"\n          }), \" Deriving from \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"R-CNN\"\n          }), \", the method consists of a first stage where a model is used to localize possible object regions. Then its results are used as input for a second model which classifies the objects. Most of them build on previous methods and research, focusing on a specific drawback that the previous methods had. Namely SPP-Net, Fast R-CNN, Faster R-CNN, \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"FPN\"\n          }), \", Mask R-CNN, and \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"Cascade R-CNN\"\n          }), \". \"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"One-stage methods\"\n          }), \": This method directly predicts an \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"object's bounding boxes\"\n          }), \" for an image. As an upgrade from the previous two-stage method we discussed, this is faster and simpler but sometimes not as flexible. Examples of this are \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"SSD\"\n          }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"YOLO\"\n          }), \", which we will add a little demo for you to try on your own. \"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Code examples\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now it's time to try a real example of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"object detection\"\n      }), \". For this example, we will use two well-known models: \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLOv5 (you-only-look-one) and Detic\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Example 1: YOLOv5\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The first example will be using \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/ultralytics/yolov5\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: /*#__PURE__*/_jsx(\"strong\", {\n            children: \"YOLOv5\"\n          })\n        })\n      }), \". This is one of the most popular algorithms nowadays and the one to go to when looking for a real-time object detector, mainly because of its incredible speed and accuracy.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Let's start by installing some dependencies:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"pip install -qr https://raw.githubusercontent.com/ultralytics/yolov5/master/requirements.txt\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Then, we have to load the image in which we will run the model:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from PIL import Image\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import requests\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from io import BytesIO\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Image url\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'image_url = \"https://ultralytics.com/images/zidane.jpg\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Load Image\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"response = requests.get(image_url)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"image = Image.open(BytesIO(response.content))\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"image.show()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"If everything goes right, the following image should open:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,bDwdR6YASrvpjnzI24cvfi11KRI.jpg\",\n      \"data-framer-height\": \"720\",\n      \"data-framer-width\": \"1280\",\n      height: \"360\",\n      src: new URL(\"https://framerusercontent.com/images/bDwdR6YASrvpjnzI24cvfi11KRI.jpg\").href,\n      style: {\n        aspectRatio: \"1280 / 720\"\n      },\n      width: \"640\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now we have to load the model with PyTorch:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"code\", {\n        children: \"import torch \"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"code\", {\n        children: 'model = torch.hub.load(\"ultralytics/yolov5\", \"yolov5s\", pretrained=True)'\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Notice that we set the pretrained parameter True. This tells \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PyTorch\"\n      }), \" that we want to use the weights obtained from training in the 1000-class \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.image-net.org/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ImageNet\"\n        })\n      }), \" dataset (for more details, go to YOLOv5). These weights can be finetuned for a particular purpose if trained in a dataset of your choice (that's one of the many things we here do at Pento).\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"After loading the image and the model, we are now able to run the model on this image or, as we like to call it, make an inference:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Inference\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"results = model(image)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Results\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"results.print()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Show detection\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"results.show()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"If you followed every step right, probably two things should happen:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"First, something like this should appear in the console:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"code\", {\n        children: \"image 1/1: 720x1280 2 persons, 2 ties Speed: 3.7ms pre-process, 119.4ms inference, 1.1ms NMS per image at shape (1, 3, 384, 640)\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'What does this tell us? For the image in batch (1/1), with a size of 720x1280, it detected 2 objects classified as \"person\" and 2 classified as \"ties.\" The rest is information about the speed of the inference.'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Then, the following image should pop up:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ijphtOSXimJv6VZpRvLNLsJtW4.jpg\",\n      \"data-framer-height\": \"720\",\n      \"data-framer-width\": \"1280\",\n      height: \"360\",\n      src: new URL(\"https://framerusercontent.com/images/ijphtOSXimJv6VZpRvLNLsJtW4.jpg\").href,\n      style: {\n        aspectRatio: \"1280 / 720\"\n      },\n      width: \"640\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Here we can see the bounding boxes in each object, each with its respective tag and confidence the prediction is correct.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Example 2: Detic\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Our final example will use a newer detector called \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/facebookresearch/Detic\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Detic\"\n        })\n      }), \" \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"(Detector with Image Classes)\"\n      }), \". It can be considered a two-stage detector, which focuses on expanding the vocabulary. Primarily, it introduces \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Natural Language Processing\"\n      }), \" to assist in the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"classification\"\n      }), \". But don't worry. All you need to know is that you can include more classes, resulting in images full of labels.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"First, let's set up our working environment:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"pip install torch torchvision torchaudio\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"git clone git@github.com:facebookresearch/detectron2.git cd detectron2\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"pip install -e . cd .. \"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"git clone https://github.com/facebookresearch/Detic.git --recurse-submodules\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cd Detic \"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"pip install -r requirements.txt\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now, if you only want to run \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Detic\"\n      }), \" on a single image from the terminal, you can do it by running the following command:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"python demo.py --config-file configs/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.yaml --cpu --input ../zidane.jpg --output out.jpg --vocabulary lvis --opts MODEL.WEIGHTS models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"However, if you want to create a programmatic file that you can run as many times as you like and customize, you can achieve it with the following code:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'NOTE: This file must be inside the folder \"Detic\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We start importing some dependencies and declaring some constants:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import sys\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import torch\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detectron2.config import get_cfg\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detectron2.data import MetadataCatalog\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detectron2.data.detection_utils import read_image\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detectron2.engine import DefaultPredictor\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detectron2.utils.visualizer import ColorMode, Visualizer\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'sys.path.insert(0, \"third_party/CenterNet2/\")'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from centernet.config import add_centernet_config\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detic.config import add_detic_config\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from detic.modeling.utils import reset_cls_test\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"BUILDIN_CLASSIFIER = {\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"lvis\": \"datasets/metadata/lvis_v1_clip_a+cname.npy\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"objects365\": \"datasets/metadata/o365_clip_a+cnamefix.npy\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"openimages\": \"datasets/metadata/oid_clip_a+cname.npy\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"coco\": \"datasets/metadata/coco_clip_a+cname.npy\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"}\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"BUILDIN_METADATA_PATH = {\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"lvis\": \"lvis_v1_val\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"objects365\": \"objects365_v2_val\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"openimages\": \"oid_val_expanded\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '   \"coco\": \"coco_2017_val\",'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"}\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Then we have to choose the configurations of our model. Here there are two important things:\"\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"the model device, in this case, we are going to run the model in the CPU.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"and the model weights, similar to the \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"torch.hub.load\"\n          }), \" from the first example, but now we are selecting the weights from a local file.\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Load model's configuration\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cfg = get_cfg()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"add_centernet_config(cfg)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"add_detic_config(cfg)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'cfg.merge_from_file(\"configs/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.yaml\")'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Configure prediction settings\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cfg.MODEL.RETINANET.SCORE_THRESH_TEST = 0.5\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = 0.5\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'cfg.MODEL.ROI_BOX_HEAD.ZEROSHOT_WEIGHT_PATH = \"rand\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"# Where model weights are located and how to load them\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'cfg.MODEL.DEVICE = \"cpu\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'cfg.MODEL.WEIGHTS = \"models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"cfg.freeze()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'After this preparation, we can finally instance the model. We call the model \"predictor\" since we only make inference predictions. Notice that we have to choose a vocabulary from the ones we put in the \"BUILDIN_CLASSIFIER\" and \"BUILDIN_METADATA_PATH.\" You could try changing this to obtain different results.'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"vocabulary = \\\"lvis\\\"  # try 'lvis', 'objects365', 'openimages', or 'coco'\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"predictor = DefaultPredictor(cfg)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"metadata = MetadataCatalog.get(BUILDIN_METADATA_PATH[vocabulary])\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"classifier = BUILDIN_CLASSIFIER[vocabulary]\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"num_classes = len(metadata.thing_classes)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"reset_cls_test(predictor.model, classifier, num_classes)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"After that, we only need to run the model and visualize the results.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"predictions = predictor(im)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'metadata = MetadataCatalog.get(BUILDIN_METADATA_PATH[\"lvis\"])'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"visualizer = Visualizer(\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"   im[:, :, ::-1], metadata=metadata, instance_mode=ColorMode.IMAGE\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \")\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'instances = predictions[\"instances\"].to(torch.device(\"cpu\"))'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"vis_output = visualizer.draw_instance_predictions(predictions=instances)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"print(predictions)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'vis_output.save(\"detic_output.jpg\")'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This should print us something similar to this:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"code\", {\n        children: \"{'instances': Instances(num_instances=3, image_height=720, image_width=1280, fields=[pred_boxes: Boxes(tensor([[ 743.0906, 40.1450, 1147.4911, 718.4363], [ 109.0441, 199.6036, 1133.3624, 716.3141], [1095.8981, 314.3076, 1279.4323, 717.0710]])), scores: tensor([0.9285, 0.9030, 0.5115]), pred_classes: tensor([0, 0, 0]), pred_masks: tensor([[[False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], ..., [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False]], [[False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], ..., [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False]], [[False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], ..., [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False], [False, False, False, ..., False, False, False]]])])}\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"And also, it should save an image named \u201Cdetic_output.jpg\u201D, which should look like the image below, depending on the vocabulary you chose.\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,XQcouZWHSL8AtrEvODdzrrN4fHA.jpg\",\n      \"data-framer-height\": \"720\",\n      \"data-framer-width\": \"1280\",\n      height: \"360\",\n      src: new URL(\"https://framerusercontent.com/images/XQcouZWHSL8AtrEvODdzrrN4fHA.jpg\").href,\n      style: {\n        aspectRatio: \"1280 / 720\"\n      },\n      width: \"640\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Here we can see three main differences with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"YOLO\"\n      }), \":\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Now, we have color masks apart from the bounding box\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Detic\"\n          }), \" detected some classes that weren't detected by \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"YOLO\"\n          })]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"For the objects both models detected, the confidence is higher in the case of \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"Detic\"\n          })]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"So, what have we learned?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"So that's it! That's all it takes to use a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"generic object detector\"\n      }), \"! Go ahead and try it for your own set of images. Of course, a more custom solution would imply both \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"data handling\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"training\"\n      }), \", but this is all you need to have your own \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"simple object detector\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Object detection\"\n      }), \" has become an essential tool for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automatization\"\n      }), \" in many areas, from security to medical applications. The idea here was to give you some background and two basic examples to start trying by yourself, and we hope we made it easy enough. The limit of this tool is your imagination.\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"object-detection\",\n  YSKHrdVc1: \"Object detection: An overview with code examples\"\n}, {\n  DD39DBmBH: 'var(--token-81c88cf7-3b7f-4171-9140-39d2c84ed790, rgb(61, 161, 255)) /* {\"name\":\"Blue\"} */',\n  EZue1CzWP: \"2022-08-21T00:00:00.000Z\",\n  id: \"CdtZOHvk4\",\n  ivFLyaMNq: \"Super-resolution consists of using AI to automatically enhance image quality. Going from a low-resolution image to an upscaled, HD version.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/kQaqfN4Wmu3Bv6UimkCLzdQfEI.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/kQaqfN4Wmu3Bv6UimkCLzdQfEI.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/kQaqfN4Wmu3Bv6UimkCLzdQfEI.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/kQaqfN4Wmu3Bv6UimkCLzdQfEI.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Computer Vision\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"h1\", {\n      children: \"What is super-resolution?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Single image \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution\"\n      }), \" is one of the many \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" tasks that can be done for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image enhancing\"\n      }), \". It consists of going from a *low-resolution image**, to an upscaled or improved version.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Why would someone want to do this? There are many different industries where \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"improving an image\u2019s resolution\"\n      }), \" could be of use.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"One of them is retail, where the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automatic image retouching to enhance their quality\"\n      }), \" leads to an increase of purchase intention, as seen on our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog/computer-vision-retail-applications\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"retail blog post\"\n        })\n      }), \". But its applications are not limited to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"product pictures\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This technique could be applied to surveillance, satellite and medical \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image enhancement\"\n      }), \", as well as \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image rendering\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Technical overview\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now, how do we assess the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"quality of the super-resolution image\"\n      }), \"? How do we account for it being realistic or not? Well, unlike most \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" problems, where only objective metrics are taken into account, subjective methods are needed for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution\"\n      }), \". Let\u2019s go over the objective ones and keep for last the most interesting one for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"enhancing image quality\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The two main objective metrics to check for a correct \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image reconstruction\"\n      }), \" are \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Peak Signal-to-Noise Ratio\"\n        })\n      }), \" (PSNR) and \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://en.wikipedia.org/wiki/Structural_similarity\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Structural Similarity\"\n        })\n      }), \" (SSIM). PSNR consists of the Mean Square Error (MSE) between the pixels from the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high-resolution image\"\n      }), \" and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution\"\n      }), \" one for each color channel.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Basically, similar pixels between the original and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"reconstructed image\"\n      }), \" lead to a good PSNR, but there is no perceptual consideration involved. SSIM aims at comparing both images perceptually by considering the difference in luminance, structure and contrast. Therefore, spatially close \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"pixel dependency\"\n      }), \" is taken into account.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now, how can you really measure if an image looks more realistic to the human eye than another one? By actually involving the human eye. Yes, that is correct. The subjective metric consists of a Mean Opinion Score (MOS). Basically, a set of viewers compare the original image and the reconstructed one and assign them a numeric value or rating. This, of course, is expensive, time consuming and subjective to the viewers but still is the chosen option when comparing state of the art methods.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Enhancing Image Quality: State-of-The-Art Solutions\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We have mentioned a few of the applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"single image super-resolution\"\n      }), \" and how to evaluate the results. Let\u2019s dive into the different methods that can be used, from a brief historic overview to the current state of the art \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image quality-enhancing\"\n      }), \" methods.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Before deep learning models, bicubic and Lanczos interpolation or worst, nearest neighbor interpolation, were the way to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"upscale images\"\n      }), \". This meant either pixelated or blurry outputs. However, \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1501.00092\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"SRCNN\"\n        })\n      }), \" appeared in 2014 to save the day.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Using a quite shallow neural network for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"single image super-resolution (SISR)\"\n      }), \" they were able to achieve a PSNR of 26.9 and a SSIM of 0.710 for BSD100 (4x upscaling), one of the reference datasets for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image super-resolution\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"A breakthrough for Image Quality-Enhancing\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The next breakthrough on \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image super-resolution\"\n      }), \" came in 2016 when \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1609.04802\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"SRResNet and SRGAN\"\n        })\n      }), \" were published by Ledig et. al., achieving the state-of-the-art at the time with SRResNet and introducing the mean-opinion-score for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution benchmarks\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With a depth of 16 blocks, SRResNet is a ResNet that aims to minimize de MSE between the predicted \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution image\"\n      }), \" and the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high-resolution\"\n      }), \" one. This makes this network ideal when evaluated with PSNR or SSIM, key metrics for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution benchmarks\"\n      }), \". However, this doesn\u2019t necessarily mean realistic results.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"So, to take this into consideration, Ledig et.al. considered a mean-opinion-score (MOS), which established SRGAN as the state-of-the-art for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"photo-realistic\"\n      }), \" SR with 4x upscaling.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Generative adversarial networks (GANs) consist of two networks that compete against each other. One of them, called generative network, tries to create an image (or another type of output) as realistic as possible, whereas the other one, named adversarial network, tries to say whether the output is artificial or not.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Basically, the generative network is learning to fool the adversarial one, and the adversarial network is dynamically improving its detection ability. As a consequence, GANs are able to learn in an unsupervised manner and achieve realistic results.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, how did they achieve this? By employing a ResNet with skip-connections for the generator and not focusing only on MSE for optimization. Instead, the implemented perceptual loss combines an adversarial loss and a content loss.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"On one hand, the first one arises from the discriminator network by comparing the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution image\"\n      }), \" with the real one. This leads to more \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"photo-realistic results\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"On the other hand, the content loss instead aims to get perceptual similarity instead of a pixel-wise one. How? Well, even though pixel-wise MSE loss gets really good PSNR results, it does not achieve \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high-frequency\"\n      }), \" content but instead smooth and unrealistic ones. To tackle this problem, a \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://paperswithcode.com/method/vgg-loss\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"VGG loss\"\n        })\n      }), \" was proposed by Ledig et.al. as well as a MSE one, where the VGG loss is calculated by comparing the features of the pre-trained 19 layer VGG network against the original image.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The results achieved with the different variations of SRGAN are shown on the next figure, taken from SRResNet and SRGAN's \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1609.04802\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"paper\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,H1Uc5eE7hRlvwX8z4Aepc8G10kE.png\",\n      \"data-framer-height\": \"567\",\n      \"data-framer-width\": \"1300\",\n      height: \"283\",\n      src: new URL(\"https://framerusercontent.com/images/H1Uc5eE7hRlvwX8z4Aepc8G10kE.png\").href,\n      style: {\n        aspectRatio: \"1300 / 567\"\n      },\n      width: \"650\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In 2018, Wang et.al. improved both the architecture and loss functions from SRGAN and introduced \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1809.00219\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ESRGAN\"\n        })\n      }), \". Regarding the architecture, they removed batch normalization and changed the residual blocks from SRGAN to Residual in Residual Dense Blocks (RRDB).\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Also, SRGAN\u2019s discriminator predicts the probability of an image being natural, while ESRGAN\u2019s discriminator predicts the probability of an image being more realistic than an \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"artificial image\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Finally, the perceptual loss is improved by using the features prior to the activation layer. On the following image (taken from ESRGAN's \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/1809.00219\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"paper\"\n        })\n      }), \"), it becomes clear that even though ESRGAN does not lead to the best PSNR, it generates the most realistic output.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,nYAya32SZVogMJc1CuFH8TGUiY.png\",\n      \"data-framer-height\": \"349\",\n      \"data-framer-width\": \"910\",\n      height: \"174\",\n      src: new URL(\"https://framerusercontent.com/images/nYAya32SZVogMJc1CuFH8TGUiY.png\").href,\n      style: {\n        aspectRatio: \"910 / 349\"\n      },\n      width: \"455\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \" \"\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Our take on Enhancing Image Quality\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"All in all, it is fascinating to see the evolution of this \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" task on both metrics and models. Initially, the goal was to make the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"super-resolution image\"\n      }), \" as similar as the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high-resolution\"\n      }), \" one. And SRCNN and SRResNet excel at this, resulting in higher PSNR and SSIM than SRGAN and ESRGAN on several benchmarks.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"However, the shift into realistic results changed the rules. The enhanced image did not necessarily need to be similar to the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high-resolution\"\n      }), \" one in a pixel-wise way.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Instead, it needed to look realistic to an actual human being. This leads to a change of paradigm that makes GANs better for the job of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"enhancing image quality\"\n      }), \", at least for now...\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"super-resolution-sota\",\n  YSKHrdVc1: \"Enhancing Image Quality with Visual AI: How does it work?\"\n}, {\n  DD39DBmBH: 'var(--token-4741f72e-3b36-49cf-851b-1e44fa9a054a, rgb(245, 102, 135)) /* {\"name\":\"Red\"} */',\n  EZue1CzWP: \"2022-03-16T00:00:00.000Z\",\n  id: \"FphSq8Vjp\",\n  ivFLyaMNq: \"Computer Vision is revolutionizing Manufacturing. Learn how it is powering the next generation of manufacturers and establishing the 4IR.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/2PfcV8WdwVUR1pgVqNwn4WncbA.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/2PfcV8WdwVUR1pgVqNwn4WncbA.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/2PfcV8WdwVUR1pgVqNwn4WncbA.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/2PfcV8WdwVUR1pgVqNwn4WncbA.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"AI in business\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog/computer-vision-retail-applications\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"latest blog post\"\n        })\n      }), \", we go over seven of the most exciting and disruptive applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" in the industry of retail. Now, let's take a step back and explore \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"what Computer Vision has to offer in Manufacturing\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We cannot do this outside the context of the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Fourth Industrial Revolution (4IR)\"\n      }), \", also known as \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"'Industry 4.0'\"\n      }), \", which is reshaping the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing industry\"\n      }), \" with the incorporation of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" for more efficient processes. By 2025, the technologies behind this revolution are expected to contribute up to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"$3.7 trillion\"\n      }), \" in value, \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.mckinsey.com/business-functions/operations/our-insights/industrys-fast-mover-advantage-enterprise-value-from-digital-factories\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"McKinsey\"\n        })\n      }), \" reports.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In 2020, a \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.mckinsey.com/business-functions/mckinsey-analytics/our-insights/global-survey-the-state-of-ai-in-2020\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"survey\"\n        })\n      }), \" reported \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"revenue increases\"\n      }), \" as well as cost decreases for companies that adopted \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" in at least one function. A non-exhaustive list of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" use cases \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"in manufacturing\"\n      }), \" and logistics included \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"yield, energy, and throughput optimization, predictive maintenance, logistics-network optimization, inventory, and parts optimization\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Who are the manufacturing leaders in the 4IR?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In 2018, The World Economic Forum launched the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.weforum.org/projects/global_lighthouse_network\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Global Lighthouse Network\"\n        })\n      }), \". This ongoing research project brings together the pioneer companies leading \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing innovation\"\n      }), \". These companies are the frontrunners in adopting 4IR technologies, resetting industry benchmarks, and moving away from the traditional manual manufacturing concept towards a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"smart and advanced manufacturing\"\n      }), \" model.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The main objective of applying a wide array of technologies (like \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \") in the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing industry\"\n      }), \" is the optimization of productivity and other key performance metrics. Regardless of the industry, this can be achieved by \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"transforming manufacturing processes\"\n      }), \" through \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"digitalization and automation\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Industry leaders report the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.weforum.org/whitepapers/fourth-industrial-revolution-beacons-of-technology-and-innovation-in-manufacturing\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"positive results\"\n        })\n      }), \" of early adoption of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"4IR technologies\"\n      }), \" across many \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing metrics\"\n      }), \". Among them, the ones that stand out are:\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Increment in overall equipment effectiveness\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Deviation drop\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Cost of scrap diminution\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Cut back in human resources for inspection and validation\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Less unexpected breakdowns\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Decrement in defects per million\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Workforce productivity raise\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Decrement in customer complaints\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Increment in units produced per hour\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Extension of lifespan of equipment\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Labor efficiency boost\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Production time gain\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Cost of goods sold reduction\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Improvement of asset utilization\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Logistics cost cutback\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Rework cost decrement\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Performance growth\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"The lighthouses of manufacturing: what powers them?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"These \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://youtu.be/j62U089HDx0\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"\u2018Lighthouses\u2019\"\n        })\n      }), \" come from the most diverse backgrounds in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing\"\n      }), \". Still, they all focus on the same thing: making the most out of available technology to improve quality of performance without sacrificing efficiency, ultimately \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"driving revenue\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The highlights of these innovations lie in the application of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision-powered\"\n      }), \" inspection, predictive maintenance, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI-enabled\"\n      }), \" quality management system automation, 3D printing and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"big data analytics\"\n      }), \", real-time machining quality control, among many others.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Computer vision as a part of the revolution\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Manufacturing Lighthouses\"\n      }), \" are exploiting \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" to continue thriving in an industry that is still very human-dependent. Like in \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog/computer-vision-retail-applications\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"retail\"\n        })\n      }), \", the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"human factor involves a cost\"\n      }), \" due to the nature of the work: how difficult it is to pay attention to multiple variables simultaneously, the lack of accuracy, and in this particular industry, the added cost of physical safety on the job.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Additionally, the pandemic has exposed the need for the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"human factor in manufacturing\"\n      }), \": the knowledge that comes with years on the job, which makes humans difficult to replace, and the vulnerability companies face in a context where the worker's presence may be interrupted.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The solutions \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI and Computer Vision\"\n      }), \" brings to the table work towards overcoming these limitations and better use of existing human capital.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" is a solution for improving the capabilities of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers\"\n      }), \" and eliminating weaknesses across industries. This is why the industry leaders trust this \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"technology\"\n      }), \" to keep scaling up \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"innovation\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Building and applying customized \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision algorithms in manufacturing\"\n      }), \" is the road to achieving target KPIs through actionable visual data from daily operations.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Four areas where computer vision has the most significant impact\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision has limitless potential\"\n      }), \", but four particular aspects of a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturer's operations\"\n      }), \" can benefit greatly from using this technology.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Quality assurance\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As one of the industry\u2019s top performance metrics, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"quality\"\n      }), \" is always the main focus of improvement. It\u2019s transversal to all processes and lines of business. When overlooked, the costs far outweigh the investment in a quality management system. For manufacturers, these costs could arise from rework time, repairs, recalls, scrap, inspection costs, warranty charges, and late delivery penalties.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"avoid the costs of poor quality\"\n      }), \", \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers must invest in good, reliable tools to ensure the quality of the whole pipeline\"\n      }), \": from raw materials up to the delivery of the final product. Here, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" plays a vital role in the making of a product when inspecting its components and the final version. With \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"defect detection by automated inspection\"\n      }), \", two main goals are achieved:\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"No subtle defect goes unnoticed\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Automation allows for consistency of criteria regardless of the workload\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,V7E6zEfoKzuOKRpajUu1cvzurQg.png\",\n      \"data-framer-height\": \"1140\",\n      \"data-framer-width\": \"1940\",\n      height: \"570\",\n      src: new URL(\"https://framerusercontent.com/images/V7E6zEfoKzuOKRpajUu1cvzurQg.png\").href,\n      style: {\n        aspectRatio: \"1940 / 1140\"\n      },\n      width: \"970\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With a quality control system composed of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision-powered cameras\"\n      }), \", errors can be identified and classified. Products may go on a different route depending on the defect before going on to the next production stage. This classification also allows detecting weak points of the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"production\"\n      }), \" process and improving where needed.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Catching faulty products and defective raw materials early in the production line \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"reduces the chances of recalls\"\n      }), \". This way, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers avoid the additional costs\"\n      }), \" of transportation of the faulty goods, not to mention the inconveniences for the sales pipeline and the effects on customer loyalty.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As cameras recognize specific patterns when inspecting an item, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image processing algorithms\"\n      }), \" can detect what constitutes an error and send an alert accordingly. What\u2019s more, they can also catch trends when parameters fall within an established range but lie at upper/lower limits, which may indicate a potential problem if not addressed.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"But faulty products are not the only concern of automated quality control systems. Nowadays, the appearance of the final product is also essential for downstream sales processes and the overall reputation of the manufacturer.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At this stage, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers must ensure that packaging standards are met\"\n      }), \". This involves barcodes, texts, and making sure that labels and compliance marks are visible and placed appropriately. The role of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision in Manufacturing\"\n      }), \" for these processes is clear: detecting, identifying, and diverting items that do not meet the standards before leaving the manufacturing premises, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"saving the manufacturer of considerable costs\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Lastly, consistent and strict quality controls also allow \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers\"\n      }), \" to obtain quality and good \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing certificates\"\n      }), \" that indicate compliance with a set of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing standards\"\n      }), \". These certificates are essential for commercializing certain goods in highly regulated markets, such as drugs or medical devices.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Production\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Designing and customizing \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision algorithms\"\n      }), \" to optimize an otherwise manual human task involves process and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"production engineers\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision experts\"\n      }), \". They work as a team with clear, quantifiable goals and know how they affect the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturer's KPIs\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision algorithms\"\n      }), \" can perform \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"predictive maintenance\"\n      }), \" of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing\"\n      }), \" equipment and fleet assets. The model monitors visual indicators such as rustiness, shape, or surface to identify errors or deviations from standards. The model is trained to be as accurate as desired to detect known or unknown indicators of wear and deterioration that could lead to further breakdown of valuable equipment.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,jOPNunepWThBWt2IiXm04BPPBM.png\",\n      \"data-framer-height\": \"1140\",\n      \"data-framer-width\": \"1940\",\n      height: \"570\",\n      src: new URL(\"https://framerusercontent.com/images/jOPNunepWThBWt2IiXm04BPPBM.png\").href,\n      style: {\n        aspectRatio: \"1940 / 1140\"\n      },\n      width: \"970\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Predictive maintenance\"\n      }), \" allows manufacturers to carry out machinery performance analysis. This crucial input prevents workers from changing machinery components that don't need to be changed. This way, manufacturers don't have to face the costs of disassembling equipment to change a part that could run for six more months. As a result, predictive maintenance reduces the annual maintenance cost and gives insight into the lifespan of the components.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Once an error is identified, the system issues a remote warning or displays an alert in the corresponding andon board so that workers have the opportunity to decide what action to take depending on the type and severity of the error in a timely manner.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As a result, the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturer avoids losses in equipment and extends the life span of their assets\"\n      }), \". Most importantly, if production must come to a halt, they can make the corresponding arrangements not to affect the following processes and reduce unplanned downtime.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,t9xQySDUrTIdsCNyOoFe8Sbjg.png\",\n      \"data-framer-height\": \"1140\",\n      \"data-framer-width\": \"1940\",\n      height: \"570\",\n      src: new URL(\"https://framerusercontent.com/images/t9xQySDUrTIdsCNyOoFe8Sbjg.png\").href,\n      style: {\n        aspectRatio: \"1940 / 1140\"\n      },\n      width: \"970\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Also, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Object detection\"\n      }), \", one of computer vision techniques, also involves sorting and counting and can be of great value when visually inspecting manufacturing processes. This functionality has a significant impact in the pharmaceutical industry in particular, where an incomplete blister pack or any variability in the final product could lead to severe consequences for clients. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Manufacturers could also face additional legal costs if defective product liability lawsuits occur\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To reduce costs of scraps, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers\"\n      }), \" that carry out precise laser or rotary die-cutting of designs can also benefit from \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Ccomputer Vision\"\n      }), \". The models are fed images or videos with parameters as gold standards to consistently guide physical equipment, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"reducing variability\"\n      }), \" and cost of scraps.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Safety & compliance\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"physical integrity of workers\"\n      }), \" should be a priority for every company, regardless of the nature of the tasks. In the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing industry\"\n      }), \", there is no margin for error when it comes to the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"safety of human capital\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As such, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturers\"\n      }), \" must \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"keep track of compliance with the protocols\"\n      }), \" established to ensure the safety of workers. Monitoring of accident-prone areas, emergency exits that should not be obstructed, and areas that must remain empty to allow traffic is also required.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,gFG6hCzeGkLEVSMbV0IiQzlsqSM.png\",\n      \"data-framer-height\": \"1140\",\n      \"data-framer-width\": \"1940\",\n      height: \"570\",\n      src: new URL(\"https://framerusercontent.com/images/gFG6hCzeGkLEVSMbV0IiQzlsqSM.png\").href,\n      style: {\n        aspectRatio: \"1940 / 1140\"\n      },\n      width: \"970\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Usually, this involves a worker overseeing several cameras facing different working stations, with workers and heavy machinery traffic. Naturally, a human cannot be constantly alert and repeatedly handle many signals without making mistakes.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Workers in this industry could \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"risk injury\"\n      }), \" when doing manual check-ups or maintenance work and walking through hazardous zones in manufacturing plants or warehouses. Sometimes, willingly or not, workers fail to follow the rules regarding safety standards and the use of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"personal protective equipment (PPE)\"\n      }), \" like helmets, masks, or safety glasses. This not only puts the worker at risk but could also be a matter of public health in facilities that produce food products or require a sterile environment.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"When \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"human monitoring of compliance fails\"\n      }), \", the well-being of workers is compromised, and companies could face financial penalties for not abiding by the corresponding regulations. In this context, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer-vision-powered monitoring of plant conditions\"\n      }), \" is an excellent solution for manufacturers. It enables a non-interrupted control of the use of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"PPE\"\n      }), \" and remote checks in a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturing plant\"\n      }), \" without the need for the physical presence of a worker, and with the accuracy only \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"software\"\n      }), \" can achieve.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Logistics & Inventory\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The processes that involve raw material acquisition up to the distribution of the final product are no exception to the scope of the application of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision in manufacturing\"\n      }), \". Logistics are paramount to reduce lead times and fulfill internal and external clients' needs. There are also many decisions regarding storage space and transportation routes to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"avoid incurring additional costs and delays\"\n      }), \" in the healthy flow of products.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Manufacturers can design and establish procedures for organizing inventory to feed and train \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision models to achieve vision-based inventory control\"\n      }), \". Once in production, the models can free workers from these tedious, error-prone repetitive tasks and outperform them.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,nJOzCt3bJfWmufvSq91cKRdo4.png\",\n      \"data-framer-height\": \"1424\",\n      \"data-framer-width\": \"1940\",\n      height: \"712\",\n      src: new URL(\"https://framerusercontent.com/images/nJOzCt3bJfWmufvSq91cKRdo4.png\").href,\n      style: {\n        aspectRatio: \"1940 / 1424\"\n      },\n      width: \"970\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Customized computer vision algorithms embedded in the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"manufacturer's inventory management system\"\n      }), \" aids in pinpointing the exact location of items. When cameras read a label, QR code, or a traditional barcode, the system can unmistakably \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"identify, track and trace an object\"\n      }), \". When packages are classified and transported by their size or weight, the system emits an alert if an error is made, and workers can reroute the package.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For an optimized flux of goods, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"video analytics\"\n      }), \" lets warehouse managers establish a beneficial distribution of the available physical space. With the added value of documenting warehouse operations, algorithms can also monitor the occupancy of traffic and storage areas to detect and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"recognize bottlenecks\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision-powered cameras\"\n      }), \" also monitor parking lots and dock occupancy. This is extremely useful to avoid delays and increased operating costs when coordinating loading and transport of deliverables.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Closing up\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We went over the main areas where \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision in manufacturing\"\n      }), \" adds great value in the manufacturing industry. Of course, this requires investing in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"good quality costs\"\n      }), \" and knowing manufacturing processes in full to be able to recognize opportunities for improvement.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"By now, it's clear that \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"the ROI of predictive maintenance, catching defects early, automating inspection, and optimizing logistics far outweigh the effort required\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Additionally, manufacturers have to get their message across to computer vision specialists for a successful implementation, which can be challenging.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At Pento, we have the privilege to have team members from different backgrounds, including Process and Industrial Engineers. They combine their computer vision skills to merge both worlds to craft \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"tailored solutions for the needs of a manufacturer client\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Are you looking for computer vision solutions for your manufacturing business? \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/contact\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Contact\"\n        })\n      }), \" us to bring you a step closer to your goals and become a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Lighthouse of the industry\"\n      }), \".\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"computer-vision-manufacturing\",\n  YSKHrdVc1: \"Computer Vision in Manufacturing: The 4th Industrial Revolution\"\n}, {\n  DD39DBmBH: 'var(--token-4741f72e-3b36-49cf-851b-1e44fa9a054a, rgb(245, 102, 135)) /* {\"name\":\"Red\"} */',\n  EZue1CzWP: \"2022-01-25T00:00:00.000Z\",\n  id: \"ZntL0juS7\",\n  ivFLyaMNq: \"The future of retail is here with Computer Vision. Learn how retailers use it to improve shopping experiences, manage stock and more.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/SpJQFJ6ZZedZkOqlle51eyZ2r4.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/SpJQFJ6ZZedZkOqlle51eyZ2r4.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/SpJQFJ6ZZedZkOqlle51eyZ2r4.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/SpJQFJ6ZZedZkOqlle51eyZ2r4.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"AI in business\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The future of retail is here, with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" (CV) being the name of the game.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"It is no longer a question of whether a company is entirely online or an in-person kind of business. Every existent business model in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail\"\n      }), \" can benefit from the boundless applications of this technology.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The ever-evolving field of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \", and its subset machine learning is continuously rolling out novel techniques to be applied in virtually every industry and field. In particular, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision (CV)\"\n      }), \" has been taking over \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail\"\n      }), \" by storm, with applications that can automate time-consuming tasks while keeping things accurate and adding tangible value.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"By processing images and videos, extracting and interpreting the information they contain, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision models\"\n      }), \" are a must-have tool for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"improving KPIs\"\n      }), \" in \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail\"\n      }), \". Retail giant \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Walmart\"\n      }), \" reported an increase of 2.8% in earnings due to process automation with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This blog post highlights the applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" that have had the greatest impact on the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail industry\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Read on to explore how retailers leverage these applications to keep up in today\u2019s retail world.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"The reality of retail\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With the emergence of the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://en.wikipedia.org/wiki/Omnichannel\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"\u2018omnichannel\u2019\"\n        })\n      }), \" commerce trend, the focus on the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"customer experience\"\n      }), \" across all platforms has become crucial to ensuring sales and loyalty to the brand.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(Link, {\n        href: \"https://hbr.org/2017/01/a-study-of-46000-shoppers-shows-that-omnichannel-retailing-works\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Harvard Business Review reports\"\n        })\n      }), \" an outstanding 73% of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"customers\"\n      }), \" use every touchpoint \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers\"\n      }), \" offer before purchasing online or in person. This means that shoppers interact with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers' digital and physical resources\"\n      }), \" before making a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"purchase\"\n      }), \". These resources could involve a website with an interactive catalog and personalized shopping suggestions, apps, as well as in-store tools.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"\u201CRetailers have been investing significantly in their digital transformations to respond to customer expectations and thrive in the new reality, and given the potential benefits, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" and analytics brought to life by improved technologies are indispensable parts of their business strategy\u201D, explained Matt Kramer, National Sector Leader, Consumer & Retail at KPMG.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"According to the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://risnews.com/retail-tech-study-2021?from=gate\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"latest Annual Retail Technology Study\"\n        })\n      }), \", \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"60% of retailers are increasing their IT budget\"\n      }), \", with a data-driven strategy focused on Advancing Analytics Tools and Capabilities, Advancing Digital Transformation, and Accelerating \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Pricing Optimization\"\n      }), \", to name a few.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,GftsuNmGtwZk3llSyUG2OSLmCcA.png\",\n      \"data-framer-height\": \"866\",\n      \"data-framer-width\": \"1550\",\n      height: \"433\",\n      src: new URL(\"https://framerusercontent.com/images/GftsuNmGtwZk3llSyUG2OSLmCcA.png\").href,\n      style: {\n        aspectRatio: \"1550 / 866\"\n      },\n      width: \"775\"\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"How can retailers keep up?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The global \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI in the retail market\"\n      }), \" was USD 3.75 billion in 2020. For the 2021-2028 period it\u2019s expected to grow from $4.84 to $31.18 billion. As of today, there\u2019s no indication that this trend will change.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Ongoing technological breakthroughs are powering the shift towards a more efficient and agile industry. What remains constant is focusing on delivering value to customers while reducing costs.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Technology opens up a whole new world of capabilities that otherwise would not be feasible due to time and money constraints. These capabilities await to be exploited, and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers\"\n      }), \" are not wasting time.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Education is critical; podcasts, \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://nrf.com/events/nrf-nxt-webinar-series-week-5\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"webinars\"\n        })\n      }), \", and similar \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://nrf.com/retail-events\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"events\"\n        })\n      }), \" are being held, where industry leaders discuss \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \", \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \", and its implications moving forward. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Retailers\"\n      }), \" have to set a measurable goal they want to achieve with the application of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Artificial Intelligence\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The next step is to choose a team of experts with the ability to understand the particulars of a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailer\u2019s data\"\n      }), \". This is because the quality and quantity of data are critical for the models to succeed. The experts work from there to create sophisticated applications that keep revolutionizing how \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail operations\"\n      }), \" are done.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The integration of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \" and specifically \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" into the infrastructure of a business stops being a matter of choice when avoiding it means falling behind the competition.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"First things first: where\u2019s the data coming from?\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" works on \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"visual resources: videos and images\"\n      }), \". The different techniques that the technology employs (object identification, detection, and tracking, image segmentation, and classification, among others) can either transform the data for a set purpose or take it as is to extract information from it.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"in-store shopping\"\n      }), \", data is collected from camera feeds, allowing for countless \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"visual analytics\"\n      }), \" to improve customer engagement and management of inventory, to name a few. For \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"online businesses\"\n      }), \", data comes from \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"images\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"videos\"\n      }), \" that require processing to showcase products and services.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,4A6HfkD9PdLLoptUC6KbsF2k8.png\",\n      \"data-framer-height\": \"594\",\n      \"data-framer-width\": \"1540\",\n      height: \"297\",\n      src: new URL(\"https://framerusercontent.com/images/4A6HfkD9PdLLoptUC6KbsF2k8.png\").href,\n      style: {\n        aspectRatio: \"1540 / 594\"\n      },\n      width: \"770\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The general pipeline of the construction of a computer vision model.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Additionally, online and brick-and-mortar stores can collect massive amounts of data from the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"customer\u2019s digital behavior\"\n      }), \" according to their navigation patterns, preferences, and how they interact with the catalog of products.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This data is the input for the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision models\"\n      }), \" for learning or training purposes. This means that the models use the data they\u2019re fed to later use it as criteria for making decisions when faced with new data.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This way, based on what a model learned during training, it can provide an accurate output: the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automation\"\n      }), \" of a repetitive task, the classification of products by size, color, or the detection and tracking of a moving client around the store.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Our experience with the application of computer vision in retail\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"At Pento, we have had the opportunity to develop different frameworks for tackling the most diverse problems. Our clients come from various areas of the industry with very particular challenges.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The nature of the applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" is fairly different, but they all share the same purpose:\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Profit maximization\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Intelligent automation\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Eliminate cost inducing errors\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Benefit from concealed opportunities that lie on the data\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Increase customer engagement\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Here is a list of some of the biggest return on the investment applications of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision\"\n      }), \" in retail.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Computer vision: 7 applications in retail\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"1) Marketable images through automatic image retouching\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Shopping as we knew it was deeply transformed by the pandemic. Trying on clothing, touching items, and inspecting them up close became an exception. Therefore, online shopping was catapulted, and the focus shifted to creating a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"smooth and natural online shopping experience\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Consignment companies are a clear example of the successful use of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automatic image retouching\"\n      }), \". Thredup, What Goes Around Comes Around, and LXRandCo come to mind. This type of business receives large quantities of unique items and must process them into a final product that looks professional and attractive to buyers.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This translates to colossal amounts of images that require a great deal of time to accurately classify, retouch and label, among other tasks. Employing a team of humans for the whole process is highly costly and error-prone, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"making it impossible to be scalable\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"To achieve images that depict products as closely as possible to reality, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" tools like \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automated image retouching\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"background removal\"\n      }), \" are a must. It takes approximately 5 minutes for a professional to achieve a high-quality image. \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Automation through computer vision\"\n      }), \" reduces it to a mere 10 seconds while allowing it to scale to thousands of image edition simultaneously.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(Link, {\n        href: \"https://www.solidgrids.com/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"SolidGrids\"\n        })\n      }), \" is the perfect ally, not only for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image retouching\"\n      }), \" but also for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"fine-tuning images\"\n      }), \" with advanced techniques to accurately represent a brand.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,geLAAmJ96vUJdJuoCV5idCw.jpg\",\n      \"data-framer-height\": \"559\",\n      \"data-framer-width\": \"798\",\n      height: \"279\",\n      src: new URL(\"https://framerusercontent.com/images/geLAAmJ96vUJdJuoCV5idCw.jpg\").href,\n      style: {\n        aspectRatio: \"798 / 559\"\n      },\n      width: \"399\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"At Pento understand the importance of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"images ready for publication\"\n      }), \" for the sales pipeline, and that's why we created this useful product. The benefits of implementing these tools outweigh the efforts by a high margin. It eliminates the excessive time and errors that inevitably occur when humans do the retouching.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Polished, alluring images in visually appealing catalogs significantly impact \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"purchase intention\"\n      }), \". The frequency of product returns is also reduced when the customer is presented with an item that looks no different from its online aspect.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"2) Computer Vision for Product discoverability\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"It\u2019s helpful to think of the representation of a product in terms of its taxonomy and the category an image belongs to. Simply put, the taxonomy of an image refers to the attributes that make the image the way it is. Categories allow for the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"classification of an image according to certain criteria\"\n      }), \" to enter that category.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The pictures of the dresses of a summer collection for a retail brand are composed of several attributes: fabric, color, length, silhouette. These characteristics come in handy for customers to filter by when looking for a specific kind of dress.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Suppose the attribute a customer prioritizes for their online search is not present in the image description. In that case, it probably won\u2019t be found, and the customer won't move forward with the purchase. Here is where \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" comes to save the day, being able to classify images based on their looks and not their tag.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"3) Product recommendation through visual similarity\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Product suggestions that go along with what\u2019s already in a grocery shopping cart or a piece of clothing that might complete an outfit are examples of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision at retailers' service\"\n      }), \". It can go beyond and suggest items based on past purchases or a customer's style.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision models\"\n      }), \" can represent the images in a way that searches by similarity are done seamlessly and fast, even when working with hefty amounts of data. This increases the likelihood of the shopper adding additional items to their cart and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"enhances the customer experience\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"You can visit one of our recent \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/embeddings-overview\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"blog\"\n        })\n      }), \" posts for a more detailed take on this and embeddings specifically. The leading global fashion retailer Zara is not new to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"AI\"\n      }), \". Their \u2018see similar\u2019 button allows the shopper to continue exploring similar items, which is particularly useful when encountering an out-of-stock event. This aids in more natural navigation of the catalog and an overall positive shopping experience.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Our \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"image recommender\"\n      }), \" has dramatically improved the catalog navigation of a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailer\"\n      }), \" client of ours who works with image galleries. They are currently reaping the benefits from this wise investment, and we continue working to better their operations.\"]\n    }), /*#__PURE__*/_jsx(\"h4\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Search engines and visual similarity work together\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Visual search\"\n      }), \" for online shopping is one of the fastest-growing trends in recent years. It\u2019s critical to offer quality images that lead potential customers to the retailer. Social media is one powerful driver of trends, and even the most sophisticated customers use images they see online to search for similar items locally available and promote them online.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For this application, the aim is to understand what makes two products similar across different categories. It requires a powerful and detailed representation of the images. The \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision models\"\n      }), \" should be able to capture the right information to come back to it when comparisons are made.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The way the attributes relate to each other is an important key point for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" to provide accurate results. Similar items should appear as suggestions for the customer looking for summer dresses while going through the catalog. This raises the question of what exactly makes two dresses similar: it could be the silhouette, type of neck, length, or another attribute.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The precision with which these suggestions are made is critical, keeping in mind that it contributes to the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"customer experience\"\n      }), \". To approach these challenging problems, we stay up to date with the latest technology through continuous research to deliver the best solutions with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision for retailers\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you\u2019re interested in what we do and want to learn more, head to our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"blog\"\n        })\n      }), \", where our team shares page-turner posts and valuable resources.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"4) Behavioral analytics with Computer Vision\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"When customers approach a store, they usually glance at the storefront, paying attention to specific items. Once inside, they may spend some time checking out products and then go on with their shopping. These are \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"buying habits\"\n      }), \", and they hold great value when analyzed.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision analyzes these patterns and tracks the shopper traffic\"\n      }), \", extracting information that adds value to the store operations and marketing campaigns.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The technology can detect and classify the shoppers according to their demographics, discover areas with \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"high shopper traffic\"\n      }), \" and \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"cold spots where products go unnoticed\"\n      }), \". \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Bottlenecks\"\n      }), \" around the store could also be detected, along with long check-out lines that greatly affect the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"customer experience\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,wU0tKRO7MF6zfeMWOl2DaNbrbh0.png\",\n      \"data-framer-height\": \"659\",\n      \"data-framer-width\": \"1024\",\n      height: \"329\",\n      src: new URL(\"https://framerusercontent.com/images/wU0tKRO7MF6zfeMWOl2DaNbrbh0.png\").href,\n      style: {\n        aspectRatio: \"1024 / 659\"\n      },\n      width: \"512\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This analysis provides \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"actionable insights\"\n      }), \" that affect how \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers\"\n      }), \" set their planograms to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"increase sell-through rates\"\n      }), \". What\u2019s more, rigid marketing principles no longer dictate the timing for rolling out a line of products or how they are to be displayed. This is why this industry is increasingly adopting computer vision: the ability to learn from the customer and act accordingly.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer vision\"\n      }), \" also provides \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"theft behavior detection\"\n      }), \". The technology learns what constitutes it, recognizes it, and alerts staff accordingly.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"5) Stock management with Computer Vision\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Another vital part of any business is the \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"efficient management of inventory\"\n      }), \". This involves many error-prone and time-consuming tasks, making it an excellent candidate for \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"automation\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"By feeding the system \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"visual data\"\n      }), \" from the shelves and building a robust \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"dataset\"\n      }), \", \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" can properly identify and classify items and quantities while also documenting every movement. Shelf analytics and records of historical sales trends help \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"prevent stockouts\"\n      }), \" and low on-shelf availability events.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,ZCOWdguWBEYLmhtueyDDkMsYgQ.png\",\n      \"data-framer-height\": \"426\",\n      \"data-framer-width\": \"500\",\n      height: \"213\",\n      src: new URL(\"https://framerusercontent.com/images/ZCOWdguWBEYLmhtueyDDkMsYgQ.png\").href,\n      style: {\n        aspectRatio: \"500 / 426\"\n      },\n      width: \"250\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This application of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision in retail\"\n      }), \" impacts the business in question and allows for the detection of possible \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"supply chain\"\n      }), \" issues. Ultimately, this also results in better use of personnel time, allowing employees to focus on more strategic tasks.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"6) Price automation and optimization for profit maximization\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This application is yet another example of tasks done by humans, basing the pricing decisions on factors that might not always be objective. With \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision and price automation, retailers\"\n      }), \" dispense with the staff who have to manually apply the price to each item, avoiding the enormous amount of time, errors, and money this takes.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Price automation\"\n      }), \" is one of the most cost-effective \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"machine learning applications in retail\"\n      }), \". Here \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" plays a secondary role, with machine learning techniques as the core for pricing algorithms.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Price optimization is also important, given that prices are not static and are affected by shopping trends, holiday seasons, and supply and demand dynamics. Giving discounts when there\u2019s high demand for a certain product is just as damaging for profits as keeping products at a permanently high price even if they have sold poorly.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Factors like the uniqueness of a product and what the competition is offering, are also considered when setting the best price for a particular item and a pricing strategy in general.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Increased productivity and scalability are other main advantages \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers benefit\"\n      }), \" from when using \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" to deal with the hassle of pricing. A price optimization strategy where the technology sets the prices and modifies them accordingly is a sure way not to lose on opportunities to \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"maximize return on sales\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"7) Cashierless stores exist thanks to computer vision\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Amazon Go and Grabango are examples of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" and other \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"machine learning\"\n      }), \" techniques applied to create an innovative way of doing in-store shopping.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"After authentication on the store\u2019s app, shoppers can pick up the products they need (or put them back on the shelves) and then pay automatically when leaving the store. This involves \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"facial recognition\"\n      }), \" of the users, in-shelf sensors, smart carts, and cameras that track the items throughout the store.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Even though there are employees assisting those new to the experience, there is no need for traditional grocery store workers. The shopping experience is transformed: it eliminates lines and check-outs, \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"saving valuable time\"\n      }), \" for both the customer and the retailer.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Even though this is an application of \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision\"\n      }), \" in combination with other technology that may not apply to most \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers\"\n      }), \", it\u2019s worth mentioning since it establishes a new benchmark for how shopping is done.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"To close up\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"With the number of images and videos available increasing daily by the billion, and novel \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"computer vision solutions tailored to a retailer's needs\"\n      }), \", there\u2019s no end in sight for the solutions AI brings to the table.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"Retailers\"\n      }), \" already have the data by using in-store cameras and tracking online navigation paths.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The higher the amount of data the system scans and analyses, the greater its chances of producing far more accurate results for the business. By adopting a smart \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retail\"\n      }), \" model, this data becomes a \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"business asset\"\n      }), \" that, once exploited, leads to well-thought-out strategies and growth.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The pandemic acted as a springboard for all technology-related tools. Forward-thinking \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"retailers\"\n      }), \" should adjust to this new reality and be prepared for similar dramatic events in the future. We say this because it\u2019s essential to avoid uncertainty-related losses and explore new opportunities once AI is embedded in the operations and delivering value daily.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"By now, it becomes clear that retailers should invest in AI solutions to keep up with demands and outperform the competition. As a CV consulting company, Pento's team has \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"extensive experience\"\n      }), \" in applied \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"Computer Vision strategies for the retail world\"\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We understand our customers' needs and create tailored, innovative solutions while also providing continuous guidance and assessment.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you want to know how to jump-start your computer vision journey, \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://calendly.com/pento/meeting-with-pento\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"schedule a meeting with us\"\n        })\n      }), \", we are ready to help \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"level up your business\"\n      }), \" and take up our next challenge.\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"computer-vision-retail-applications\",\n  YSKHrdVc1: \"Computer vision in retail: Top 7 applications that are transforming the industry\"\n}, {\n  DD39DBmBH: 'var(--token-bd377b4b-bd02-4975-a6e5-f4242e212fba, rgb(78, 204, 207)) /* {\"name\":\"Green\"} */',\n  EZue1CzWP: \"2021-12-31T00:00:00.000Z\",\n  id: \"PsZAiFFNk\",\n  ivFLyaMNq: \"In this article we share topics, techniques, and resources that had the greatest impact on our work during the year.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/y3oVsXIIakSFDwWnBKrx362TE.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/y3oVsXIIakSFDwWnBKrx362TE.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/y3oVsXIIakSFDwWnBKrx362TE.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/y3oVsXIIakSFDwWnBKrx362TE.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Yearly review\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"p\", {\n      children: \"Huge advancements in machine learning are made each year, and 2021 was not the exception. Through our consulting projects we had the chance to put some of them to work.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In this article, we share topics, techniques, and resources that had the greatest impact on our work during the year. We\u2019ll cover transformers applied to computer vision, techniques that enhance the generation of image embeddings, and new losses to deal with the most common classification pains in the neck.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Hopefully, this article will help you navigate through these topics and apply them to your own projects. It is worth noting that it is not meant to be an exhaustive list of trends or a SoTA review. Feel free to reach out if you have any questions or comments.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Attention\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,X0Juu6LKEXfQH7XLIjuoUigAbc.png\",\n      \"data-framer-height\": \"460\",\n      \"data-framer-width\": \"1950\",\n      height: \"230\",\n      src: new URL(\"https://framerusercontent.com/images/X0Juu6LKEXfQH7XLIjuoUigAbc.png\").href,\n      style: {\n        aspectRatio: \"1950 / 460\"\n      },\n      width: \"975\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"tl;dr \"\n      }), \"Attention-based models were introduced in NLP four years ago. Since the introduction of ViT, they have been slowly expanding to computer vision. Lately, promising work has been done around leveraging the capacity of the attention mechanisms of transformers architecture, with the generalization capabilities of convolutional blocks (CoAtNet by Google Research).\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Since 2014, multiple attention strategies have been introduced to computer vision models. From channel attention, spatial attention, and temporal attention to combinations of them. With the introduction of Transformers architecture for natural language processing tasks, there have been a lot of attempts to leverage it to computer vision as well. ViT \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#ViT\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[1]\"\n        })\n      }), \" was the big breakthrough for Transformers in CV. It stands for Vision Transformer and, for the first time, a model without convolutional layers was able to match state-of-the-art performance on classification datasets.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"ViT created a new wave of transformer-based models in CV, which rely heavily on attention mechanisms. One of the simpler paths to getting better results is to start with a good model and scale it as much as possible. This is exactly what the authors of ViT did \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#ViT2\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[2]\"\n        })\n      }), \"; they leveraged the capacity of a bigger model, more training data, and AugReg (data augmentation and model regularization) techniques to make everything fit together. They released multiple models (ViT-Ti/S/B/L) with different sizes, alongside hybrid models that use a ResNet model as the backbone. Besides the new models, they provided great practical insights on how to scale transformers-based models:\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"\u201CWe conclude that across a wide range of datasets, even if the downstream data of interest appears to only be weakly related to the data used for pre-training, transfer learning remains the best available option.\u201D\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"\u201COur analysis also suggests that among similarly performing pre-trained models, for transfer learning a model with more training data should likely be preferred over one with more data augmentation.\u201D\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"One of the authors, Lucas Beyer, wrote a great Twitter thread with the main takeaways:\"\n    }), /*#__PURE__*/_jsxs(\"h6\", {\n      children: ['\"AugReg\" is just a shorthand for \"data augmentation and model regularization\". We focus on the (now standard) RandAugment, Mixup, Dropout, and Stochastic Depth (weight decay is not a reg).', /*#__PURE__*/_jsx(\"br\", {}), /*#__PURE__*/_jsx(\"br\", {}), \"Adding AugReg to pretraining is worth about an order of magnitude increase in dataset size \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://t.co/HbadR7eoeA\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"pic.twitter.com/HbadR7eoeA\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"h6\", {\n      children: [\"\u2014 Lucas Beyer (@giffmana) \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://twitter.com/giffmana/status/1406816603354845185?ref_src=twsrc%5Etfw\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"June 21, 2021\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"And we recommend the TIMM implementations in Pytorch: \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/rwightman/pytorch-image-models\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"https://github.com/rwightman/pytorch-image-models\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Purely transformer-based models are still behind SoTA convolutional networks. But there is a lot of opportunity in combining the two approaches. One of the models that caught our curiosity this year is CoAtNet \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#CoAtNet\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[3]\"\n        })\n      }), \" by Google Research. It leverages the model capacity of the attention mechanisms of transformers architecture, with the generalization capabilities of convolutional blocks. They were able to reach state-of-the-art performances on multiple datasets while constraining the training resources.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,tiq67li8vcER7lLTgajI7O7n0.png\",\n      \"data-framer-height\": \"552\",\n      \"data-framer-width\": \"2834\",\n      height: \"276\",\n      src: new URL(\"https://framerusercontent.com/images/tiq67li8vcER7lLTgajI7O7n0.png\").href,\n      style: {\n        aspectRatio: \"2834 / 552\"\n      },\n      width: \"1417\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As concluded by Meng-Hao Guo et al. \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#Attention-Survey\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[4]\"\n        })\n      }), \", attention mechanisms are key in SoTA CV models, and it is expected that there will be further progress in this direction.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"References:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2010.11929\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale\"\n            })\n          }), \" Dosovitskiy et al., 22 Oct 2020\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2106.10270\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers\"\n            })\n          }), \" Steiner et al., 18 Jun 2021\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2106.04803v2\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"CoAtNet: Marrying Convolution and Attention for All Data Sizes\"\n            })\n          }), \" Dai et al., 9 Jun 2021\"]\n        })\n      }), /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2111.07624v1\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Attention Mechanisms in Computer Vision: A Survey\"\n            })\n          }), \" Guo et al., 15 Nov 2021\"]\n        }), /*#__PURE__*/_jsx(\"p\", {\n          children: /*#__PURE__*/_jsx(\"br\", {\n            className: \"trailing-break\"\n          })\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Metric learning\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"tl;dr \"\n      }), \"Generating good embeddings is crucial. Deep metric learning leverages the capacity of deep learning models to generate them. There has been a lot of progress since the introduction of TripletLoss, such as SphereFace, CosFace, and ArcFace. The last couple of years were not the exception, new losses were introduced, as well as novel end-to-end trainable approaches (Intra-batch), and the comeback of proxy-based approaches (ProxyNCA++).\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Metric learning refers to methods used to generate vector representations given a set of inputs. In computer vision, it means creating vector representations (check out our article about image embeddings) that capture semantic information from the images relevant to the task at hand. As it happens for most computer vision tasks, deep learning approaches have been dominant in metric learning. It mainly consists of choosing the right components: The feature extractor: the model architecture that will be used to map our inputs into embeddings. A distance function: a function that indicates how similar the embeddings are in the n-dimensional space. A loss: the function used to train the feature extractor.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The advancements in these types of models come from newer and better losses. Since the introduction of the Triplet Loss \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#FaceNet\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[1]\"\n        })\n      }), \", there has been a lot of progress in contrastive losses.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,rwmA25bUPNWv0rCPxssMAPGppok.png\",\n      \"data-framer-height\": \"1759\",\n      \"data-framer-width\": \"2400\",\n      height: \"879\",\n      src: new URL(\"https://framerusercontent.com/images/rwmA25bUPNWv0rCPxssMAPGppok.png\").href,\n      style: {\n        aspectRatio: \"2400 / 1759\"\n      },\n      width: \"1200\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In 2017, the SphereFace \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#SphereFace\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[2]\"\n        })\n      }), \" approach was introduced which relies on the angular distance and angular margins. This was followed by a new set of approaches based on this idea, including CosFace \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#CosFace\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[3]\"\n        })\n      }), \" and ArcFace \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#ArcFace\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[4]\"\n        })\n      }), \". We recommend reading the in-depth survey about deep metric learning by Chan Kha Vu.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In 2021 we had the chance to work on some challenging projects where metric learning approaches were a good fit. We started with the traditional Triplet loss and one of its extensions, the Quadruplet loss, to leverage the data available, and then we had the opportunity to explore the SoTA.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"From all the advances on this area, here are the two that we highlight:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h4\", {\n      children: /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#proxynca++:_revisiting_and_revitalizing_proxy_neighborhood_component_analysis\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ProxyNCA++: Revisiting and Revitalizing Proxy Neighborhood Component Analysis\"\n        })\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"em\", {\n        children: \"Teh et al, 2020\"\n      })\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,lLoJiFajfiR04aPm0vgwLTzZNa4.png\",\n      \"data-framer-height\": \"480\",\n      \"data-framer-width\": \"926\",\n      height: \"240\",\n      src: new URL(\"https://framerusercontent.com/images/lLoJiFajfiR04aPm0vgwLTzZNa4.png\").href,\n      style: {\n        aspectRatio: \"926 / 480\"\n      },\n      width: \"463\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This contribution extends ProxyNCA \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#ProxyNCA\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[5]\"\n        })\n      }), \" with multiple enhancements. Let\u2019s analyze NCA and ProxyNCA before diving into ProxyNCA++.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Neighborhood Component Analysis (NCA) uses a distance metric to classify inputs into classes. Its goal \u201Cis to maximize the probability that points assigned to the same class are neighbors, which, by normalization, minimizes the probability that points in different classes are neighbors\u201D.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"ProxyNCA is inspired by NCA and it attempts to address one of NCA\u2019s main drawbacks, NCA computational costs grow polynomially with the number of samples. ProxyNCA introduces the idea of classes proxies, embeddings that represent each class and are stored as learnable parameters. Comparing samples to proxies instead of other samples reduces the number of possible combinations.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"ProxyNCA++ extends the idea of ProxyNCA by applying multiple enhancements, from the way probabilities to proxies are assigned, to temperature scaling, and exploring different pooling strategies.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Official implementation at \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/euwern/proxynca_pp\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"https://github.com/euwern/proxynca_pp\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h4\", {\n      children: /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#learning_intra-batch_connections_for_deep_metric_learning\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Learning Intra-Batch Connections for Deep Metric Learning\"\n        })\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"em\", {\n        children: \"Seidenschwarz et. al., 2021\"\n      })\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,BJ7y6kuDlkDAP1YP0pXQdn1B0.png\",\n      \"data-framer-height\": \"568\",\n      \"data-framer-width\": \"1494\",\n      height: \"284\",\n      src: new URL(\"https://framerusercontent.com/images/BJ7y6kuDlkDAP1YP0pXQdn1B0.png\").href,\n      style: {\n        aspectRatio: \"1494 / 568\"\n      },\n      width: \"747\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"It presents a fully learnable framework that leverages MPNN \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#MPNN\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[6]\"\n        })\n      }), \" to exchange messages between batches in order to adjust the global distribution of the embeddings. Each node on the graph network is an embedding generated by the CNN backbone. Messages are shared between nodes of different batches to adjust the representation based on the global distribution. It also implements an attention mechanism to measure the importance of the neighbors. This allows each sample to choose what other samples to use in order to predict the decision boundary.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In comparison to the Triplet approach, this is a radical change. It removes the complexity of choosing the right triplet, and even more, it removes the triple constraints and allows samples to choose from the entire mini-batch. And as the cherry on top, the model is fully learnable and end-to-end trainable! It is an amazing contribution that has yielded SoTA results across multiple datasets.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Official implementation at \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/dvl-tum/intra_batch\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"https://github.com/dvl-tum/intra_batch\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"References:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1503.03832\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"FaceNet: A Unified Embedding for Face Recognition and Clustering\"\n            })\n          }), \" Schroff et al., 12 Mar 2015\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1704.08063\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"SphereFace: Deep Hypersphere Embedding for Face Recognition\"\n            })\n          }), \" Liu et al., 26 Apr 2017\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1801.09414\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"CosFace: Large Margin Cosine Loss for Deep Face Recognition\"\n            })\n          }), \" Wang et al., 29 Jan 2018\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1801.07698\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"ArcFace: Additive Angular Margin Loss for Deep Face Recognition\"\n            })\n          }), \" Deng et al., 23 Jan 2018\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1703.07464\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"No Fuss Distance Metric Learning using Proxies\"\n            })\n          }), \" Movshovitz-Attias et al., 21 Mar 2017\"]\n        })\n      }), /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/1704.01212v2\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Neural Message Passing for Quantum Chemistry\"\n            })\n          }), \" Glimer et al., 4 Apr 2017\"]\n        }), /*#__PURE__*/_jsx(\"p\", {\n          children: /*#__PURE__*/_jsx(\"br\", {\n            className: \"trailing-break\"\n          })\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Multilabel Classification\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [/*#__PURE__*/_jsx(\"strong\", {\n        children: \"tl;dr \"\n      }), \"Facing the challenge of a highly imbalanced dataset or a poorly tagged one is something every machine learning engineer that tackled a classification problem has encountered. In the past two years, innovative techniques and losses have been developed to solve these issues. Some of these include Asymmetric Loss, Distribution-Balanced Loss, and even estimating the labels distributions.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Multilabel classification is a common machine learning problem in which the goal, most of the time, is to tag an image with one or more possible tags. This presents several challenges. Firstly, there are usually a high number of possible tags, which also leads to probably under-tagged datasets. For example, in the popular dataset of OpenImages (V6), the tag \u201CLip\u201D appears on 1,121 images, whereas the tag \u201CHuman Face\u201D appears on 327,899 images. Ben-Baruch and Ridnik \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#AsymmetricLoss2\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[1]\"\n        })\n      }), \" implement a partial annotations approach to estimate the class distribution with a separate model to predict possible missed labels in the dataset to solve this issue. This method prevents the model from labeling \u201Ccommon\u201D tags that are under-represented as negative during training.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,p4yU7YNivXTqdlnFWvnXhCsZJVo.jpg\",\n      \"data-framer-height\": \"746\",\n      \"data-framer-width\": \"1296\",\n      height: \"373\",\n      src: new URL(\"https://framerusercontent.com/images/p4yU7YNivXTqdlnFWvnXhCsZJVo.jpg\").href,\n      style: {\n        aspectRatio: \"1296 / 746\"\n      },\n      width: \"648\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The second challenge is that there is a very high-class imbalance on positive tags in most real-world cases. This manifests in long-tail distributions where positive tags are well represented, while rarer tags are widely underrepresented. Consequently, model training is a lot harder, as the model struggles to learn the rarer classes. Finally, due to the nature of this type of classification, there is a very imbalanced positive-negative relationship. The consequence is that the model ends up classifying most images as negative and makes it harder for the model to learn from the positive samples.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The consequences generated by having a highly imbalanced dataset (in the two previously mentioned ways) are worsened because most approaches for multilabel classification use Binary Cross Entropy loss (BCE), which is designed to be symmetric, so positive and negative labels are treated the same. This makes training the model even harder, as it can\u2019t properly learn from the positive classes. To address this, Hu and Huang \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#DistributionBalancedLoss\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[2]\"\n        })\n      }), \" suggest a new loss function to handle the imbalance in multi-label problems statically. They call this loss Distribution-Balanced Loss. This loss introduces a re-balanced weighting after resampling, which alleviates the impact of long-tail distributions, and negative-tolerant regularization that attempts to overcome the over-suppression of negative labels.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Further advancement of this loss was proposed by Ben-Baruch \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/blog/computer-vision-2021#ASL\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"[3]\"\n        })\n      }), \" called Asymmetric Loss (ASL). This loss implements two key concepts that help to address the high negative-positive imbalance and ground-truth mislabeling:\"]\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Asymmetric Focusing\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Asymmetric Probability Shifting\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We won\u2019t go into detail in this blog post explaining these two concepts but stay tuned for our future blog post, where we will give a more technical analysis about these types of ML problems and go more in-depth in this paper. For now, this new loss function is capable of fine-tuning how much the loss is influenced by the positive and negative labels, solving the issue that most of the available labels will be negative for any given image. This way, the model learns meaningful features for the rare positive samples and generalizes a lot better, especially when the number of possible tags is big, and most labels will be negative.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Other popular methods for dealing with multi-label classification problems and long-tail distributions focus on resampling and rebalancing the dataset by eliminating images from the dataset with popular tags. This often doesn\u2019t lead to better results as we are eliminating useful information by deleting tagged images. By changing the losses to better deal with these issues we get much better end results without any loss of information. Finally, there is a PyTorch implementation of the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/Alibaba-MIIL/ASL/blob/main/src/loss_functions/losses.py\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ASL loss\"\n        })\n      }), \" that is a drop-in replacement for the classical BCE loss. The only thing to keep in mind is that this loss adds a couple of new hyperparameters that require some prior knowledge and fine-tuning.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"References:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2110.10955\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Multi-label Classification with Partial Annotations using Class-aware Selective Loss\"\n            })\n          }), \" Ben-Baruch et al., 21 Oct 2021\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2007.09654\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Distribution-Balanced Loss for Multi-Label Classification in Long-Tailed Datasets\"\n            })\n          }), \" Wu et al., 19 Jul 2020\"]\n        })\n      }), /*#__PURE__*/_jsxs(\"li\", {\n        \"data-preset-tag\": \"p\",\n        children: [/*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(Link, {\n            href: \"https://arxiv.org/abs/2009.14119\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"Asymmetric Loss For Multi-Label Classification\"\n            })\n          }), \"Ben-Baruch et al., 29 Sep 2020\"]\n        }), /*#__PURE__*/_jsx(\"p\", {\n          children: /*#__PURE__*/_jsx(\"br\", {\n            className: \"trailing-break\"\n          })\n        })]\n      })]\n    }), /*#__PURE__*/_jsx(\"h1\", {\n      children: \"Our predictions for 2022\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Computer vision, as a field, advances at an impressive speed and it\u2019s part of what draws us to the field. As a consulting company, we try to stay ahead of the curve and identify which areas (although it is very hard!) are prone to have a breakthrough in the near future. Here is a top 3 area that we believe will have the biggest impact on our solutions:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"em\", {\n            children: \"Metric learning\"\n          }), \". Powerful architectures such as Intra-batch mentioned above will be introduced trying to leverage global information about the distributions.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"em\", {\n            children: \"Learning from adversarial examples\"\n          }), \". Contrastive learning relies a lot on the samples chosen during training, in particular the positive. This adds complexity and restrictions to the training. Being able to artificially generate cases that reinforce positive and negative signals to the model will have huge returns.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"em\", {\n            children: \"Learning with Limited Data\"\n          }), \". Gathering data is hard, at Pento we are constantly looking for ways to make the process cheaper. By improving the labeling process to get the most out of what is available. Of course, this is a pain to any company and luckily for us there has been a lot of progress around these types of issues.\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Hope you enjoyed our main takeaways from this 2021 related to CV. Feel free to drop us a line telling us what you think and make sure to follow our blog if you\u2019d like to read more about computer vision and what we do here at Pento. Be safe!\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    })]\n  }),\n  Tu_Pd0zTZ: \"computer-vision-2021\",\n  YSKHrdVc1: \"Our top computer vision learnings from 2021\"\n}, {\n  DD39DBmBH: 'var(--token-81c88cf7-3b7f-4171-9140-39d2c84ed790, rgb(61, 161, 255)) /* {\"name\":\"Blue\"} */',\n  EZue1CzWP: \"2021-09-15T00:00:00.000Z\",\n  id: \"H8fx94M3_\",\n  ivFLyaMNq: \"Understand the impact of embeddings and how to gain value from your data.\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/RCliN1T9IJo3DJ9UCiHYJ0hns.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/RCliN1T9IJo3DJ9UCiHYJ0hns.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/RCliN1T9IJo3DJ9UCiHYJ0hns.png\").href} 1012w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Computer Vision\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"p\", {\n      children: \"Do you have lots of data and are unsure of how to gain value from it? Do you think computer vision models require a large investment of hours of tagging and labeling data in order to work correctly? Well, this post will shed some light on how to avoid those extensive hours and loss of valuable time by using embeddings.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"AI research is moving fast to make the creation of ML models faster and less dependent on humans. How? By moving towards machine learning models purely based on existing data without the need of hand labeling in order to create datasets.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In the past, reigning CV methods required labeled data in order to train models used for, as an example, image similarity. This meant tagging thousands of images, one by one, which of course can lead to human error and it is also a huge investment of valuable time. Nowadays, however, the state of the art models in computer vision have evolved so much that you can create models used for recommender systems based on similarity, detect objects in an image and even classify them, just using unlabeled data.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Keep on reading to find out the possible ways in which the evolution of these techniques can help your business.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Express embeddings basics\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The main driver behind all of this are \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"embeddings\"\n      }), \". If you are already immersed in the ML world you probably have already heard about them. Either because of how they have revolutionized natural language processings (NLP) techniques or because of the breakthroughs they are generating in computer vision (CV). But just in case you are not familiar with the term, let\u2019s go over the embedding basics.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"What are these so-called embeddings? I don\u2019t want to take all the fun out of it, but an embedding is just a vector (a list of numbers) that represents an image, text or other form of data. These vectors should have certain properties in order to be considered proper embeddings. Some of good embeddings characteristics are:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Embeddings capture semantics from the input data.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Semantically similar data will have close embeddings, while semantically dissimilar data will have distant embeddings.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"The same embeddings can be used across different models.\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Let\u2019s picture this with a quick example by describing embeddings for an e-commerce site. We have probably thousands of products which have information like price, section, name, etc and many pictures associated with it. Tabular data is easy to handle in terms of size. It is also easy to group: similar prices go together, similar brands too, and so on. But what about all the information in the images? Well, imagine an \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"[x, y, z]\"\n      }), \" vector describing an image of a mobile phone. The first coordinate represents the main color, the second the main shape and the third the logo found in the image. Similar colored phones have similar x-coordinates, the ones with similar shapes will have close y-coordinates and the brand will be represented by the z-coordinate.\"]\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,6sycMuvUM76IrkRk7KyIV0iLRA.png\",\n      \"data-framer-height\": \"788\",\n      \"data-framer-width\": \"940\",\n      height: \"394\",\n      src: new URL(\"https://framerusercontent.com/images/6sycMuvUM76IrkRk7KyIV0iLRA.png\").href,\n      style: {\n        aspectRatio: \"940 / 788\"\n      },\n      width: \"470\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We have gone from heavy images to 3 numbers in no time. And this is what embeddings are all about! By using embeddings \", /*#__PURE__*/_jsx(\"strong\", {\n        children: \"you can abstract the important information in an image, reducing the size and being able to easily compare this data\"\n      }), \". But that is not all. Imagine we combine this vector with the price, then we add the section and so on. It allows us to combine different types of data in an easy way.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Of course, this is just an overly simplified example for the sake of explaining the idea. We cannot abstract correctly an image\u2019s information into only 3 numbers, but we can indeed obtain the relevant information of an image using state of the art embedding models, such as DINO or BYOL. These methods bypass the typical challenges related to computer vision models such as the amount of time required for labelling data.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Similarly, ML models can be used to obtain embeddings from other types of data, such as audio or text. As you can imagine, the amount of tasks they can be used in is enormous. Some of them include classifying images, image segmentation, and even to combine different types of data in a single model. This means you can have an embedding for an object that combines an embedding of their picture and one of their attributes, such as color, weight or brand. Not to mention the reduction in dimensions achieved by representing a whole object, movie, phone, etc as a vector.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"State-of-The-Art\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Now, picturing how this can be done for the attributes of an object or a text might be easier than imagining it for an image. So, how can this be applied to images? Can it identify whether it has people in it? What about other objects that are present? Can it detect the texture? Well, the current state of the art allows us to identify these characteristics without making them explicit. But first, we\u2019ll go over what had to be done to train a model before SimCLR arrived.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Image similarity or image classification algorithms used to be based on contrastive losses methods. This meant having labeled data so that the model could learn by creating far away embeddings for different classes and similar embeddings for images from the same class. Lots and lots of labeled data were required in order to obtain adequate results with the classic ResNet50 (which we still love though!). Fortunately, SimCLR (2020) appeared and since then, self-supervised methods have been improving continuously, being BYOL (2020) and DINO (2021) two of our aces up our sleeves we have used to leave some of our clients totally flabbergasted.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: ['\"A linear classifier trained on self-supervised representations learned by SimCLR achieves 76.5% top-1 accuracy, which is a 7% relative improvement over previous state-of-the-art, matching the performance of a supervised ResNet-50. When fine-tuned on only 1% of the labels, we achieve 85.8% top-5 accuracy, outperforming AlexNet with 100X fewer labels.\" - ', /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2002.05709\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"A Simple Framework for Contrastive Learning of Visual Representations\"\n        })\n      })]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: ['\"While state-of-the art methods rely on negative pairs, BYOL achieves a new state of the art without them. BYOL reaches 74.3% top-1 classification accuracy on ImageNet using a linear evaluation with a ResNet-50 architecture and 79.6% with a larger ResNet. We show that BYOL performs on par or better than the current state of the art on both transfer and semi-supervised benchmarks.\" - ', /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2006.07733\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Bootstrap your own latent: A new approach to self-supervised Learning\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: ['\"Our method is not only better at capturing the shared information between two domains but is more generic and can be applied to a broader range of problems. The proposed framework performs well even in challenging cross-modal translations, such as video-driven speech reconstruction, for which other systems struggle to maintain correspondence.\" - ', /*#__PURE__*/_jsx(Link, {\n        href: \"https://arxiv.org/abs/2102.09281\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"DINO: A conditional energy based GAN domain translation\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"How do self-supervised learning (SSL) methods differ from contrastive loss methods? In SSL, the model is trained to create similar embeddings for an image and an augmented version of it. By using one single image, no labels are needed! So yes, you can train an image classification model based on unlabeled data using state of the art SSL methods.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Use cases\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The number of ways of how these techniques can be applied to industries is immense. I\u2019ll mention a few just to exemplify:\"\n    }), /*#__PURE__*/_jsxs(\"ul\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Recommendation systems\"\n          }), \" like the ones on movie sites. Embeddings can represent both movies and users. Similar users tend to watch similar movies. By having user-embeddings and movie-embeddings, it is possible to determine which users are similar to each other and, therefore, recommend similar movies. The same idea could be applied to recommend items based on an image similarity algorithm and even mix types of data, combining images and tabular data.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Organize images\"\n          }), \" on an ecommerce website. Just imagining the waste of time for the person selecting the front-picture, followed by the side-picture and so on gives us nightmares! This could all be automated using an image classification algorithm based on embeddings.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Finding out information\"\n          }), \" from an object\u2019s image. Let\u2019s say you have a huge amount of items and their related information. By using an image classification method to identify which item it is, information retrieval is much faster.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"Fast production line \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"outlier detection\"\n          }), \" can also be implemented using image classification methods. Faulty items can ruin a whole production batch and having a person looking at the manufacturing line all day long is a waste of time for both the employer and employee!!\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"Automate \", /*#__PURE__*/_jsx(\"strong\", {\n            children: \"data-grouping\"\n          }), \" by applying clustering algorithms on previously created embeddings. This can be applied to segment an audience on its own or even to do the initial data-labeling step for a supervised learning algorithm.\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [/*#__PURE__*/_jsx(\"strong\", {\n            children: \"Finding duplicate content\"\n          }), \". Again, let\u2019s picture an e-commerce site where users upload products. Users don't all follow the same order, picture quantity or even quality. They don\u2019t even use the same writing syntax. How do we tackle this? By using embeddings!\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Conclusions\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We have now gone through one of the most promising techniques used in ML and the applications it can have, having covered from the basic concept of an embedding to how it can be used on image similarity and classification jobs. What is more, we have tackled the myth that ML models need huge amounts of labeled data in order to achieve state of the art results.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Want to check out these techniques in action? You can \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://hub.pento.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"request access to our ML hub\"\n        })\n      }), \" by click this link. There, we have demos of how computer vision methods can be used to automate repetitive and time consuming tasks.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Now it is your turn. Are there any repetitive image classification tasks that are worth automating? Would a recommender system boost your entrepreneurship? How can these models be used in your field? Don't hesitate to \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.pento.ai/contact\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"contact us\"\n        })\n      }), \" and discuss all about how you can use embeddings.\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"embeddings-overview\",\n  YSKHrdVc1: \"Taking advantage of unlabeled data and image embeddings\"\n}, {\n  DD39DBmBH: 'var(--token-2e606580-c5cb-45c2-a66e-07cb8dbe5a38, rgb(11, 83, 245)) /* {\"name\":\"Purple\"} */',\n  EZue1CzWP: \"2021-07-15T00:00:00.000Z\",\n  id: \"yJ7oP0EOQ\",\n  ivFLyaMNq: \"This article goes through a proven methodology used by top professionals in the industry to efficiently structure machine learning projects\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/F2EoMM7f30CvSTwNehWs5SjehI.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/F2EoMM7f30CvSTwNehWs5SjehI.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/F2EoMM7f30CvSTwNehWs5SjehI.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/F2EoMM7f30CvSTwNehWs5SjehI.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Machine Learning\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"p\", {\n      children: \"Building Python Machine Learning projects that are both maintainable and easy to deploy is a hard job. To name a few topics, things like managing data pipelines, training multiple models, not to mention production deploys, and versioning can become a pain in the neck. As you can imagine, everything can get out of control very quickly if not handled properly. That\u2019s why it is important to learn the correct way of structuring machine learning projects.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Thankfully, today we have so many options to choose from when it comes to cloud services for training and deploying your models into production, namely \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://aws.amazon.com/sagemaker/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"AWS SageMaker\"\n        })\n      }), \", \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://cloud.google.com/products/ai\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Google\u2019s AI and Machine Learning\"\n        })\n      }), \" or \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://azure.microsoft.com/services/machine-learning/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Azure\u2019s Machine Learning\"\n        })\n      }), \". However, all of these services encourage the use of Jupyter Notebooks and isolated Python scripts when using their services, leading to low maintainability of projects with repeated boilerplate code, and lacking good practices of teamwork and collaboration.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In this article, we share an opinionated overview of how to structure the code and processes of an ML project while following good old-fashioned software engineering practices. In particular, we are going to focus on using AWS SageMaker for training and production inference purposes. If you happen to not use AWS SageMaker, we still believe you\u2019ll find the content of this article handy.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Needless to say, we like our ML projects as any other software engineering (SE) project: modular, easy to maintain and deploy. By the end of this article, we hope you get some tips and tricks to approach your upcoming ML projects.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Structure of a machine learning project\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Why do we treat these projects differently than regular SE projects? We usually write software to manipulate data in a typical software-making environment, whether building a back-end or a mobile application.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Another important fact about these projects is that the resulting output is almost every time predictable. For example, if a user fills a form with data and clicks a submit button, everyone expects that form data to be stored somewhere and that the user will see some feedback for the action they've taken.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In other words, making software which goal is to manipulate data. However, in ML projects, the data is a substantial part of what we're building because if you literally change your data, you change your final program.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This last thing leads everyone in ML projects to run data-science reports and ML experiments to understand how to maximize their data utility, often losing focus in other essential parts of the project. Hence, it's crucial to prevent that from happening.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To mitigate some of the issues we mentioned above, we build our projects as a composite of three things:\"\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"data manipulation libraries: loading datasets or samples of datasets, tools for building new datasets, etc.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"training and deployment libraries: tools for training and deploying models to reduce extensive boilerplate across multiple models\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"CLI and CI/CD setup: we want our models running outside an experimental environment! And we want them to be easy to deploy/update\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"models definitions and configurations: the juicy part of the project, and typically what most people pay attention to\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To put it super clear, we like our projects to be structured as follows:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,qVvCUGL0r4zq2jW5UtF0kJP6zAg.png?preferredSize=full\",\n      \"data-framer-height\": \"221\",\n      \"data-framer-width\": \"711\",\n      height: \"110\",\n      src: new URL(\"https://framerusercontent.com/images/qVvCUGL0r4zq2jW5UtF0kJP6zAg.png\").href,\n      style: {\n        aspectRatio: \"711 / 221\"\n      },\n      width: \"355\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"The exciting part of this approach is that, if modularization is done correctly, you don't need to have all model's definitions in just one repository. Still, you can put different models assigned to other teams to maximize productivity and have a better collaboration environment.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So when it comes to defining each model, what do we actually need to do to make them easy to deploy and maintain? We\u2019ll show you our approach when we do this for AWS SageMaker.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Encapsuling models' definitions\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Getting all your model's definitions spread throughout your code inside Python scripts or Jupyter Notebooks is a terrible practice. As soon as the project starts getting larger and larger, managing that code becomes a nightmare that makes your code prone to bugs and hard to review.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"For us, it's important to emphasize that having a consistent way of modularizing your ML models and effectively reusing code for inference and training processes is a key part of making your whole project successful in the long term.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Principally, deploying models to SageMaker is a very structured process since many conventions, and predefined structures must be followed. We will focus specifically on the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://sagemaker.readthedocs.io/en/stable/frameworks/pytorch/using_pytorch.html\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"PyTorch framework for SageMaker\"\n        })\n      }), \" because it's our favorite one and what we use daily. Although, similar considerations can be made for TensorFlow, Scikit-Learn, or others.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To make a brief introduction to those unfamiliar with the service, the two typical uses for SageMaker are deploying a model endpoint for inference and for training the model at scale. To do so, we need to set up at least 3 main factors of a PyTorch model:\"\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Writing the model files and their inference or training entry points\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"Bundling sources and weights and uploading the model to AWS S3 as a \", /*#__PURE__*/_jsx(\"code\", {\n            children: \"model.tar.gz\"\n          }), \" file\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"Deploying the endpoint through either the \", /*#__PURE__*/_jsx(Link, {\n            href: \"https://sagemaker.readthedocs.io/en/stable/\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"SageMaker Python SDK\"\n            })\n          }), \", a \", /*#__PURE__*/_jsx(Link, {\n            href: \"https://aws.amazon.com/cloudformation/\",\n            openInNewTab: false,\n            smoothScroll: false,\n            children: /*#__PURE__*/_jsx(\"a\", {\n              children: \"CloudFormation template\"\n            })\n          }), \", or using the AWS web client GUI\"]\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Note that this structure might be a little different for different frameworks, but essentially they all share pretty much the same format for deployments.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Going deeper in detail, for the scenario of deploying an inference endpoint in SageMaker, the basic structure required to use the PyTorch framework is the following:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,TPH4vgAP49Vh366nz1bjadSplk.png?preferredSize=full\",\n      \"data-framer-height\": \"141\",\n      \"data-framer-width\": \"361\",\n      height: \"70\",\n      src: new URL(\"https://framerusercontent.com/images/TPH4vgAP49Vh366nz1bjadSplk.png\").href,\n      style: {\n        aspectRatio: \"361 / 141\"\n      },\n      width: \"180\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In the case of PyTorch, the structure is pretty simple: all we need is a weights file at the top level of the compressed file and an additional inference script to describe how to load the model and to process incoming requests. Optionally, you can add a requirements.txt file declaring other third-party libs. Apart from that, you can upload your own source library contained in the code folder. By doing that, you can make use of the great tools you've created for building pipelines, loading models, and so on.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, in the end, the question now is how do we manage our code so that it's easy for prototyping, training, and deploying while being compliant with SageMaker's way of bundling models. For that, we have our opinionated way of doing it. It might change from project to project and depends on the complexity level you're looking at. However, we think the following structure might work for all mid/large-sized ML projects that involve the training and deploying of multiple models.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Without further ado, here's the models structure we are talking about:\"\n    }), /*#__PURE__*/_jsx(\"img\", {\n      alt: \"\",\n      className: \"framer-image\",\n      \"data-framer-asset\": \"data:framer/asset-reference,Qh5j9Xqr0OHqgYBxTxkyFgpDg.png?preferredSize=full\",\n      \"data-framer-height\": \"221\",\n      \"data-framer-width\": \"561\",\n      height: \"110\",\n      src: new URL(\"https://framerusercontent.com/images/Qh5j9Xqr0OHqgYBxTxkyFgpDg.png\").href,\n      style: {\n        aspectRatio: \"561 / 221\"\n      },\n      width: \"280\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"A setup like this makes it very easy to make a quick bundling function using tarfile to create the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"model.tar.gz\"\n      }), \" with the required structure, as all the model source files are in predictable locations. On top of that, we don't add any complex code or extensive generalization structure for any potential future modularization. Starting your codebase from small and growing complexity is often better than starting with a vast generalization.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Going deeper into what this structure tries to communicate. We want each individual model of our project to be fully contained in a module so that it is easier to deploy. Conveniently, we structured the inner modules like \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"inference\"\n      }), \" or \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"train\"\n      }), \" all in the same way so that regardless of what model we are talking about, the process of deploying or training is basically the same. On top of that, each inference or train module contains very little boilerplate, making use of our core library tools providing all datasets and processing utils. At the end of the day, deploying a model would basically imply putting the corresponding folder into a \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"model.tar.gz\"\n      }), \" file that satisfies all of SageMaker's requirements for training or inference.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Final checks\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Importance of configuration files and trackable configurations\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Every model should have a configuration file associated with it. This is very important because changing settings directly in the code is hard to track when you do many experiments. Luckily, there are plenty of tools to choose from to solve this problem. You can go and use a simple \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pypi.org/project/PyYAML/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"PyYAML library\"\n        })\n      }), \" to read your configurations from YAML files. However, we often like to use \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/omry/omegaconf\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"OmegaConf\"\n        })\n      }), \", a library to create configuration files from Python's dataclasses std library. You can also check out \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/facebookresearch/hydra\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Hydra\"\n        })\n      }), \" from Facebook Research, which is ultimately the best option for bigger projects and uses OmegaConf under the hood.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Your goal is to put your model live\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Some people forget that ML projects are not only about running experiments and trying new things. At the end of the day, you want to add value with your project and make that visible to your audience. For this in particular, we don't have to forget that ML projects are SE projects in the end, and we can use all the tooling systems available for team collaboration, code reviews, tests, continuous integration and deployments that are great for any kind of project.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"There's no perfect recipe for this point as each team/company has their SE pipelines and common practices, but it's really important to not treat ML projects differently within your company for no apparent reason. This means that tests, CI/CD, and more still apply to ML projects!\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"For our scenario of running everything in SageMaker, we like to focus a lot on getting all our infrastructure coded in \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://aws.amazon.com/cloudformation/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"CloudFormation\"\n        })\n      }), \" stacks. All you need from your library stand point is to bundle your models correctly and SageMaker will do the rest, as simple as that. Note that every framework has its differences on the bundling requirements, but overall they are pretty similar. In summary, having your infrastructure coded and having the right tools to support the infrastructure makes the deployment processes way easier and reproducible in different environments if necessary.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h3\", {\n      children: \"Tracking, tracking, tracking\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Finally, we cannot ignore the fact that we will almost every time have research and experimentation periods in ML projects. Whether it is to understand the underlying data or try a new fancy tool that might increase your model's performance, experiments in ML projects happen. Having your model modularized and configurable from config files is an excellent step towards tracking your experiments.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Tracking your experiments might sound like a waste of time on your first iterations of the project. However, very quickly, it can become a headache to remember the best settings for the best results you've got or the performance of a model when you changed a particular configuration. For those reasons and more, tracking every single detail of your experiments is a great practice.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"There are plenty of tools available for this purpose. To name a few of them, you can opt to integrate with \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://wandb.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Weights and Biases\"\n        })\n      }), \" or \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://www.comet.ml/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"CometML\"\n        })\n      }), \" for an all-in-one platform that fastly tracks your experiments. You can also customize metric reports, write summaries of experiments, and more.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Lately, we've been experimenting with a new tool from \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://replicate.ai/\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Replicate.ai\"\n        })\n      }), \" called \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/replicate/keepsake\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Keepsake\"\n        })\n      }), \". Keepsake alleviates the process of running experiments and fetching the code and weights from your best model. It's a key tool that is easy to add to your project, so you might want to give it a try.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Conclusions\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"ML projects can get messy sometimes, but we need to add a little extra effort and be conscious to not make it super hard for anyone new to start and understand the code.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"On the same line, it's essential to start small and gradually increment the project's complexity if necessary. If you plan ahead and foresee that you'll need to generalize a lot of your code and add extra tools just in case you reach that point, you're likely going to change plans in the middle, and it gets more complicated for the project to move fast. Notably, we like using SageMaker because it is easier to manage a clear structure of what you need for training and inference purposes. And more specifically, once you do it once, it becomes way easier to replicate the same process for the rest of your models.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Also, we're not saying you will not run experiments. That's a crucial part! However, always be conscious of adding the central part of your experimental scripts or Jupyter Notebooks into your library and into your models' folder structure to continuously improve your model while having a set of tools that support training and deploying models without a few commands. You have to think of these scripts and Notebooks as a one-use only tools, that can be discarded after you put everything you needed in your project.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"And finally, focus on your project's goals and put your models live as soon as possible! If you have everything set up, having a new model deployment could be as easy as having the correct configuration files and merging a pull request into a branch that automatically deploys your model into SageMaker, and starts up all the infrastructure you need.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Thanks for reading this article! We hope it has triggered some questions on how you think ML projects should be handled or helped you get started with a new ML project. As always, we welcome you to read the rest of \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"our blog\"\n        })\n      }), \" if you are interested.\"]\n    })]\n  }),\n  Tu_Pd0zTZ: \"machine-learning-projects-structure\",\n  YSKHrdVc1: \"Structuring your Python machine learning projects: An opinionated review\"\n}, {\n  DD39DBmBH: 'var(--token-2e606580-c5cb-45c2-a66e-07cb8dbe5a38, rgb(11, 83, 245)) /* {\"name\":\"Purple\"} */',\n  EZue1CzWP: \"2021-05-06T00:00:00.000Z\",\n  id: \"ARVZ9LUzU\",\n  ivFLyaMNq: \"Creating advanced PyTorch's TorchServe custom inference handlers\",\n  kBAWMceDj: {\n    alt: \"\",\n    src: new URL(\"https://framerusercontent.com/images/cy5pb8wRqlwvcIxvFaUo5irwtI.png\").href,\n    srcSet: `${new URL(\"https://framerusercontent.com/images/cy5pb8wRqlwvcIxvFaUo5irwtI.png?scale-down-to=512\").href} 512w, ${new URL(\"https://framerusercontent.com/images/cy5pb8wRqlwvcIxvFaUo5irwtI.png?scale-down-to=1024\").href} 1024w, ${new URL(\"https://framerusercontent.com/images/cy5pb8wRqlwvcIxvFaUo5irwtI.png\").href} 1040w`\n  },\n  oblsMPwoB: false,\n  PPeTwl1b8: \"Machine Learning\",\n  t7b0AvdZM: /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"p\", {\n      children: \"TorchServe is a great tool to deploy trained PyTorch models, there is no denying that. But, as with any relatively new project, it is still creating a community around it to help with the more niche aspects of its implementation. As part of this community, we can contribute to this.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"So today, we will be discussing how to develop advanced custom handlers with PyTorch\u2019s TorchServe. We will also be reviewing the process of \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/tree/master/model-archiver#creating-a-model-archive\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"saving your PyTorch model\"\n        })\n      }), \" with \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"torch-model-archiver\"\n      }), \" and how to include all the new artifacts created while we are at it.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We embarked on this journey specifically because, as great as the included inference handlers can be, you will need to tailor them at some point to fit your needs.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In our case, the needs were twofold. We wanted to have a super minimal API in terms of data processing and also needed it to be very lean in terms of external dependencies. This all meant moving logic into TorchServe to receive more ready-to-go results.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"TorchServe also handles GPU support already. So, if your deployment is GPU-enabled, bootstrapping it could really speed up your pipeline steps, apart from just inference.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"But enough with the why\u2019s, let\u2019s go over an example to show you how to get the ball rolling.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Code example\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This blogpost is structured in a top-down fashion. We found it is the easiest way to understand most systems while getting to know all the minutiae at the same time.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In our example, we have a U2net model we use in a background removal task. Say that, at the moment, our model is being served with the default \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/tree/master/examples/image_segmenter\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"ImageSegmenter handler\"\n        })\n      }), \". But we want a lean API so, rather than having it return the predicted mask, we need the handler to do the actual background removing. Moreover, suppose we tweaked the pre and post-processing steps. The only way to deploy all this is by having a custom handler.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Here is our custom handler\u2019s structure:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"u2net\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"\u251C\u2500\u2500 handler.py # Contains our custom handler, extending the `BaseHandler` and overriding most of its functions.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"\u251C\u2500\u2500 model_requirements.txt # The list of the external dependencies we want. Formatted in the classic requirements.txt style.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"\u2514\u2500\u2500 preprocessing.py # Houses the transformations used in the training process, which will be applied before inference.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"And inside \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handler.py\"\n      }), \" you will find:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import base64\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import io\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import os\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import time\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import numpy as np\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"import torch\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from PIL import Image\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from torchvision.transforms import Compose\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from ts.torch_handler.base_handler import BaseHandler\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from preprocessing import Normalize, Rescale\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"class U2Net(BaseHandler):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    image_processing = Compose(\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        [\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            Rescale(320),\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            Normalize(),\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        ]\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    )\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    def _norm_pred(self, d):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        ma = torch.max(d)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        mi = torch.min(d)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        dn = (d - mi) / (ma - mi)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        return dn\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    def basic_cutout(self, img, mask):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        u2net_mask = Image.fromarray(mask).resize(img.size, Image.LANCZOS)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '        mask = np.array(u2net_mask.convert(\"L\")) / 255.0'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '        result = img.copy().convert(\"RGBA\")'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        return result.putalpha(mask)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    def postprocess(self, image, output):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        pred = output[0][:, 0, :, :]\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        predict = self._norm_pred(pred)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        predict = predict.squeeze()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        predict_np = predict.cpu().detach().numpy()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        mask = (predict_np * 255).astype(np.uint8)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        return [self.basic_cutout(image, mask).tobytes()]\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    def load_images(self, data):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        images = []\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        for row in data:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            # Compat layer: normally the envelope should just return the data\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            # directly, but older versions of Torchserve didn't have envelope.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '            image = row.get(\"data\") or row.get(\"body\")'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            if isinstance(image, str):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"                # if the image is a string of bytesarray.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"                image = base64.b64decode(image)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            # the image is sent as bytesarray\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            image = Image.open(io.BytesIO(image))\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            images.append(image)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        return images\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"    def handle(self, data, context):\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '        \"\"\"Entry point for handler. Usually takes the data from the input request and'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"           returns the predicted outcome for the input.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"           We change that by adding a new step to the postprocess function to already\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"           return the cutout.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        Args:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            data (list): The input data that needs to be made a prediction request on.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            context (Context): It is a JSON Object containing information pertaining to\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"                               the model artefacts parameters.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        Returns:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            list : Returns the data input with the cutout applied.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '        \"\"\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        start_time = time.time()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        self.context = context\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        metrics = self.context.metrics\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        images = self.load_images(data)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        data_preprocess = self.preprocess(images)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        if not self._is_explain():\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            output = self.inference(data_preprocess)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            output = self.postprocess(images, output)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        else:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"            output = self.explain_handle(data_preprocess, data)\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        stop_time = time.time()\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        metrics.add_time(\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: '            \"HandlerTime\", round((stop_time - start_time) * 1000, 2), None, \"ms\"'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        )\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"        return output\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"We will get into the specifics of \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handler.py\"\n      }), \"'s structure in the next section. Let's focus on the U2Net class for now. There are a few nifty tricks in here.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"This class is the one we tell serve to use when handling a U2Net request. It needs to control mainly two things: It needs to control model initialization and model inference.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Model initialization is already taken care of by the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"BaseHandler\"\n      }), \". We are covered in that front. In case you need to cover other special requirements on model startup, you can overwrite the initialization process overriding the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"initialize\"\n      }), \" function. Take a look into \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/blob/master/ts/torch_handler/base_handler.py\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"BaseHandler\u2019s implementation\"\n        })\n      }), \" for more details.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"When TorchServe receives a request for model inference, it will call the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handle\"\n      }), \" function. And here is where the actual refactoring begins.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"The \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handle\"\n      }), \" function will receive the request. It will contain the data and context to work with and decide what to do with it.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In our case, we need the handler to:\"\n    }), /*#__PURE__*/_jsxs(\"ol\", {\n      style: {\n        \"--framer-font-size\": \"18px\",\n        \"--framer-text-alignment\": \"start\",\n        \"--framer-text-color\": \"rgb(31, 41, 55)\",\n        \"--framer-text-transform\": \"none\"\n      },\n      children: [/*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Load the images into PIL format.\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Then preprocess them with our custom transformations\"\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsxs(\"p\", {\n          children: [\"Get the image mask prediction from the model (forward pass also taken care of by \", /*#__PURE__*/_jsx(\"code\", {\n            children: \"BaseHandler\"\n          }), \")\"]\n        })\n      }), /*#__PURE__*/_jsx(\"li\", {\n        \"data-preset-tag\": \"p\",\n        style: {\n          \"--framer-line-height\": \"1.5em\"\n        },\n        children: /*#__PURE__*/_jsx(\"p\", {\n          children: \"Finally, place the mask over the original image to return it.\"\n        })\n      })]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"Sounds straightforward enough. But there are a few caveats on how data gets in and out of there we will need to address. And also an optimization that may be useful when working with large outputs.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Firstly, the received images (the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"data\"\n      }), \" argument) come in base64 format. And inside a list, and then inside a dictionary under the \u201Cdata\u201D key. So be sure to access that structure and turn your b64 image into something useful before moving forward.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Then, after you turned over your results to TorchServe to send back the response, it has a type-check to see if you are returning your results inside a \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"list\"\n      }), \" and checks if you are returning the same amount of results as images you received in your batch. Make sure you are considering those two checks. We had to figure this one out by digging through \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/blob/master/ts/service.py\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"serve\u2019s model service module\"\n        })\n      }), \" since we didn\u2019t want to do batch inference for this model and, because of the following optimization, we weren\u2019t returning a list either.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Lastly, the optimization. All default post-processes do a \", /*#__PURE__*/_jsx(\"code\", {\n        children: \".tolist()\"\n      }), \" before sending the result back (that is an easy way to always return a list). But we had an image, and if you know Python, you know it is not very good at shuffling things between similar structures. The \", /*#__PURE__*/_jsx(\"code\", {\n        children: \".tolist()\"\n      }), \" was taking a while for us, so instead we converted the result into bytes (\", /*#__PURE__*/_jsx(\"code\", {\n        children: \".tobytes()\"\n      }), \") and wrapped that in a list.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This simple optimization almost doubled this endpoint\u2019s throughput. This happens because NumPy\u2019s \", /*#__PURE__*/_jsx(\"code\", {\n        children: \".tolist()\"\n      }), \" has to create a new Python list and do the structure translation while \", /*#__PURE__*/_jsx(\"code\", {\n        children: \".tobytes()\"\n      }), \" just returns the raw contents of data memory it is already using.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"In our example, we are sending an image and receiving another one of the same sizes, with its background removed. So all we need to do to load the final image, that came as a set of bytes representing a NumPy array, is to save the original image\u2019s size and do:\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: 'Image.frombytes(\"RGBA\", self.image_size, res.content)'\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As a side note, in case you are using custom modules like we are with \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"preprocessing\"\n      }), \", you can import them as if they were in the same root directory. That is where \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"torch-model-archiver\"\n      }), \" will place them. More of that in a second. Like so:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"from preprocessing import Normalize, Rescale\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"And that is it! Create a class, inherit from \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"BaseHandler\"\n      }), \", or \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"VisionHandler\"\n      }), \" for that matter, and create your own \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handle\"\n      }), \" function to fit your use-case. Looking out for the specifics of how TorchServe works around it.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In the following section, we will work on getting all this new and improved code into a .mar file that can get \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pytorch.org/serve/management_api.html#register-a-model\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"registered through the Management API\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Choosing your entry point\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Okay, you made your custom handler class, now what? As explained in the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pytorch.org/serve/custom_service.html#creating-a-model-archive-with-an-entry-point\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"official docs\"\n        })\n      }), \", to apply the changes explained before you will need to specify where your custom entry point is. The entry point will be the one taking care of model initialization (on startup and scale-up) and inference. In our example, it is the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"U2Net\"\n      }), \" class.\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"But your custom handler can have either a module-level entry point or a class-level one.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"As I said, we will be using a class-level entry point to keep everything nice and structured as our complexity increases. But if you want to use a module-level one, check \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pytorch.org/serve/custom_service.html#custom-handler-with-module-level-entry-point\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"this section\"\n        })\n      }), \" of the docs for better pointers.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"When creating your model archive through \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"torch-model-archiver\"\n      }), \" make sure to add the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"--handler\"\n      }), \" option pointing to your python file. That would be \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"handler.py\"\n      }), \" for us. This file should only have one class. In our example it is called U2Net, but you can call it whatever you want. If it is not the only class, you will get an \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"Expected only one class in custom service code or a function entry point\"\n      }), \" error. If you need to use more classes, make sure to move them to a new file and import them as explained in the previous section.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Remember, TorchServe expects your handler class to have a \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"def handle(self, data, context)\"\n      }), \" in there to take care of the complete inference process, such as preprocessing, inference, post-processing, and capturing any metrics or logging you may need along the way.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you are getting any weird errors apart from those we talked about here, check out the official \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/blob/f0da8d2714628cb5de0c6eaa3ac0448a6b226640/ts/model_loader.py\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"model loader module\"\n        })\n      }), \", if it is an error on load, or the \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/blob/f0da8d2714628cb5de0c6eaa3ac0448a6b226640/ts/service.py\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"Service class\"\n        })\n      }), \" if it is a prediction error.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"Here\u2019s an example \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"torch-model-archiver\"\n      }), \" command applying everything we discussed:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"torch-model-archiver --model-name u2net --version 1.0.0 --serialized-file u2net.pth --handler handler.py --extra-files preprocessing.py --requirements-file model_requirements.txt\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Setting up for success\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, we went over the structure needed for the custom inference handler. All that is left now is to handle any extra files we are using to keep our handle class alone in its file. And tell TorchServe to install the external dependencies we need.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"What we need to add is the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"--extra-files\"\n      }), \" option when creating your model archive. This is a comma-separated list of file paths that the handler class will use.\"]\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"In case your model needs some specific dependencies installed, TorchServe handles that natively. You will have to define your models \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"requirements.txt\"\n      }), \" file and add its path with the \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"--requirements-file\"\n      }), \" option. Then, you\u2019ll have to go to your TorchServe\u2019s \", /*#__PURE__*/_jsx(\"code\", {\n        children: \"config.properties\"\n      }), \" file to add this line, enabling model dependencies installation:\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"<code>\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"install_py_dep_per_model=true\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"</code>\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"This will let the Java frontend know there is a requirement\u2019s list to be installed when setting up or updating the model. In the process, it will let you know if it fails by telling which package was it with a \", /*#__PURE__*/_jsx(\"code\", {\n        children: '\"Custom pip package installation failed for {}\"'\n      }), \" You will find the code where that happens \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://github.com/pytorch/serve/blob/f0da8d2714628cb5de0c6eaa3ac0448a6b226640/frontend/server/src/main/java/org/pytorch/serve/wlm/ModelManager.java#L162\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"here\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: /*#__PURE__*/_jsx(\"br\", {\n        className: \"trailing-break\"\n      })\n    }), /*#__PURE__*/_jsx(\"h2\", {\n      children: \"Summary\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"To wrap up, let\u2019s review what we covered: We looked into how to set up your custom handler class, saw how TorchServe will work with it, prepared the build .mar file with all it needs and got the TorchServe environment ready to receive these new models.\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"So, if your models could benefit from a custom pipeline, you need a lighter API, you need to improve tracking inside your serve deployment, or anything in between, give it a go!\"\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"We love TorchServe and hope this walkthrough helps anyone who wants to make the most out of it. Be it as an introduction or to set up their models in an ordered fashion and in a fraction of the time.\"\n    }), /*#__PURE__*/_jsxs(\"p\", {\n      children: [\"If you liked this article, check out the other entries on our \", /*#__PURE__*/_jsx(Link, {\n        href: \"https://pento.ai/blog\",\n        openInNewTab: false,\n        smoothScroll: false,\n        children: /*#__PURE__*/_jsx(\"a\", {\n          children: \"blog\"\n        })\n      }), \".\"]\n    }), /*#__PURE__*/_jsx(\"p\", {\n      children: \"See you around!\"\n    })]\n  }),\n  Tu_Pd0zTZ: \"custom-torchserve-handlers\",\n  YSKHrdVc1: \"Bootstrap your own Handler: How and why to create custom handlers for PyTorch\u2019s TorchServe\"\n}];\ndata.forEach(item => Object.freeze(item));\naddPropertyControls(data, {\n  oblsMPwoB: {\n    defaultValue: false,\n    title: \"Featured\",\n    type: ControlType.Boolean\n  },\n  DD39DBmBH: {\n    defaultValue: 'var(--token-bd377b4b-bd02-4975-a6e5-f4242e212fba, rgb(78, 204, 207)) /* {\"name\":\"Green\"} */',\n    title: \"Accent\",\n    type: ControlType.Color\n  },\n  PPeTwl1b8: {\n    defaultValue: \"\",\n    title: \"Category\",\n    type: ControlType.String\n  },\n  YSKHrdVc1: {\n    defaultValue: \"\",\n    title: \"Title\",\n    type: ControlType.String\n  },\n  ivFLyaMNq: {\n    defaultValue: \"\",\n    title: \"Short description\",\n    type: ControlType.String\n  },\n  kBAWMceDj: {\n    title: \"Image\",\n    type: ControlType.ResponsiveImage\n  },\n  EZue1CzWP: {\n    title: \"Date\",\n    type: ControlType.Date\n  },\n  Tu_Pd0zTZ: {\n    title: \"Slug\",\n    type: ControlType.String\n  },\n  t7b0AvdZM: {\n    defaultValue: \"\",\n    title: \"Content\",\n    type: ControlType.RichText\n  }\n});\ndata[\"displayName\"] = \"Blog\";\nexport default data;\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"default\": {\n      \"type\": \"data\",\n      \"name\": \"data\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\",\n        \"framerRecordIdKey\": \"id\",\n        \"framerData\": \"\",\n        \"framerSlug\": \"Tu_Pd0zTZ\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};"],
  "mappings": "8GAOA,IAAMA,EAAO,CAAC,CACZ,UAAW,8FACX,UAAW,2BACX,GAAI,YACJ,UAAW,uHACX,UAAW,CACT,IAAK,GACL,IAAK,IAAI,IAAI,oEAAoE,EAAE,KACnF,OAAQ,GAAG,IAAI,IAAI,sFAAsF,EAAE,cAAc,IAAI,IAAI,uFAAuF,EAAE,eAAe,IAAI,IAAI,oEAAoE,EAAE,YACzT,EACA,UAAW,GACX,UAAW,gBACX,UAAwBC,EAAYC,EAAU,CAC5C,SAAU,CAAcD,EAAM,IAAK,CACjC,SAAU,CAAC,kCAAgDE,EAAKC,EAAM,CACpE,KAAM,iDACN,aAAc,GACd,aAAc,GACd,SAAuBD,EAAK,IAAK,CAC/B,SAAU,gDACZ,CAAC,CACH,CAAC,EAAG,mCAAiDA,EAAK,SAAU,CAClE,SAAU,iBACZ,CAAC,EAAG,0KAA0K,CAChL,CAAC,EAAgBF,EAAM,IAAK,CAC1B,SAAU,CAAC,yJAAuKE,EAAK,SAAU,CAC/L,SA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ropertyControls", "ControlType", "nWZy3UnCE_default", "__FramerMetadata__"]
}
