blakeblackshear.frigate/d5f64db3.94f45273.js

1 line
6.4 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{96:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return l})),t.d(n,"metadata",(function(){return i})),t.d(n,"toc",(function(){return c})),t.d(n,"default",(function(){return s}));var a=t(3),o=t(7),r=(t(0),t(98)),l={id:"objects",title:"Default available objects",sidebar_label:"Available objects"},i={unversionedId:"configuration/objects",id:"configuration/objects",isDocsHomePage:!1,title:"Default available objects",description:"By default, Frigate includes the following object models from the Google Coral test data.",source:"@site/docs/configuration/objects.mdx",slug:"/configuration/objects",permalink:"/frigate/configuration/objects",editUrl:"https://github.com/blakeblackshear/frigate/edit/master/docs/docs/configuration/objects.mdx",version:"current",sidebar_label:"Available objects",sidebar:"docs",previous:{title:"Reducing false positives",permalink:"/frigate/configuration/false_positives"},next:{title:"Advanced",permalink:"/frigate/configuration/advanced"}},c=[{value:"Custom Models",id:"custom-models",children:[{value:"Customizing the Labelmap",id:"customizing-the-labelmap",children:[]}]}],b={toc:c};function s(e){var n=e.components,t=Object(o.a)(e,["components"]);return Object(r.b)("wrapper",Object(a.a)({},b,t,{components:n,mdxType:"MDXLayout"}),Object(r.b)("p",null,"By default, Frigate includes the following object models from the Google Coral test data."),Object(r.b)("ul",null,"0 person\n1 bicycle\n2 car\n3 motorcycle\n4 airplane\n5 bus\n6 train\n7 car\n8 boat\n9 traffic light\n10 fire hydrant\n12 stop sign\n13 parking meter\n14 bench\n15 bird\n16 cat\n17 dog\n18 horse\n19 sheep\n20 cow\n21 elephant\n22 bear\n23 zebra\n24 giraffe\n26 backpack\n27 umbrella\n30 handbag\n31 tie\n32 suitcase\n33 frisbee\n34 skis\n35 snowboard\n36 sports ball\n37 kite\n38 baseball bat\n39 baseball glove\n40 skateboard\n41 surfboard\n42 tennis racket\n43 bottle\n45 wine glass\n46 cup\n47 fork\n48 knife\n49 spoon\n50 bowl\n51 banana\n52 apple\n53 sandwich\n54 orange\n55 broccoli\n56 carrot\n57 hot dog\n58 pizza\n59 donut\n60 cake\n61 chair\n62 couch\n63 potted plant\n64 bed\n66 dining table\n69 toilet\n71 tv\n72 laptop\n73 mouse\n74 remote\n75 keyboard\n76 cell phone\n77 microwave\n78 oven\n79 toaster\n80 sink\n81 refrigerator\n83 book\n84 clock\n85 vase\n86 scissors\n87 teddy bear\n88 hair drier\n89 toothbrush".split("\n").map((function(e){return Object(r.b)("li",null,e.replace(/^\d+\s+/,""))}))),Object(r.b)("h2",{id:"custom-models"},"Custom Models"),Object(r.b)("p",null,"Models for both CPU and EdgeTPU (Coral) are bundled in the image. You can use your own models with volume mounts:"),Object(r.b)("ul",null,Object(r.b)("li",{parentName:"ul"},"CPU Model: ",Object(r.b)("inlineCode",{parentName:"li"},"/cpu_model.tflite")),Object(r.b)("li",{parentName:"ul"},"EdgeTPU Model: ",Object(r.b)("inlineCode",{parentName:"li"},"/edgetpu_model.tflite")),Object(r.b)("li",{parentName:"ul"},"Labels: ",Object(r.b)("inlineCode",{parentName:"li"},"/labelmap.txt"))),Object(r.b)("p",null,"You also need to update the model width/height in the config if they differ from the defaults."),Object(r.b)("h3",{id:"customizing-the-labelmap"},"Customizing the Labelmap"),Object(r.b)("p",null,"The labelmap can be customized to your needs. A common reason to do this is to combine multiple object types that are easily confused when you don't need to be as granular such as car/truck. You must retain the same number of labels, but you can change the names. To change:"),Object(r.b)("ul",null,Object(r.b)("li",{parentName:"ul"},"Download the ",Object(r.b)("a",Object(a.a)({parentName:"li"},{href:"https://dl.google.com/coral/canned_models/coco_labels.txt"}),"COCO labelmap")),Object(r.b)("li",{parentName:"ul"},"Modify the label names as desired. For example, change ",Object(r.b)("inlineCode",{parentName:"li"},"7 truck")," to ",Object(r.b)("inlineCode",{parentName:"li"},"7 car")),Object(r.b)("li",{parentName:"ul"},"Mount the new f