diff --git a/000b1bb3-86e5-4772-a880-235525467096.png b/000b1bb3-86e5-4772-a880-235525467096.png new file mode 100644 index 0000000000000000000000000000000000000000..a6279cf4c1fb4bf4dd91083519dff87f2b9ae885 --- /dev/null +++ b/000b1bb3-86e5-4772-a880-235525467096.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7602608848feafa9392b4f5128e7b944aff9772bb1a58b8e8be5a5a1560bcc7f +size 176905 diff --git a/00de1930-8d7b-4259-84f9-93147ac5de72.png b/00de1930-8d7b-4259-84f9-93147ac5de72.png new file mode 100644 index 0000000000000000000000000000000000000000..72371000738acd983ff6f0c878eb4b7c060faf0e --- /dev/null +++ b/00de1930-8d7b-4259-84f9-93147ac5de72.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8516cd25c6905f386f0b4b62d31baa6f2248e7d2bb105cd405c11de02b906574 +size 266610 diff --git a/01fd7ff1-3eb3-49a8-bd42-8eb95127d0d4.png b/01fd7ff1-3eb3-49a8-bd42-8eb95127d0d4.png new file mode 100644 index 0000000000000000000000000000000000000000..ce5ee19aafcb5ce2b064a10db61a6b947b1a95a7 --- /dev/null +++ b/01fd7ff1-3eb3-49a8-bd42-8eb95127d0d4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29bafe6c8c650020875411190a4f4124d1aa7424258602a49b5c9cca08cecdce +size 237168 diff --git a/0232332d-ceb7-4bef-8ded-1d9a963cad7c.png b/0232332d-ceb7-4bef-8ded-1d9a963cad7c.png new file mode 100644 index 0000000000000000000000000000000000000000..57fe345a26963c8a3023024839e0da72d405e41f --- /dev/null +++ b/0232332d-ceb7-4bef-8ded-1d9a963cad7c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e1576e390358e4d652860da64e69538672d5baf6d2bee21f2b9dec0a9bd1b1d +size 198046 diff --git a/02e60170-9115-44e4-88f6-fb95ca967686.png b/02e60170-9115-44e4-88f6-fb95ca967686.png new file mode 100644 index 0000000000000000000000000000000000000000..3362481c19da705b45a01d72ff3de4bace4e9e69 --- /dev/null +++ b/02e60170-9115-44e4-88f6-fb95ca967686.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfddba46c1b66c5a3b493468fe28e1eb4686e92cecebfe55df3daf5e38dc44cb +size 36028 diff --git a/03681917-edeb-461a-b6d1-ea2c25b66023.png b/03681917-edeb-461a-b6d1-ea2c25b66023.png new file mode 100644 index 0000000000000000000000000000000000000000..728be51cefde609b239215addf2d720ce63f8b8e --- /dev/null +++ b/03681917-edeb-461a-b6d1-ea2c25b66023.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cb7e094c6fbdf45a8fced0db06e5271e65e96b0c3d6eb936e00573a48cf0a40 +size 304288 diff --git a/03f7813e-73cd-4790-afd4-d3f043053b77.png b/03f7813e-73cd-4790-afd4-d3f043053b77.png new file mode 100644 index 0000000000000000000000000000000000000000..fc65a94c50c1ab52d5b0ccb7cd67a05daf4c8b8e --- /dev/null +++ b/03f7813e-73cd-4790-afd4-d3f043053b77.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a80a82e684d7c26b4523b0721bca1abd759ef56feaba86e9081d29bfca91f57d +size 363022 diff --git a/050b605a-f5b2-4d2e-9f28-778c333cffde.png b/050b605a-f5b2-4d2e-9f28-778c333cffde.png new file mode 100644 index 0000000000000000000000000000000000000000..2061d5cf2cc567b7a0d72669d295017dd2ec9a51 --- /dev/null +++ b/050b605a-f5b2-4d2e-9f28-778c333cffde.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0530c9215fdffa9298f5489bb9789e63cfee256a9a725cd8a35ac65db47d92eb +size 271568 diff --git a/083b79f7-38a9-4cf5-845d-13eb5536eb1f.png b/083b79f7-38a9-4cf5-845d-13eb5536eb1f.png new file mode 100644 index 0000000000000000000000000000000000000000..e4227287b3d26bd2aa5e7e28db3ca0f890543383 --- /dev/null +++ b/083b79f7-38a9-4cf5-845d-13eb5536eb1f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4106e22532bf2e11f6b853a152be5b3d90446764b575c2904c2d4b707d492703 +size 295266 diff --git a/09287d9e-5de2-42f5-bbba-03e907054da6.png b/09287d9e-5de2-42f5-bbba-03e907054da6.png new file mode 100644 index 0000000000000000000000000000000000000000..12d7f1d0466971fd5aa99ef7d409aac773fb7ad4 --- /dev/null +++ b/09287d9e-5de2-42f5-bbba-03e907054da6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9e45bfbc2545acb62f62e67e03b1b0297540c144873ea24ba58d2bc17a2dc6a +size 234868 diff --git a/0c76aaac-e778-42aa-9f42-1318acf599e2.png b/0c76aaac-e778-42aa-9f42-1318acf599e2.png new file mode 100644 index 0000000000000000000000000000000000000000..7be6ba1525fe09ee52042a899515134345375a16 --- /dev/null +++ b/0c76aaac-e778-42aa-9f42-1318acf599e2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e391421aed8a4a8c50eb1924373198509fafd33aac98c5c08e1ab91975e0994 +size 251148 diff --git a/0fec92f9-7c3d-4489-883e-9193a890acc5.png b/0fec92f9-7c3d-4489-883e-9193a890acc5.png new file mode 100644 index 0000000000000000000000000000000000000000..6cac9916d36015461eb37e908622bc31e765a5bd --- /dev/null +++ b/0fec92f9-7c3d-4489-883e-9193a890acc5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:428c26439a7587f20fb1484c0af8ab4333d5b6a154da797706023f13bcf4de1a +size 258375 diff --git a/10198bf8-fcbe-4f28-92a7-c708781346bd.png b/10198bf8-fcbe-4f28-92a7-c708781346bd.png new file mode 100644 index 0000000000000000000000000000000000000000..eb7106466a2592f8edb11c8b3b46139b753c799f --- /dev/null +++ b/10198bf8-fcbe-4f28-92a7-c708781346bd.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e461b0a6d958abcd9c5863c2dbbc467503df1dbd94a20b766d6d529678be0096 +size 230576 diff --git a/1111908e-c4b2-409a-9c31-7f78587ffc1d.png b/1111908e-c4b2-409a-9c31-7f78587ffc1d.png new file mode 100644 index 0000000000000000000000000000000000000000..954726d8976a4ac2a0e9129aa8654e8aea62a10d --- /dev/null +++ b/1111908e-c4b2-409a-9c31-7f78587ffc1d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e22bcbd5da04cd4b4ed4899181a199419f2ee5b346e89338be36f7d851ab0f17 +size 277796 diff --git a/12247f15-39dd-4d59-b3e4-e6220aaa551f.png b/12247f15-39dd-4d59-b3e4-e6220aaa551f.png new file mode 100644 index 0000000000000000000000000000000000000000..49ecbb5e5e00f9636625a3f5adc8d20ae67dc312 --- /dev/null +++ b/12247f15-39dd-4d59-b3e4-e6220aaa551f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8b00b76346116141988bc4fa82abf262d45856ff3535f62d547b59d50067874 +size 295647 diff --git a/1243a1d1-9f37-439a-bba1-92ba0c7fbfc2.png b/1243a1d1-9f37-439a-bba1-92ba0c7fbfc2.png new file mode 100644 index 0000000000000000000000000000000000000000..f963427824e7b09d1ab4c8d2447a1ad9db344d3f --- /dev/null +++ b/1243a1d1-9f37-439a-bba1-92ba0c7fbfc2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d0b0c8055a815a5aebf14ba9d472475042ceed2c06af7261630e7cbc6b116dc +size 118549 diff --git a/1281ba4e-aff6-4be2-8005-c31060595e70.png b/1281ba4e-aff6-4be2-8005-c31060595e70.png new file mode 100644 index 0000000000000000000000000000000000000000..c6c0c85ec2cae033c78ed3ce91c9734539fcf0a3 --- /dev/null +++ b/1281ba4e-aff6-4be2-8005-c31060595e70.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca47accc2886962dcbd696431d48c1fc6f0c1e4691c60ce9f1bfb600da05640d +size 267062 diff --git a/12a32749-ba99-4175-802a-84ba62efc933.png b/12a32749-ba99-4175-802a-84ba62efc933.png new file mode 100644 index 0000000000000000000000000000000000000000..7fe83527d7e7fe33750a595fb14907c5f24a4f67 --- /dev/null +++ b/12a32749-ba99-4175-802a-84ba62efc933.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8d80d60623bb37ded83480b0977192b06cbbcbd5e10c5e294149cbbe64a7ca4 +size 361750 diff --git a/13b817b3-23ed-4c13-bec8-26586c394a45.png b/13b817b3-23ed-4c13-bec8-26586c394a45.png new file mode 100644 index 0000000000000000000000000000000000000000..b50b2096fdbd00c34d4f39c42aa8706357830d3a --- /dev/null +++ b/13b817b3-23ed-4c13-bec8-26586c394a45.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16c1fac0178032cda75d6ca4b13824638ba6ca72b2e57529ee43f6e83032721e +size 258766 diff --git a/141fe45d-6f55-427d-bcc9-a9c5bb4d5d4f.png b/141fe45d-6f55-427d-bcc9-a9c5bb4d5d4f.png new file mode 100644 index 0000000000000000000000000000000000000000..3b9ab4e0f1e6bb87170d885ab6a4b27e15b59ac1 --- /dev/null +++ b/141fe45d-6f55-427d-bcc9-a9c5bb4d5d4f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6df5b7f79ec77f3799663d1e5b94dd913d9a002277061711f1bc1ace84dd8db +size 301783 diff --git a/15227e66-efc4-4639-aa28-16b7914c67a4.png b/15227e66-efc4-4639-aa28-16b7914c67a4.png new file mode 100644 index 0000000000000000000000000000000000000000..f1ffdba0f580729fbc8253f04dd572bf6ec0951f --- /dev/null +++ b/15227e66-efc4-4639-aa28-16b7914c67a4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53d90fa4ce174ae5b185931595c3e74fcb826ba58e5edc131492673bef985110 +size 207975 diff --git a/16390509-ae18-4886-897c-2c66fb66f4f3.png b/16390509-ae18-4886-897c-2c66fb66f4f3.png new file mode 100644 index 0000000000000000000000000000000000000000..4fdb72b04e0d3f02a3da974fa12d6144b2ee2ff6 --- /dev/null +++ b/16390509-ae18-4886-897c-2c66fb66f4f3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9d8543e4aec88e9c9579a83560c258bd1b102994c325327b855730d236b29dd +size 220592 diff --git a/1b1889a3-8e98-40cd-9e58-f49a31269cf0.png b/1b1889a3-8e98-40cd-9e58-f49a31269cf0.png new file mode 100644 index 0000000000000000000000000000000000000000..500a10d8df90ae4f7bd095fb1e8d8520750b8171 --- /dev/null +++ b/1b1889a3-8e98-40cd-9e58-f49a31269cf0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b92582e1128778aacd789b7bb4ddac9d98751418dacc73d3d5a2b6003d46c9d3 +size 302971 diff --git a/1bee7386-12ff-40b8-be21-700fe2aa9a28.png b/1bee7386-12ff-40b8-be21-700fe2aa9a28.png new file mode 100644 index 0000000000000000000000000000000000000000..a0c32c6414e06bcebbf4aa04040bacb48e997b2f --- /dev/null +++ b/1bee7386-12ff-40b8-be21-700fe2aa9a28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3bb174eb3f966f045719cd1247160f34617855641542468ea6164d72d05325 +size 207882 diff --git a/1c37d4d8-ece1-4320-b80e-667331a50201.png b/1c37d4d8-ece1-4320-b80e-667331a50201.png new file mode 100644 index 0000000000000000000000000000000000000000..cda054e56b000d9207e3ff1c034c7d069e1931a2 --- /dev/null +++ b/1c37d4d8-ece1-4320-b80e-667331a50201.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d06f0525bef9c7a0dee3760a5b145d7d34b3d22a7d7fa3a4d9d73df369a1c30 +size 213738 diff --git a/1d5ec8ca-f46b-42fb-b2d4-651276e4909b.png b/1d5ec8ca-f46b-42fb-b2d4-651276e4909b.png new file mode 100644 index 0000000000000000000000000000000000000000..d6ed5404ef6e534527f9ae7e73f3df4ab3587688 --- /dev/null +++ b/1d5ec8ca-f46b-42fb-b2d4-651276e4909b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12e18ec1762c9f6ff71b8f4a1239038bcde0de8fe0240003511b09a286527497 +size 255211 diff --git a/1fa9750f-60f4-45e9-9a6d-79f1ea2d6ace.png b/1fa9750f-60f4-45e9-9a6d-79f1ea2d6ace.png new file mode 100644 index 0000000000000000000000000000000000000000..ab77e9be20a9ef1d178444d9fe7a316aa49057d3 --- /dev/null +++ b/1fa9750f-60f4-45e9-9a6d-79f1ea2d6ace.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b11f045ba86bc77a8c7137f61be8f942b36a192be42acd9911300c8f752ec64b +size 250326 diff --git a/204c42a8-34f6-42a3-957f-b02bb4e5db2f.png b/204c42a8-34f6-42a3-957f-b02bb4e5db2f.png new file mode 100644 index 0000000000000000000000000000000000000000..0bad9d8753fb05cd0f1f8c29a5907bb9d4a5c5ef --- /dev/null +++ b/204c42a8-34f6-42a3-957f-b02bb4e5db2f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2462b519d28166b5d20d728b1a64905c20f9b11dd472fa83131bbda1bdd607e +size 276204 diff --git a/262db83a-e4d9-4f07-b82a-7a9ac8636134.png b/262db83a-e4d9-4f07-b82a-7a9ac8636134.png new file mode 100644 index 0000000000000000000000000000000000000000..666f014f354cc98d9d9c4a3577e3011d1bca98fe --- /dev/null +++ b/262db83a-e4d9-4f07-b82a-7a9ac8636134.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa2e5755a238463c6bc39570bc269f57e681beb979ca277032d8b83b87e9fb95 +size 288762 diff --git a/26a5bd0f-154e-4cef-9361-c7bbdc672852.png b/26a5bd0f-154e-4cef-9361-c7bbdc672852.png new file mode 100644 index 0000000000000000000000000000000000000000..8f3fed9245e352a1c5a8ff5f07d2ae32d12323ba --- /dev/null +++ b/26a5bd0f-154e-4cef-9361-c7bbdc672852.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:618b0d9e3c716aad95cd1c10dcf6489b6265f69c85e34b18f323ba70a7dbd6f2 +size 271844 diff --git a/278de3e3-1b8f-45d2-87ca-ea92f6aea40e.png b/278de3e3-1b8f-45d2-87ca-ea92f6aea40e.png new file mode 100644 index 0000000000000000000000000000000000000000..61e73d215d7665b7c96927bc842559c9bb7378e1 --- /dev/null +++ b/278de3e3-1b8f-45d2-87ca-ea92f6aea40e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:226c8962079b827975dc51af6205d5af20c573c7a144ea5f109d7653295e2b34 +size 215656 diff --git a/2909d127-4bb5-4fa5-9655-7d9b561a7f55.png b/2909d127-4bb5-4fa5-9655-7d9b561a7f55.png new file mode 100644 index 0000000000000000000000000000000000000000..d7be8a9e6f8fca66fa0d2e42818e1354e7da812d --- /dev/null +++ b/2909d127-4bb5-4fa5-9655-7d9b561a7f55.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0f49dd922b2e8fb563c23e0b6bff9601c2a6f427ae75f86aa52ee315b785c10 +size 145551 diff --git a/291dd90f-2ce7-4cfd-8587-128fa4c2bc0d.png b/291dd90f-2ce7-4cfd-8587-128fa4c2bc0d.png new file mode 100644 index 0000000000000000000000000000000000000000..45dc92476e29661736d22859e7c0326f6354fae3 --- /dev/null +++ b/291dd90f-2ce7-4cfd-8587-128fa4c2bc0d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5b5380cf881c9354261f38c7b2c10bb03a513278f6013fb32c1fc2302d305ff +size 249988 diff --git a/2a261a1c-3d97-4d07-97f7-0c330c16cce9.png b/2a261a1c-3d97-4d07-97f7-0c330c16cce9.png new file mode 100644 index 0000000000000000000000000000000000000000..069b95e65c69fbd02f88d3d645849578eff60868 --- /dev/null +++ b/2a261a1c-3d97-4d07-97f7-0c330c16cce9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f409684cbae4b5025aa9bc6aa2f9181c12f29e5dbb200fa35eadf414e3b31a43 +size 309280 diff --git a/2b3a1b85-13b3-421c-9d8a-14581118e791.png b/2b3a1b85-13b3-421c-9d8a-14581118e791.png new file mode 100644 index 0000000000000000000000000000000000000000..869c74b08de56b8be7c35a18e3daaf7f95cbfe17 --- /dev/null +++ b/2b3a1b85-13b3-421c-9d8a-14581118e791.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a429647057812d5c00b2b358d731aa44db9d6a6413c8deaac4efbfbce0e9d9c6 +size 281107 diff --git a/2b941870-3e2c-4fab-bd8a-264e14ee8c13.png b/2b941870-3e2c-4fab-bd8a-264e14ee8c13.png new file mode 100644 index 0000000000000000000000000000000000000000..32748ff35c29596789ffac7b091afd410b4a9016 --- /dev/null +++ b/2b941870-3e2c-4fab-bd8a-264e14ee8c13.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:595fc4eded225161c39b10ba54968eb8bc305b9e733958c8fe9d37617e93b2d8 +size 280038 diff --git a/2bdb19b3-c6c3-4902-beb0-78c48a9e642e.png b/2bdb19b3-c6c3-4902-beb0-78c48a9e642e.png new file mode 100644 index 0000000000000000000000000000000000000000..fa39f7f9f0cec2446ac22f8e0f41ed51004fa9c9 --- /dev/null +++ b/2bdb19b3-c6c3-4902-beb0-78c48a9e642e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:334096c1d3ae12bd91d025e00d2f2bf4e99504049db51f8ce1a71fc710726bbd +size 294691 diff --git a/2cfeba14-d0b4-467f-b106-b7b9c4afe4c7.png b/2cfeba14-d0b4-467f-b106-b7b9c4afe4c7.png new file mode 100644 index 0000000000000000000000000000000000000000..a7937e95f198c6034702087cf134c641d82b321c --- /dev/null +++ b/2cfeba14-d0b4-467f-b106-b7b9c4afe4c7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8a833c3c6544bb973d47283baaa6245b1bf5e59b3cc5c0480ec3269a45d85ea +size 289877 diff --git a/2d6aa2a3-427f-4655-9fc2-9e6f73a11823.png b/2d6aa2a3-427f-4655-9fc2-9e6f73a11823.png new file mode 100644 index 0000000000000000000000000000000000000000..f407ca37f687d3f1aa3b476752cf0458d94e80f4 --- /dev/null +++ b/2d6aa2a3-427f-4655-9fc2-9e6f73a11823.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8f6057ccd7b3795c2aa069b60ca5b343ae5315ad47de5b26c9f75bc9b1a7958 +size 295906 diff --git a/2d89225b-e2f6-409d-9cfe-a9c403ed8e93.png b/2d89225b-e2f6-409d-9cfe-a9c403ed8e93.png new file mode 100644 index 0000000000000000000000000000000000000000..be6af739bb7645e6dff2349fb35539aa95e040d6 --- /dev/null +++ b/2d89225b-e2f6-409d-9cfe-a9c403ed8e93.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9799a5db5ebb779badaa866b0bb9008dcee470c796ce5869e28f3f64abc29095 +size 212551 diff --git a/30ca56fe-5bbc-4eeb-ab8b-5569efbbe003.png b/30ca56fe-5bbc-4eeb-ab8b-5569efbbe003.png new file mode 100644 index 0000000000000000000000000000000000000000..74f81b1e241b753ede43e8485765e869e8784115 --- /dev/null +++ b/30ca56fe-5bbc-4eeb-ab8b-5569efbbe003.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67ca87473a2800118e90e36562e6f77932127639beb75136bf4024a4f6c0b027 +size 269473 diff --git a/31cf2c9e-a92e-446d-8059-00886438eb9b.png b/31cf2c9e-a92e-446d-8059-00886438eb9b.png new file mode 100644 index 0000000000000000000000000000000000000000..e809242d3c998f0d1ad871552bc03be8f771f12d --- /dev/null +++ b/31cf2c9e-a92e-446d-8059-00886438eb9b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d64e59a1aa958697507b91ed6df1b816e0bb9745d482d4e0bdcf397f34cb25c2 +size 202103 diff --git a/34cba9fb-abf4-4dfb-88fa-0953732dfe6e.png b/34cba9fb-abf4-4dfb-88fa-0953732dfe6e.png new file mode 100644 index 0000000000000000000000000000000000000000..6c1876161433ac63b130944ca4e3494985cbf00e --- /dev/null +++ b/34cba9fb-abf4-4dfb-88fa-0953732dfe6e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86be1b8dd09a8deca56b8795e179b82b270ca7305456410f05bf04a434b4f435 +size 294533 diff --git a/35c5d0ae-0c22-45b7-afb0-084b09a66c37.png b/35c5d0ae-0c22-45b7-afb0-084b09a66c37.png new file mode 100644 index 0000000000000000000000000000000000000000..c8308e5eb585c297fd173d9ae560c68c01f767d8 --- /dev/null +++ b/35c5d0ae-0c22-45b7-afb0-084b09a66c37.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9372153bde651cfbbab2f663f03f2a15a3124967c91c6f35da98ef9555371018 +size 194055 diff --git a/3617df8d-3303-42e6-849d-0c2c6cd99177.png b/3617df8d-3303-42e6-849d-0c2c6cd99177.png new file mode 100644 index 0000000000000000000000000000000000000000..89d72e301783408adc800a87c8d5a9835c6928ad --- /dev/null +++ b/3617df8d-3303-42e6-849d-0c2c6cd99177.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1fe99654097dea91073c64faeb76e6bdeb400369bdfc86620acc49d5127c489 +size 255521 diff --git a/3e2c0aba-1d2b-4700-9805-74a5d9b80935.png b/3e2c0aba-1d2b-4700-9805-74a5d9b80935.png new file mode 100644 index 0000000000000000000000000000000000000000..dc7589b8ccb6f5aa1da097a7741334d5b3e4c2cb --- /dev/null +++ b/3e2c0aba-1d2b-4700-9805-74a5d9b80935.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fe82eb2dad87f864c2ad2e2b08b65951e749a4e307853ad5fa8decfe7a40aaf +size 264274 diff --git a/3ed4774c-29cd-4258-810d-23d0af31fa14.png b/3ed4774c-29cd-4258-810d-23d0af31fa14.png new file mode 100644 index 0000000000000000000000000000000000000000..d80870ef7390acd80ec28a2087d3506fc65725fc --- /dev/null +++ b/3ed4774c-29cd-4258-810d-23d0af31fa14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76941ecd2dbe4d09f68f6179676c45d7cc45dd9d48b9bef787e2db4d6ca1410f +size 227269 diff --git a/3f396f02-2909-4ed9-a310-42ed4b992ad6.png b/3f396f02-2909-4ed9-a310-42ed4b992ad6.png new file mode 100644 index 0000000000000000000000000000000000000000..d9490306dcb04a72ece934413d97cc96c06452ac --- /dev/null +++ b/3f396f02-2909-4ed9-a310-42ed4b992ad6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d83641f407ff40e7c7bea1f3b6ee5eb7df0a60fd37b33d1ef419a7da678d11d +size 216922 diff --git a/438f6362-62cf-4cbf-b46e-21df70b0ec28.png b/438f6362-62cf-4cbf-b46e-21df70b0ec28.png new file mode 100644 index 0000000000000000000000000000000000000000..d7681f9d12ff84fdfc3568f50be8bd5b6e3e354a --- /dev/null +++ b/438f6362-62cf-4cbf-b46e-21df70b0ec28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba7a191a9d9196bf56db6cf310d238e400332576fd8c1df6dafa20a9f4631822 +size 271776 diff --git a/464a5efc-c7f3-424d-a1ea-b60c07fd45fa.png b/464a5efc-c7f3-424d-a1ea-b60c07fd45fa.png new file mode 100644 index 0000000000000000000000000000000000000000..70361303dd2a2ad220bc07a3c0eb8d2d62e1048c --- /dev/null +++ b/464a5efc-c7f3-424d-a1ea-b60c07fd45fa.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9332faae52b3a7a8c5f282027e13afebf5dc05113e7d1c81f451269791d4e9b7 +size 333932 diff --git a/46a6b6ec-10b5-4f6a-87bd-6337933883ad.png b/46a6b6ec-10b5-4f6a-87bd-6337933883ad.png new file mode 100644 index 0000000000000000000000000000000000000000..213637d521cf240c6ed3d281b17398f354d53fd2 --- /dev/null +++ b/46a6b6ec-10b5-4f6a-87bd-6337933883ad.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2106086aed89b2d9a4cfa05b002bcd466dd218ac9f2f1f7c46707305dd1e629 +size 361895 diff --git a/479274b0-ff1b-4372-8cff-e2bc35ecb61d.png b/479274b0-ff1b-4372-8cff-e2bc35ecb61d.png new file mode 100644 index 0000000000000000000000000000000000000000..a25b086c9efe29935d4279f9f4b468d5a415434c --- /dev/null +++ b/479274b0-ff1b-4372-8cff-e2bc35ecb61d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cdbff462e28e71e1c3c5d211d80365bc9936383e259881574a6762fb9e55c84 +size 295916 diff --git a/47e7043d-bf77-4c18-a011-90867b49ef11.png b/47e7043d-bf77-4c18-a011-90867b49ef11.png new file mode 100644 index 0000000000000000000000000000000000000000..602d8be0a021066f40a07e3127cd89f5c92aaae3 --- /dev/null +++ b/47e7043d-bf77-4c18-a011-90867b49ef11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21315dd40eb00f560660f8c1195ad214b6a950386abb6f64455ef0e3fad68edf +size 140977 diff --git a/485cf241-cdd3-425e-aac8-e3a952234d5f.png b/485cf241-cdd3-425e-aac8-e3a952234d5f.png new file mode 100644 index 0000000000000000000000000000000000000000..5139dcea269e7ba640529540a57aca46d87c839b --- /dev/null +++ b/485cf241-cdd3-425e-aac8-e3a952234d5f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5112e98f9b09d70ee4463bce7493fed18b2f8f56ee41b0062e08970c0f79deee +size 189246 diff --git a/48c996a3-156c-460a-b814-5234efea5fcd.png b/48c996a3-156c-460a-b814-5234efea5fcd.png new file mode 100644 index 0000000000000000000000000000000000000000..cc4cd8164121578d619ce5889ffce041777b2a97 --- /dev/null +++ b/48c996a3-156c-460a-b814-5234efea5fcd.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65b1e284ec28790454cd933d8ed814eab68b155cea41f91e9691afce97d740ad +size 174051 diff --git a/4c6f93d9-0537-430b-99e7-c797f2c8de82.png b/4c6f93d9-0537-430b-99e7-c797f2c8de82.png new file mode 100644 index 0000000000000000000000000000000000000000..5b7771593703a13f486c1447725518795189e0da --- /dev/null +++ b/4c6f93d9-0537-430b-99e7-c797f2c8de82.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:805811f7acfc510f27d969e52fbbc8c4e556dcba67dba50f0a5c5965d1d0c3fe +size 213125 diff --git a/4dbd307e-8156-4448-a518-0e6fb4792e66.png b/4dbd307e-8156-4448-a518-0e6fb4792e66.png new file mode 100644 index 0000000000000000000000000000000000000000..6bf8dfc221d8de7dd75ba9d746b31bae0d305be2 --- /dev/null +++ b/4dbd307e-8156-4448-a518-0e6fb4792e66.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6274d7d935e45b4bd710328d3ae8b657e25a2037c5c2f5d3d66ec31e875be706 +size 216832 diff --git a/4e2a78ac-468f-4c20-b7f8-2fde226d1590.png b/4e2a78ac-468f-4c20-b7f8-2fde226d1590.png new file mode 100644 index 0000000000000000000000000000000000000000..6f1e04925d8a59df13316465f7a8904e0de1e9ef --- /dev/null +++ b/4e2a78ac-468f-4c20-b7f8-2fde226d1590.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d15d9100c34f31f5deaf929ae7f87bdb4a8cf9bb825214594dcde0bc2fa7e86c +size 182445 diff --git a/4f13d4d4-cc68-4521-8e2c-83d743eb88a3.png b/4f13d4d4-cc68-4521-8e2c-83d743eb88a3.png new file mode 100644 index 0000000000000000000000000000000000000000..5f8e32b8eca56327a10a38890acea426c5ce313c --- /dev/null +++ b/4f13d4d4-cc68-4521-8e2c-83d743eb88a3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7cc54f1830f39ac638ae39771e7a843d58b557ff0f42b1ec8b845ff77240912 +size 214910 diff --git a/4fa0fee9-ffb8-4ba9-b9e1-97fd1f32addc.png b/4fa0fee9-ffb8-4ba9-b9e1-97fd1f32addc.png new file mode 100644 index 0000000000000000000000000000000000000000..a09f905005a710072ffddeec4e51f14b1898b78a --- /dev/null +++ b/4fa0fee9-ffb8-4ba9-b9e1-97fd1f32addc.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:949d172ada7aec9de54a64a4787c6420d6907f4290a22b1e9b5193dfa35bfee7 +size 258998 diff --git a/4fcd4bcd-c2b4-4f93-b92b-9e0864427c37.png b/4fcd4bcd-c2b4-4f93-b92b-9e0864427c37.png new file mode 100644 index 0000000000000000000000000000000000000000..fcb2a090d89bfd457036792a8318dee6653cd671 --- /dev/null +++ b/4fcd4bcd-c2b4-4f93-b92b-9e0864427c37.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eb5ab1e1d840e70df1e444617ac636b4cdbccbeb9d15309cb08cc6e956d985a +size 180919 diff --git a/514e7354-0053-432b-bb3a-50053d6b326f.png b/514e7354-0053-432b-bb3a-50053d6b326f.png new file mode 100644 index 0000000000000000000000000000000000000000..d11261a795bfaad8e7e2aa3276ad5cb19dc4c4d1 --- /dev/null +++ b/514e7354-0053-432b-bb3a-50053d6b326f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96e927ce59459b16a64f10f6a8472fbb8a9aa3f2dc549f51441acabd4e64173a +size 216746 diff --git a/5298e884-00c3-44d7-a14e-72ce8838a731.png b/5298e884-00c3-44d7-a14e-72ce8838a731.png new file mode 100644 index 0000000000000000000000000000000000000000..3b3640753a4ceff894705509fe7c441a8ecc8848 --- /dev/null +++ b/5298e884-00c3-44d7-a14e-72ce8838a731.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4eb7707d0c3e3abf1602e782162cabd6ae636278e3afe54e3db54eed8b94fe07 +size 108718 diff --git a/5426170f-0e5d-47d5-bf57-f1f3221ba9bd.png b/5426170f-0e5d-47d5-bf57-f1f3221ba9bd.png new file mode 100644 index 0000000000000000000000000000000000000000..8b3418304048da9584af8ea69b1068e3778eb3a5 --- /dev/null +++ b/5426170f-0e5d-47d5-bf57-f1f3221ba9bd.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9ed5242e36bdbaa4d86bc810f5ac7533bcb162e236799d9b0716ebd3b94bc18 +size 287934 diff --git a/5457afce-29ae-4e71-a942-a2422718e1b4.png b/5457afce-29ae-4e71-a942-a2422718e1b4.png new file mode 100644 index 0000000000000000000000000000000000000000..d6af22bfb279a211e8f1fd0d3ee34f3aa4b4445e --- /dev/null +++ b/5457afce-29ae-4e71-a942-a2422718e1b4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a29ee1c5b8cb814d601c4e3ec38f287c087231efeab9b041c66d9536dba49e0 +size 127468 diff --git a/549355db-20ff-470e-bd20-939db2561634.png b/549355db-20ff-470e-bd20-939db2561634.png new file mode 100644 index 0000000000000000000000000000000000000000..7b8c581e637712dc04eecd63a50e3ab6363fb833 --- /dev/null +++ b/549355db-20ff-470e-bd20-939db2561634.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f37c4f057acaa9f886cf9e6f547a56efdbb079452b2a85b5aa8b7015e00f668c +size 256328 diff --git a/561e03ab-d8d6-4a10-aeea-1cbb956b4b34.png b/561e03ab-d8d6-4a10-aeea-1cbb956b4b34.png new file mode 100644 index 0000000000000000000000000000000000000000..e1fe26b9d0436e475d9577bc8f8473eaf40ef83d --- /dev/null +++ b/561e03ab-d8d6-4a10-aeea-1cbb956b4b34.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a50e6c5756d30ba1bb73f5ab763e01f1f8aa18c0dfba7ce490d05ffbb625cea +size 210844 diff --git a/568fff60-5a43-4426-bbbe-98ba8912cf00.png b/568fff60-5a43-4426-bbbe-98ba8912cf00.png new file mode 100644 index 0000000000000000000000000000000000000000..50b5da2a1a7b7e0e8d21cd393fe5fd45a42fceb4 --- /dev/null +++ b/568fff60-5a43-4426-bbbe-98ba8912cf00.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50643a3e36151be4097ef31a784ed3f647926c170c36c1da735bf2a92b4eaaf2 +size 238670 diff --git a/56c0630f-51af-4056-ad51-006bed9d1b06.png b/56c0630f-51af-4056-ad51-006bed9d1b06.png new file mode 100644 index 0000000000000000000000000000000000000000..7e46ca66c25dbe66c2977eb3b2c270cee662ee41 --- /dev/null +++ b/56c0630f-51af-4056-ad51-006bed9d1b06.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:453bd06b6f1efa4e670871d820f2b3a64d364b535aa895409b469df72d8752ec +size 247290 diff --git a/5908f81e-1f52-4872-b3dc-091623605ed3.png b/5908f81e-1f52-4872-b3dc-091623605ed3.png new file mode 100644 index 0000000000000000000000000000000000000000..360a01c56fc4d569acee4a1a6ed8f344519990f1 --- /dev/null +++ b/5908f81e-1f52-4872-b3dc-091623605ed3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9038264839b78d351bf21686d921fedec96ea94bea82c3970f084f7b39792b2 +size 286574 diff --git a/5af455e3-091c-46e0-8f40-aa9f38f865b9.png b/5af455e3-091c-46e0-8f40-aa9f38f865b9.png new file mode 100644 index 0000000000000000000000000000000000000000..10754eae50dc6e77cb830475d1ad344edbbed896 --- /dev/null +++ b/5af455e3-091c-46e0-8f40-aa9f38f865b9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35bd545e14fd0c00c24add2708d50c7db33c0d0367a3b9dfc6bad7b3c6050bf2 +size 311008 diff --git a/5d4badfd-27bc-4fb3-a52f-eb62d4015fe7.png b/5d4badfd-27bc-4fb3-a52f-eb62d4015fe7.png new file mode 100644 index 0000000000000000000000000000000000000000..310b18c8385b3e78f1212fe7f9c22cb53299ee99 --- /dev/null +++ b/5d4badfd-27bc-4fb3-a52f-eb62d4015fe7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63f62741632712ea7f0e85ffb591777f04b875695eacbebd51a88b0af493efdb +size 249729 diff --git a/5e15d59d-d0cb-4979-9021-22e7fd07a6d4.png b/5e15d59d-d0cb-4979-9021-22e7fd07a6d4.png new file mode 100644 index 0000000000000000000000000000000000000000..9f08b7b7d4d96749b6d59c1348957ebd52e8b901 --- /dev/null +++ b/5e15d59d-d0cb-4979-9021-22e7fd07a6d4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bf6fc3479fa88e54455ce23fc61b5b9251fcc4e63f39505cff18174e9ad8b9e +size 202741 diff --git a/5e597082-59e6-428e-8601-65cf63154a1b.png b/5e597082-59e6-428e-8601-65cf63154a1b.png new file mode 100644 index 0000000000000000000000000000000000000000..315007012bbdee00c6949108b855a57cc6523150 --- /dev/null +++ b/5e597082-59e6-428e-8601-65cf63154a1b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ec694d9eed33128eb6d4a1479894ce699f444d7e11b0657b48292e9f45c71a3 +size 260271 diff --git a/5f487700-f430-4899-8e7c-3c4e7b304bf7.png b/5f487700-f430-4899-8e7c-3c4e7b304bf7.png new file mode 100644 index 0000000000000000000000000000000000000000..d12cd31e475624528f0c8faa7c5d53ff5218e5c6 --- /dev/null +++ b/5f487700-f430-4899-8e7c-3c4e7b304bf7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdb6254be438910be760cc9945b1ec728d7d9ffa3e9163be1963e0bd36c09a7a +size 304672 diff --git a/5ff963ad-588b-4ca7-913d-d9981ab2d3a8.png b/5ff963ad-588b-4ca7-913d-d9981ab2d3a8.png new file mode 100644 index 0000000000000000000000000000000000000000..22e561cf1573d2518814cc139fc636b88eed6f5d --- /dev/null +++ b/5ff963ad-588b-4ca7-913d-d9981ab2d3a8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cea9eaa15f0a3cec5546957444dd9a38160e9b523ed8a0989aab66b1d8c915bc +size 266207 diff --git a/60cec248-48a7-4ef7-87e8-5f92d4bec571.png b/60cec248-48a7-4ef7-87e8-5f92d4bec571.png new file mode 100644 index 0000000000000000000000000000000000000000..3fcc64819dd7acb8a1f09ebfe91809349622627e --- /dev/null +++ b/60cec248-48a7-4ef7-87e8-5f92d4bec571.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bef484bb6ceb5450bf6ee1b5a96e0526eaaf217f2c8120dd330366b193a631ab +size 209881 diff --git a/6184f9af-0d54-4b32-835a-9703f77c90c5.png b/6184f9af-0d54-4b32-835a-9703f77c90c5.png new file mode 100644 index 0000000000000000000000000000000000000000..def20a153c3875f926865755c565d88d5bf68ec4 --- /dev/null +++ b/6184f9af-0d54-4b32-835a-9703f77c90c5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:429725c7f8de40d0724cf2d54ae672e3fe4dcbd88aee929d295fe7e2828ded50 +size 140891 diff --git a/61bf6d9b-ce18-4e0a-83d4-c51e19b0eaf6.png b/61bf6d9b-ce18-4e0a-83d4-c51e19b0eaf6.png new file mode 100644 index 0000000000000000000000000000000000000000..1cca1c29cd9852d86d23505b6b9d95ee358693c7 --- /dev/null +++ b/61bf6d9b-ce18-4e0a-83d4-c51e19b0eaf6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df4d2b41b95d780c5c8852a2b27404e8c23924a2a8aa9b143da197112be025ca +size 168494 diff --git a/6336d3ce-1bef-41cb-b33e-55033ef2d26a.png b/6336d3ce-1bef-41cb-b33e-55033ef2d26a.png new file mode 100644 index 0000000000000000000000000000000000000000..4ede234e8ca147d81136e1855cd04e55eacec888 --- /dev/null +++ b/6336d3ce-1bef-41cb-b33e-55033ef2d26a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:764c3b2383e51c35a85f7c8e55220b7f227f5a40410438749dacd6b012824680 +size 293240 diff --git a/66e5c4e9-f5d6-4871-8e5c-7d5a8fd17860.png b/66e5c4e9-f5d6-4871-8e5c-7d5a8fd17860.png new file mode 100644 index 0000000000000000000000000000000000000000..58e29dc996f89ff4c7878db5dce298dd24cb540e --- /dev/null +++ b/66e5c4e9-f5d6-4871-8e5c-7d5a8fd17860.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:085139c9588161fa6dca78e54208ce0b416d115989a40369028f1f52301e67f7 +size 307274 diff --git a/66f4ec78-d4aa-443c-a622-7cad22c985cb.png b/66f4ec78-d4aa-443c-a622-7cad22c985cb.png new file mode 100644 index 0000000000000000000000000000000000000000..8f48d7d960a29ed7351d1d40912216f782906314 --- /dev/null +++ b/66f4ec78-d4aa-443c-a622-7cad22c985cb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a64e69928c4f418c7f012a56a7d7ff16c9726a083b2e96df7807bf860cea7e9 +size 208382 diff --git a/67e9ad11-9e4f-42c2-8039-31f011e03270.png b/67e9ad11-9e4f-42c2-8039-31f011e03270.png new file mode 100644 index 0000000000000000000000000000000000000000..89334d5c529dd0ad11aceb62677002a2580daa0b --- /dev/null +++ b/67e9ad11-9e4f-42c2-8039-31f011e03270.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a67128327006f5135a01e6860013f175163a3870ee2cb03ced0ac122d97686ab +size 236636 diff --git a/690fd6f0-e8d2-4086-a089-4952021ce526.png b/690fd6f0-e8d2-4086-a089-4952021ce526.png new file mode 100644 index 0000000000000000000000000000000000000000..5f5f71ae353eef19064800874dadd8773adc7a0f --- /dev/null +++ b/690fd6f0-e8d2-4086-a089-4952021ce526.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfa4d6786cfd02107e86c6f5bd2ac4a783d8d9234192582ae789f24c99b8ca19 +size 249174 diff --git a/6e637a12-e477-4239-9d3c-9c5b0ccac859.png b/6e637a12-e477-4239-9d3c-9c5b0ccac859.png new file mode 100644 index 0000000000000000000000000000000000000000..73f1c5c9bdd5bad9ef89dd9fa9ab764cf81ee302 --- /dev/null +++ b/6e637a12-e477-4239-9d3c-9c5b0ccac859.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89c8a5d0497a7ed6e7b25784b99ece82d4b9032593adf8c925ae8d565dd1715e +size 237687 diff --git a/6ee42c71-6885-407c-bfdc-73e480070a67.png b/6ee42c71-6885-407c-bfdc-73e480070a67.png new file mode 100644 index 0000000000000000000000000000000000000000..c9bea66fdcdcecbd50305df797193e8b81a7f46f --- /dev/null +++ b/6ee42c71-6885-407c-bfdc-73e480070a67.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c2676c49f778e797ff13fde8b501e448182ee182b0d1d1c48cc5f87739d2c3d +size 19043 diff --git a/6f882e89-7fc7-4cd7-aad4-4ddf26e8bf00.png b/6f882e89-7fc7-4cd7-aad4-4ddf26e8bf00.png new file mode 100644 index 0000000000000000000000000000000000000000..c5089b948ebd51507e00f5088d2b92ae0736de28 --- /dev/null +++ b/6f882e89-7fc7-4cd7-aad4-4ddf26e8bf00.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f7f2f2a65c62996d6075106f606d8ffc0bab3dbf2f4eb3569a5311029358221 +size 338263 diff --git a/7018dceb-712d-4256-a105-057575612a24.png b/7018dceb-712d-4256-a105-057575612a24.png new file mode 100644 index 0000000000000000000000000000000000000000..7595a1b6aaa171fe1193365032f804ac4f4ecf41 --- /dev/null +++ b/7018dceb-712d-4256-a105-057575612a24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10136fec7837b10386e3d1fecf3b2b7282e7eecbfe6b740e6712b671b2b479b2 +size 200850 diff --git a/71f03aa1-714a-4e49-acd9-f79b73c9d5d5.png b/71f03aa1-714a-4e49-acd9-f79b73c9d5d5.png new file mode 100644 index 0000000000000000000000000000000000000000..8909aadcf54dc9c8b7640bdc44432ab24e63038a --- /dev/null +++ b/71f03aa1-714a-4e49-acd9-f79b73c9d5d5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf03008d6052107cfba888bdcefb7aefbb881aaf5bc7f207f2e0f8eb78c3036a +size 258004 diff --git a/72036c25-61f4-4878-93b8-511bcf07560f.png b/72036c25-61f4-4878-93b8-511bcf07560f.png new file mode 100644 index 0000000000000000000000000000000000000000..6227dbc16c7aa88bc6f0bae9b09103b8b3f26eaf --- /dev/null +++ b/72036c25-61f4-4878-93b8-511bcf07560f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5268040b430087cc0a3c34a6c20a93932f124fa1f0271cd5740171a93ec2bf97 +size 325661 diff --git a/727001a2-1727-4fc8-b41f-af39ce620bbb.png b/727001a2-1727-4fc8-b41f-af39ce620bbb.png new file mode 100644 index 0000000000000000000000000000000000000000..15434908be9a693dbb8dcd7f8ea2c99772272845 --- /dev/null +++ b/727001a2-1727-4fc8-b41f-af39ce620bbb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa362f3ce1c19d657f57c8f38ef8779bdd534f2b433ef709b113cbc8048a7c87 +size 131964 diff --git a/72ebd5c4-e9f1-4b8b-8ec5-b25dd05c5262.png b/72ebd5c4-e9f1-4b8b-8ec5-b25dd05c5262.png new file mode 100644 index 0000000000000000000000000000000000000000..6fea7c226be80cf1bacfde7e3ef040a021318357 --- /dev/null +++ b/72ebd5c4-e9f1-4b8b-8ec5-b25dd05c5262.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2598915037bee9ffc86348bdcdfaee37b58cd81cf14373a54953ddd1c5d44520 +size 257910 diff --git a/733d1931-73c4-4ab1-9e00-76e34ad98a6d.png b/733d1931-73c4-4ab1-9e00-76e34ad98a6d.png new file mode 100644 index 0000000000000000000000000000000000000000..0d0e47e14f3c1c78cb14b3f5b5dd651606537a5a --- /dev/null +++ b/733d1931-73c4-4ab1-9e00-76e34ad98a6d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaa7cf7fa5c3c4e58e6bc5c6b8bd6df3909220f36becc48e99b63e188cd4dd50 +size 29138 diff --git a/78c09f52-a3f4-4a4c-adf4-c8d719fe2a4d.png b/78c09f52-a3f4-4a4c-adf4-c8d719fe2a4d.png new file mode 100644 index 0000000000000000000000000000000000000000..959e9f67b06000c2a32dafc0d7ad58f68dc3f03c --- /dev/null +++ b/78c09f52-a3f4-4a4c-adf4-c8d719fe2a4d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aea0d43247e973babaef2791090d354c8ec2f4f85829b9378a006a45b0b9623 +size 308862 diff --git a/79231ace-6e62-49e5-86de-e835ae0d255d.png b/79231ace-6e62-49e5-86de-e835ae0d255d.png new file mode 100644 index 0000000000000000000000000000000000000000..f30153b56fb0fa45463abd685b405148da5ed487 --- /dev/null +++ b/79231ace-6e62-49e5-86de-e835ae0d255d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d0e3ed043fcac71a622413d7b4460de9e5983bd70b785e8d3b58437215f620b +size 43508 diff --git a/7bc2ea96-3e11-44a1-b39c-a057ecdb289a.png b/7bc2ea96-3e11-44a1-b39c-a057ecdb289a.png new file mode 100644 index 0000000000000000000000000000000000000000..9ca92d8a2e6eab2d6919856cf7315ac55df33f96 --- /dev/null +++ b/7bc2ea96-3e11-44a1-b39c-a057ecdb289a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea9bb1008cc95a1c0729df8aba50acc8877c3cf5337bcec38f997d51f2399e0e +size 266152 diff --git a/7c63e9d5-3477-420b-86f5-6058c3f5917a.png b/7c63e9d5-3477-420b-86f5-6058c3f5917a.png new file mode 100644 index 0000000000000000000000000000000000000000..696d013d3abbf7a76b24ed144c34823b6f799d26 --- /dev/null +++ b/7c63e9d5-3477-420b-86f5-6058c3f5917a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90c9313104a1cfe98d2e8c66e5f36516c341eb688f65880c9c496e27ad7f07c6 +size 280006 diff --git a/7d900bf2-efa5-4d0e-a667-a51042674997.png b/7d900bf2-efa5-4d0e-a667-a51042674997.png new file mode 100644 index 0000000000000000000000000000000000000000..9e14d60cdc49425edc8ad79e8fe9ff5c801a26d0 --- /dev/null +++ b/7d900bf2-efa5-4d0e-a667-a51042674997.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e069128f6e55cb9cf0d57d64726bcf37f7677cc681cdbb08744a736c6bba857b +size 286671 diff --git a/7d9c271b-064f-4f53-9533-68898d70c173.png b/7d9c271b-064f-4f53-9533-68898d70c173.png new file mode 100644 index 0000000000000000000000000000000000000000..ce58518b4191be5c045ed1130325c1f74dfb9c8a --- /dev/null +++ b/7d9c271b-064f-4f53-9533-68898d70c173.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bf37a06123464923d1efef2a537d68756979da65823c8a1781986649c394b45 +size 43083 diff --git a/7f9a0546-fa1e-47f3-a108-038d14244833.png b/7f9a0546-fa1e-47f3-a108-038d14244833.png new file mode 100644 index 0000000000000000000000000000000000000000..279339c2080262b026170506e88f03abf5a1f945 --- /dev/null +++ b/7f9a0546-fa1e-47f3-a108-038d14244833.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d037aaaa8cd1b7904963e4d4dcf45b837b37afeba2ea381c0fe1935eba9f113 +size 244132 diff --git a/8171494a-2c97-4867-a59b-b39bd8dcfda0.png b/8171494a-2c97-4867-a59b-b39bd8dcfda0.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0ba9dc0d6612800ddaf3eb2969928eca83661b --- /dev/null +++ b/8171494a-2c97-4867-a59b-b39bd8dcfda0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d461d0d0b700e3b3a38381c1f8caec0a52005d35657445526f53f08432c27302 +size 255115 diff --git a/837e28d8-5b8a-4e97-96b8-bf849f28aa42.png b/837e28d8-5b8a-4e97-96b8-bf849f28aa42.png new file mode 100644 index 0000000000000000000000000000000000000000..d9c4011b895b07027e1bb64e8d9bd764dbfbbe27 --- /dev/null +++ b/837e28d8-5b8a-4e97-96b8-bf849f28aa42.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12ead5b91afa3006288eac68b90d75b0cef004c4b32635dbff12248feb10ca2f +size 244325 diff --git a/84da6044-92ca-49c9-a909-0b1eed61fd63.png b/84da6044-92ca-49c9-a909-0b1eed61fd63.png new file mode 100644 index 0000000000000000000000000000000000000000..ef07246e243cc54bfd2bfad87415cb1f42d139f2 --- /dev/null +++ b/84da6044-92ca-49c9-a909-0b1eed61fd63.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:818d49f364329a9f8ca6932bd3e3d03b5ba9ed501aebb0f23c5bf45c796d2a15 +size 269123 diff --git a/85a7268b-68f3-4cc0-8af9-38bc0d26d05c.png b/85a7268b-68f3-4cc0-8af9-38bc0d26d05c.png new file mode 100644 index 0000000000000000000000000000000000000000..61f440650d2163aafe04cfdc3137f24cf7a5d9db --- /dev/null +++ b/85a7268b-68f3-4cc0-8af9-38bc0d26d05c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f8bbf5b3022cde17ab13c795d550e94fe4ac4fed4b28dc9de5f896602298e1c +size 209541 diff --git a/8a1404eb-ad33-4ec9-8356-ac89bbf9c397.png b/8a1404eb-ad33-4ec9-8356-ac89bbf9c397.png new file mode 100644 index 0000000000000000000000000000000000000000..13b55c98a19c25f3d80bb3f6843eb11a5cd53604 --- /dev/null +++ b/8a1404eb-ad33-4ec9-8356-ac89bbf9c397.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1cfaed250eac3794f16d9c97f917f7e32ea3d729ac8386623a84e690149638d +size 246841 diff --git a/8ace0d9d-0179-4f24-b4ee-2546975bf7e4.png b/8ace0d9d-0179-4f24-b4ee-2546975bf7e4.png new file mode 100644 index 0000000000000000000000000000000000000000..723e286b57c1b62e3cbb6f0871e247241320e5dd --- /dev/null +++ b/8ace0d9d-0179-4f24-b4ee-2546975bf7e4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02035b95e3fd35165f90a89643974b23d0fe6bb26a2a3f9a110d44fa6fd784f7 +size 225747 diff --git a/8b2ad263-a02a-400b-9ab6-e856cb6d97ca.png b/8b2ad263-a02a-400b-9ab6-e856cb6d97ca.png new file mode 100644 index 0000000000000000000000000000000000000000..0317c3bf52ad503535c2c2075780220089a4a997 --- /dev/null +++ b/8b2ad263-a02a-400b-9ab6-e856cb6d97ca.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea610b4a2fe3c75b449fbdf3151fb8727a635a141c053ccb94a6ecf83aee00f7 +size 256266 diff --git a/8bf91f7d-6c8c-4597-834d-8850d423613f.png b/8bf91f7d-6c8c-4597-834d-8850d423613f.png new file mode 100644 index 0000000000000000000000000000000000000000..b29f8d285909829c2c64fee02cb307b4976c6208 --- /dev/null +++ b/8bf91f7d-6c8c-4597-834d-8850d423613f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46144c3c3232da5f1f446e4199aafc84ac466b6658eee7ac54656998da6f93fd +size 222094 diff --git a/8e1e618e-ea90-4442-b001-d612cb66b1c0.png b/8e1e618e-ea90-4442-b001-d612cb66b1c0.png new file mode 100644 index 0000000000000000000000000000000000000000..53109b538c04a81a910a654fbef5132bf060682e --- /dev/null +++ b/8e1e618e-ea90-4442-b001-d612cb66b1c0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d173fee258ba7b765efe227a2b8aaad6f2e21adbdfe94fb4c3ce973e90b6da10 +size 11666 diff --git a/8eeb870a-1687-4b2b-bbb8-7193d2c0acea.png b/8eeb870a-1687-4b2b-bbb8-7193d2c0acea.png new file mode 100644 index 0000000000000000000000000000000000000000..8c189c8f70051d3c2f267c70d1c808615e2b7d75 --- /dev/null +++ b/8eeb870a-1687-4b2b-bbb8-7193d2c0acea.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c104ab637a14d6bb296f75238c7aaac4d22c887676ee9664876d3131ee31fbc +size 230386 diff --git a/8fb2be33-f218-4544-a3f9-880758c3e9db.png b/8fb2be33-f218-4544-a3f9-880758c3e9db.png new file mode 100644 index 0000000000000000000000000000000000000000..becf2be777cbf5c727daeb52f3b74a96fe794fdd --- /dev/null +++ b/8fb2be33-f218-4544-a3f9-880758c3e9db.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba22277cb155aadb280f6fbca2dcb5b2dccf9b640e346a8d0fd79e9a9581a8a7 +size 260629 diff --git a/9178c3b8-28c6-41a8-9305-659150bf6db4.png b/9178c3b8-28c6-41a8-9305-659150bf6db4.png new file mode 100644 index 0000000000000000000000000000000000000000..4bee7f3b5fa531de7f34bf32b6c60a12a2dc778b --- /dev/null +++ b/9178c3b8-28c6-41a8-9305-659150bf6db4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2523a33e2aa4a52a148e0d03c6df91f38213f7348b4ebd67f6721c364038058 +size 328402 diff --git a/91cb1b84-8c7f-4c74-a024-8aec6898593e.png b/91cb1b84-8c7f-4c74-a024-8aec6898593e.png new file mode 100644 index 0000000000000000000000000000000000000000..1e5bb03f66bec28599a41d8bf1d1f8da55d0a701 --- /dev/null +++ b/91cb1b84-8c7f-4c74-a024-8aec6898593e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8262d9a2c98ef0007533abce771051a06d195985b2785fe787f6362fdd3473aa +size 287455 diff --git a/9351df9a-7937-4127-ba86-1caa1769369c.png b/9351df9a-7937-4127-ba86-1caa1769369c.png new file mode 100644 index 0000000000000000000000000000000000000000..a76224647016e194fed646cad6f7730324f4bc2a --- /dev/null +++ b/9351df9a-7937-4127-ba86-1caa1769369c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aca4fd36e8adaa760a5dc705a316b589ee07f2ef70924d531cc5875be58bb392 +size 262994 diff --git a/9559f33a-e804-4926-821c-62b52d72ae25.png b/9559f33a-e804-4926-821c-62b52d72ae25.png new file mode 100644 index 0000000000000000000000000000000000000000..0c847a98fc388dc375a9c9d9ff0b94b24ca09890 --- /dev/null +++ b/9559f33a-e804-4926-821c-62b52d72ae25.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbe76536180eaec07be0a4d77413113ffe26c9a21865fa14e6ea63cf2391d068 +size 236327 diff --git a/957ffab1-239d-4b56-bf18-bea50e9cf962.png b/957ffab1-239d-4b56-bf18-bea50e9cf962.png new file mode 100644 index 0000000000000000000000000000000000000000..618b803125b4a687bc9fc96edcdccac280a14e1e --- /dev/null +++ b/957ffab1-239d-4b56-bf18-bea50e9cf962.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cc890c4715d098bc95c712e3e527f39e3c45a219f2b16de8af19ba3e4da946c +size 230270 diff --git a/95a6f56d-ee44-4ee9-b97b-ae71897f9422.png b/95a6f56d-ee44-4ee9-b97b-ae71897f9422.png new file mode 100644 index 0000000000000000000000000000000000000000..0d323ab19fec4e580a6290133b1751d4b10188ec --- /dev/null +++ b/95a6f56d-ee44-4ee9-b97b-ae71897f9422.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a62276d3e1072e2374aa07bf563c95bdd538609a9b790a47d2f5a0a88c7a3052 +size 309202 diff --git a/97863a42-39b2-4438-9aba-58774dafa832.png b/97863a42-39b2-4438-9aba-58774dafa832.png new file mode 100644 index 0000000000000000000000000000000000000000..34e3f86e91e1177be2e44010c6cd0257eadc907a --- /dev/null +++ b/97863a42-39b2-4438-9aba-58774dafa832.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a581f9ccf6df850e5fc6eb1252c96591099cfe9a69baa4343c150d6a2d95c674 +size 180331 diff --git a/97a59208-4245-4f14-89fd-ea9c464a8d57.png b/97a59208-4245-4f14-89fd-ea9c464a8d57.png new file mode 100644 index 0000000000000000000000000000000000000000..f878238aa58185cb26e9156bc1747dbbdd6874d5 --- /dev/null +++ b/97a59208-4245-4f14-89fd-ea9c464a8d57.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc6e267b6b8c106d64898fe52b22590b1db48225cef26e82ba19f861445c1006 +size 256305 diff --git a/99fe4134-8cd8-4ce6-a800-1f342d6e0348.png b/99fe4134-8cd8-4ce6-a800-1f342d6e0348.png new file mode 100644 index 0000000000000000000000000000000000000000..eda4b10854d3fc3c862e7d9722ce5449cb1c4f65 --- /dev/null +++ b/99fe4134-8cd8-4ce6-a800-1f342d6e0348.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4f141db0be6308ae03f06ed4a971145b1d7f40f460e8d867922dbffc64d3948 +size 366713 diff --git a/9a388652-c861-4db4-8576-7770a91e0b00.png b/9a388652-c861-4db4-8576-7770a91e0b00.png new file mode 100644 index 0000000000000000000000000000000000000000..74f81b1e241b753ede43e8485765e869e8784115 --- /dev/null +++ b/9a388652-c861-4db4-8576-7770a91e0b00.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67ca87473a2800118e90e36562e6f77932127639beb75136bf4024a4f6c0b027 +size 269473 diff --git a/9bb791d9-65db-4d21-8b27-e22a05ecc475.png b/9bb791d9-65db-4d21-8b27-e22a05ecc475.png new file mode 100644 index 0000000000000000000000000000000000000000..62230807bb0cbbf81ac5be2e8eb9580a03fcaa74 --- /dev/null +++ b/9bb791d9-65db-4d21-8b27-e22a05ecc475.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8155a108011e1acab8e7a575b07958c175708a350db38629b162b4fe96859258 +size 155799 diff --git a/9d6b558e-d049-4bb9-8554-50d699886854.png b/9d6b558e-d049-4bb9-8554-50d699886854.png new file mode 100644 index 0000000000000000000000000000000000000000..eec883a02107f7eadd68a3d2a1c969d6695b0602 --- /dev/null +++ b/9d6b558e-d049-4bb9-8554-50d699886854.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44b0c3d475a584547f04b2357ce9fc7ef092f4d07fffe80a82a6f6d981d8d136 +size 262373 diff --git a/9f15aa76-e3ed-425b-ae16-a23588e77f0f.png b/9f15aa76-e3ed-425b-ae16-a23588e77f0f.png new file mode 100644 index 0000000000000000000000000000000000000000..22904085932176974aa50b5047570d4784e08055 --- /dev/null +++ b/9f15aa76-e3ed-425b-ae16-a23588e77f0f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:add6cfef8493c621752668c1ad407d6f05260f81bed523bfdbba5731bfb26aac +size 233364 diff --git a/9f826f2a-ddb2-439b-9760-c695d39fe249.png b/9f826f2a-ddb2-439b-9760-c695d39fe249.png new file mode 100644 index 0000000000000000000000000000000000000000..1abd89bd81b784c7f3339849503a6b53c03b9cbc --- /dev/null +++ b/9f826f2a-ddb2-439b-9760-c695d39fe249.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91fedbaaa4e7ebd4202cec937ddca14266f16c9974669c36d74002155aa49876 +size 243067 diff --git a/9fe681c0-42a2-4a32-ac83-391670760f72.png b/9fe681c0-42a2-4a32-ac83-391670760f72.png new file mode 100644 index 0000000000000000000000000000000000000000..36cd46e52a021ceca18e194b6b7b6a4a7a4ea1fb --- /dev/null +++ b/9fe681c0-42a2-4a32-ac83-391670760f72.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c558424f5f7fb092646f196610d70b179687c8695b1a7d6c96ade4c158d555a +size 267534 diff --git a/a486c97f-6264-47e1-9a71-f65a09e23b7e.png b/a486c97f-6264-47e1-9a71-f65a09e23b7e.png new file mode 100644 index 0000000000000000000000000000000000000000..b11534523d31d15cb549b47301b8288ed017518d --- /dev/null +++ b/a486c97f-6264-47e1-9a71-f65a09e23b7e.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ba94df488afc02af444723e009a27a5a6c8e50dcd8ae57bd7de0a87c79872b0 +size 21731 diff --git a/a52a7464-8cf7-4719-a2a7-5100fa2c8aa3.png b/a52a7464-8cf7-4719-a2a7-5100fa2c8aa3.png new file mode 100644 index 0000000000000000000000000000000000000000..38f3e1daa5d847b9a0f2022619563076220a7dd7 --- /dev/null +++ b/a52a7464-8cf7-4719-a2a7-5100fa2c8aa3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:263068615957547cfbd860e3e2d716b59d0338092c7cd65f8e07ba6e83cf61a5 +size 226881 diff --git a/abcd58ad-46ef-46bb-9759-49800ea10e8b.png b/abcd58ad-46ef-46bb-9759-49800ea10e8b.png new file mode 100644 index 0000000000000000000000000000000000000000..f76c52bf25a53a0ed7da0c623f42ef281ba75522 --- /dev/null +++ b/abcd58ad-46ef-46bb-9759-49800ea10e8b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:934bcc002d6b9492a5b28074a07472814b896f760eef11c9bb93a0ec0f10c13a +size 160703 diff --git a/abe1bb09-622a-4660-b1d5-238b743edde9.png b/abe1bb09-622a-4660-b1d5-238b743edde9.png new file mode 100644 index 0000000000000000000000000000000000000000..2b5d30994e9ab08b8a3940d6a1ecb14a5bc29b27 --- /dev/null +++ b/abe1bb09-622a-4660-b1d5-238b743edde9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:694298ef4d057def7ec25be1ae5940e59f4944ec4c9022c0a94f78df662d04cc +size 249493 diff --git a/acdd59e6-f24e-4c75-af1a-6ef9049ed24d.png b/acdd59e6-f24e-4c75-af1a-6ef9049ed24d.png new file mode 100644 index 0000000000000000000000000000000000000000..7bb2c9222deb7701b264f4afc7a837848de69601 --- /dev/null +++ b/acdd59e6-f24e-4c75-af1a-6ef9049ed24d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b6ddc0c0b958418644d43f8ac75b156f88183af8bad712e4a522f19e2f625be +size 269337 diff --git a/b03f33a3-1bd3-4871-b517-6eaa0e4d4bfa.png b/b03f33a3-1bd3-4871-b517-6eaa0e4d4bfa.png new file mode 100644 index 0000000000000000000000000000000000000000..b485dc7832e4496f10e240b1ad1964f447fa8a22 --- /dev/null +++ b/b03f33a3-1bd3-4871-b517-6eaa0e4d4bfa.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32deac75c68003ce2965e8a082a4f1a067e974b1829cd915f2a4edb79bc6f879 +size 277517 diff --git a/b063111e-4e16-4786-abef-6a9b671f8972.png b/b063111e-4e16-4786-abef-6a9b671f8972.png new file mode 100644 index 0000000000000000000000000000000000000000..1abd89bd81b784c7f3339849503a6b53c03b9cbc --- /dev/null +++ b/b063111e-4e16-4786-abef-6a9b671f8972.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91fedbaaa4e7ebd4202cec937ddca14266f16c9974669c36d74002155aa49876 +size 243067 diff --git a/b09af6e8-c025-46a2-bb54-7a0c93da649a.png b/b09af6e8-c025-46a2-bb54-7a0c93da649a.png new file mode 100644 index 0000000000000000000000000000000000000000..a6dce0cbfa16930e6361155078c8f48afb44eb3d --- /dev/null +++ b/b09af6e8-c025-46a2-bb54-7a0c93da649a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14e580a29dd055da039a635a60cdb28e1516dbf56d2a9c8f233ebfbf276cf15a +size 253775 diff --git a/b0eec746-9576-483f-a217-8a3b25d662b9.png b/b0eec746-9576-483f-a217-8a3b25d662b9.png new file mode 100644 index 0000000000000000000000000000000000000000..3b64c2c20a722ea067285e7bf38cadaa6400c69a --- /dev/null +++ b/b0eec746-9576-483f-a217-8a3b25d662b9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:101c2d2e4a7e8ea0f6a04250378ac8bc401401101975d7a75915aac59df11365 +size 268864 diff --git a/b2d2f12b-0ec3-4d4e-b2c8-f049e4c1879c.png b/b2d2f12b-0ec3-4d4e-b2c8-f049e4c1879c.png new file mode 100644 index 0000000000000000000000000000000000000000..69d4f5bc08e37ec7d165be2563923601da449fe6 --- /dev/null +++ b/b2d2f12b-0ec3-4d4e-b2c8-f049e4c1879c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27a79173dff6af60c8f712ce0f54968bb4259af5c5c833b654dd3c8cbe0b1ad4 +size 178678 diff --git a/b30b869a-b14c-48ed-9853-3db04a2ca61b.png b/b30b869a-b14c-48ed-9853-3db04a2ca61b.png new file mode 100644 index 0000000000000000000000000000000000000000..d6af1cad907d79b42b7b1ca3533f975ddc36f249 --- /dev/null +++ b/b30b869a-b14c-48ed-9853-3db04a2ca61b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e4ac07ad7937b6dc4a5441ebe71205d7c95da7881c6fd9cb904d20a1766e905 +size 271021 diff --git a/b38fba95-0bf1-40a9-b0db-63a4abf634ab.png b/b38fba95-0bf1-40a9-b0db-63a4abf634ab.png new file mode 100644 index 0000000000000000000000000000000000000000..939d707971abfcde71985f9eae96ff35e16f0670 --- /dev/null +++ b/b38fba95-0bf1-40a9-b0db-63a4abf634ab.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cb6d8731cd2267c41245209a5be383a5ee5e8f527179a8101a32baf3cf2e7e1 +size 255898 diff --git a/b486f114-6fa9-4868-87bf-7dbe07a408de.png b/b486f114-6fa9-4868-87bf-7dbe07a408de.png new file mode 100644 index 0000000000000000000000000000000000000000..eda4b10854d3fc3c862e7d9722ce5449cb1c4f65 --- /dev/null +++ b/b486f114-6fa9-4868-87bf-7dbe07a408de.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4f141db0be6308ae03f06ed4a971145b1d7f40f460e8d867922dbffc64d3948 +size 366713 diff --git a/b4e33c5b-7db6-414b-a7d7-fdbf2a110892.png b/b4e33c5b-7db6-414b-a7d7-fdbf2a110892.png new file mode 100644 index 0000000000000000000000000000000000000000..fbcb0662c2715cf73f687ecc2fb10969d1813455 --- /dev/null +++ b/b4e33c5b-7db6-414b-a7d7-fdbf2a110892.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11bf7ef94d1a5685c63758a63fa87e6f139c3491ef7a9dd92246977fa8ca44cc +size 296783 diff --git a/b6984636-68a5-41df-8ca2-7244bfb180e5.png b/b6984636-68a5-41df-8ca2-7244bfb180e5.png new file mode 100644 index 0000000000000000000000000000000000000000..ff0447cbc8920eef13b330e7bbc8beef66ce54bc --- /dev/null +++ b/b6984636-68a5-41df-8ca2-7244bfb180e5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fbf635e7ec1b646be6595835037fe10b9382e3536571421cb9fb5e5abbc0592 +size 263662 diff --git a/b7616a6e-eb27-4851-9c9c-baef12e9bb4a.png b/b7616a6e-eb27-4851-9c9c-baef12e9bb4a.png new file mode 100644 index 0000000000000000000000000000000000000000..a9d9a7f1285610136689853671a7a6f9f02fafd4 --- /dev/null +++ b/b7616a6e-eb27-4851-9c9c-baef12e9bb4a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6040a7095cfc318889250ef00533ab2cd55c1ef40b7ee43143984937c359fde0 +size 63988 diff --git a/b7cd5f65-5c11-4f0f-815a-a445e2809ad6.png b/b7cd5f65-5c11-4f0f-815a-a445e2809ad6.png new file mode 100644 index 0000000000000000000000000000000000000000..b2d559e749bdc7a75b67001a036f0a84717796c8 --- /dev/null +++ b/b7cd5f65-5c11-4f0f-815a-a445e2809ad6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:629e705710284123379ed4ba2c6d23b9c7fdbafda0e4099395eb9058e5ce10d5 +size 303539 diff --git a/b8d26932-9bca-4cf0-9f83-4812331a8519.png b/b8d26932-9bca-4cf0-9f83-4812331a8519.png new file mode 100644 index 0000000000000000000000000000000000000000..f4dc3abbc04b6949aa7d1b1461f6b7b94cb44640 --- /dev/null +++ b/b8d26932-9bca-4cf0-9f83-4812331a8519.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:334e2be10f3925d26aee67bfa1f5f844b0ae0b674ac507f52f084231796e9ac9 +size 227896 diff --git a/ba736239-4fe6-4f26-9291-298c215eac44.png b/ba736239-4fe6-4f26-9291-298c215eac44.png new file mode 100644 index 0000000000000000000000000000000000000000..dd41e7764435f2f2297b5c1574f5ba167b6d3968 --- /dev/null +++ b/ba736239-4fe6-4f26-9291-298c215eac44.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:971560b1bd2203145f17abd44a561c6f56ced03b02e6ebc450fb99d52497c593 +size 284335 diff --git a/bc19bb45-a161-4a46-b61f-89ce519f1e80.png b/bc19bb45-a161-4a46-b61f-89ce519f1e80.png new file mode 100644 index 0000000000000000000000000000000000000000..6861afeb740df0215b41e0df99c503663c1241ce --- /dev/null +++ b/bc19bb45-a161-4a46-b61f-89ce519f1e80.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a19c47fb33dcfa679c10020ddac6d65ddddc6c6bf36595f498d98d8426747c2a +size 223123 diff --git a/be1803a6-fb48-455e-b016-5adc25532858.png b/be1803a6-fb48-455e-b016-5adc25532858.png new file mode 100644 index 0000000000000000000000000000000000000000..1bbc5d6aafdeb724008b191ea621a6f6cd2afd05 --- /dev/null +++ b/be1803a6-fb48-455e-b016-5adc25532858.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d52d2248a7a71754df08e190cc486b127b086996ed0f13f7b61a3e11535e12c +size 286342 diff --git a/be8e7beb-c2c4-433a-b93c-7bf66fd278f2.png b/be8e7beb-c2c4-433a-b93c-7bf66fd278f2.png new file mode 100644 index 0000000000000000000000000000000000000000..24522d94f1c56431a14d504c07407d2bfcc76d3e --- /dev/null +++ b/be8e7beb-c2c4-433a-b93c-7bf66fd278f2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90ed75de071abfccf7cabba394e2b149e40299905ec8f48ecda842c6fd330de3 +size 228385 diff --git a/becd87f9-259e-441a-8fee-c0feb090d36d.png b/becd87f9-259e-441a-8fee-c0feb090d36d.png new file mode 100644 index 0000000000000000000000000000000000000000..9c44a0d17a9fa75805117398bdf5955ae2d40917 --- /dev/null +++ b/becd87f9-259e-441a-8fee-c0feb090d36d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00c832c408831f8dd7b080fbba11f5c9a31e277ba26d33243b722e49700ad668 +size 269286 diff --git a/c02467d4-f8e7-45d8-b5e2-7024e4c383db.png b/c02467d4-f8e7-45d8-b5e2-7024e4c383db.png new file mode 100644 index 0000000000000000000000000000000000000000..ecdde2d287386bd01657dcc07d9722d6c59fa836 --- /dev/null +++ b/c02467d4-f8e7-45d8-b5e2-7024e4c383db.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abb772188062f8a7205ca81efb71b3f92c7758d7167e9a76ab62c13f62ef249c +size 185969 diff --git a/c0926412-5a47-47b1-95fe-d1a10174f1e5.png b/c0926412-5a47-47b1-95fe-d1a10174f1e5.png new file mode 100644 index 0000000000000000000000000000000000000000..c0b7493876b6bf9abb7410684594b621d3094ebf --- /dev/null +++ b/c0926412-5a47-47b1-95fe-d1a10174f1e5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9fc1d9f184a1292498f41f958f5a8eeb1a6e12406d6f905e1b3e03ab0b3a4c1 +size 213003 diff --git a/c1f14b7c-71d9-40c3-afe1-819960978486.png b/c1f14b7c-71d9-40c3-afe1-819960978486.png new file mode 100644 index 0000000000000000000000000000000000000000..6a4124f00d4a94a96be60a2044f544264eb143f9 --- /dev/null +++ b/c1f14b7c-71d9-40c3-afe1-819960978486.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d22f24c190c1cf0df1a44178eb9e5ca9ea1d8eb707dcbb7cf2f8e27a8c287ae +size 291283 diff --git a/c47df6ce-556b-45ce-9a05-88418a4a7717.png b/c47df6ce-556b-45ce-9a05-88418a4a7717.png new file mode 100644 index 0000000000000000000000000000000000000000..d6722de1c94008c10da6b991d7d5d6e70a3cfd49 --- /dev/null +++ b/c47df6ce-556b-45ce-9a05-88418a4a7717.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd574c45401e617618adf31f840a5f0be1988d7df646d812766cab118f44d227 +size 301082 diff --git a/c7b19afa-21e1-4bf2-a6ad-58154e50c430.png b/c7b19afa-21e1-4bf2-a6ad-58154e50c430.png new file mode 100644 index 0000000000000000000000000000000000000000..339464ebebced981e9382a02be4af15fac8eb833 --- /dev/null +++ b/c7b19afa-21e1-4bf2-a6ad-58154e50c430.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db232cf0b420d4762574714fea388bb58824814f8db5da9df35851fc137861aa +size 119359 diff --git a/c9f135fe-2b51-4889-9976-6e69b886a05c.png b/c9f135fe-2b51-4889-9976-6e69b886a05c.png new file mode 100644 index 0000000000000000000000000000000000000000..74f81b1e241b753ede43e8485765e869e8784115 --- /dev/null +++ b/c9f135fe-2b51-4889-9976-6e69b886a05c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67ca87473a2800118e90e36562e6f77932127639beb75136bf4024a4f6c0b027 +size 269473 diff --git a/ca3f6c29-f487-4e16-9f54-684b02ca5560.png b/ca3f6c29-f487-4e16-9f54-684b02ca5560.png new file mode 100644 index 0000000000000000000000000000000000000000..6a614ced7b45d7ade7235446ca6e725159c60afe --- /dev/null +++ b/ca3f6c29-f487-4e16-9f54-684b02ca5560.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecfbbe98ed5aad405b872b37e2286be123696a7d0581ebf0364d9318b2bc7f09 +size 254372 diff --git a/cada8d53-32fc-4b11-945b-e1b3f89798e9.png b/cada8d53-32fc-4b11-945b-e1b3f89798e9.png new file mode 100644 index 0000000000000000000000000000000000000000..adb13f6865401adf340c622c665bde3e00ecf740 --- /dev/null +++ b/cada8d53-32fc-4b11-945b-e1b3f89798e9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd74b9f59696ffbd8e31313412a4464acae81e643c12b760f35692e0e357fd5d +size 186753 diff --git a/cc23984c-923e-47a6-aaf2-50cc60ded5c1.png b/cc23984c-923e-47a6-aaf2-50cc60ded5c1.png new file mode 100644 index 0000000000000000000000000000000000000000..3dfdb67be5e7664bb1a95dd181fb7df63a53556f --- /dev/null +++ b/cc23984c-923e-47a6-aaf2-50cc60ded5c1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:076ae8b079c27585fef7e49fc11256e2f5e754d3b432ca1ac2ec5543f890a9ce +size 314299 diff --git a/cdbef882-2f9c-490c-b676-81aa76f1e238.png b/cdbef882-2f9c-490c-b676-81aa76f1e238.png new file mode 100644 index 0000000000000000000000000000000000000000..885cb0780fd69871dba83ad6e13d58625245d018 --- /dev/null +++ b/cdbef882-2f9c-490c-b676-81aa76f1e238.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54b9f1209626975ade30a27491da3c29bd764c537eb7d993533c33d1fd953f5c +size 288868 diff --git a/ce71932d-47b3-4a7c-b270-e929458db18f.png b/ce71932d-47b3-4a7c-b270-e929458db18f.png new file mode 100644 index 0000000000000000000000000000000000000000..c8308e5eb585c297fd173d9ae560c68c01f767d8 --- /dev/null +++ b/ce71932d-47b3-4a7c-b270-e929458db18f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9372153bde651cfbbab2f663f03f2a15a3124967c91c6f35da98ef9555371018 +size 194055 diff --git a/ceaf765a-fe47-4459-ab9e-17411227bc8a.png b/ceaf765a-fe47-4459-ab9e-17411227bc8a.png new file mode 100644 index 0000000000000000000000000000000000000000..bd745ed59db06dd63a18659f1b3a7e01cbc0be1e --- /dev/null +++ b/ceaf765a-fe47-4459-ab9e-17411227bc8a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3cfbf49aea8f08e6dbc42923620f0df8a85b7895c6227b272e902864c954cbc +size 283105 diff --git a/d18e7386-419f-465d-9f0d-3ca6f9dc62e3.png b/d18e7386-419f-465d-9f0d-3ca6f9dc62e3.png new file mode 100644 index 0000000000000000000000000000000000000000..ef049457fb90a9e1302e0f731e2fb222da6bd1b8 --- /dev/null +++ b/d18e7386-419f-465d-9f0d-3ca6f9dc62e3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:472b0ac9e83fd15a3a13681652be9aa637ac698b1fc6c71f6cc8ded8904309c9 +size 68001 diff --git a/d26730fd-96f1-42bf-8ce9-81003708865a.png b/d26730fd-96f1-42bf-8ce9-81003708865a.png new file mode 100644 index 0000000000000000000000000000000000000000..fa245b3a0e7fc078636510895860b8e1376afc45 --- /dev/null +++ b/d26730fd-96f1-42bf-8ce9-81003708865a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdca20c8cfe7e8c9fea8d8844f071a9de5fbfd92458844928636b061ded4c408 +size 299670 diff --git a/d4fd1b34-ba89-418c-a5a8-73571d2f0f11.png b/d4fd1b34-ba89-418c-a5a8-73571d2f0f11.png new file mode 100644 index 0000000000000000000000000000000000000000..c8308e5eb585c297fd173d9ae560c68c01f767d8 --- /dev/null +++ b/d4fd1b34-ba89-418c-a5a8-73571d2f0f11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9372153bde651cfbbab2f663f03f2a15a3124967c91c6f35da98ef9555371018 +size 194055 diff --git a/d72cecdd-c78d-4669-810d-ce47ac7d3a85.png b/d72cecdd-c78d-4669-810d-ce47ac7d3a85.png new file mode 100644 index 0000000000000000000000000000000000000000..2d06690322bd24278307d9d3fed6499479a49808 --- /dev/null +++ b/d72cecdd-c78d-4669-810d-ce47ac7d3a85.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:495edabe45be32742c77db5b476ad594cb68f07d4e871c4652f66c8bdf56dc25 +size 237552 diff --git a/d7f1b69f-7657-4de0-bf3e-ae1eeea01126.png b/d7f1b69f-7657-4de0-bf3e-ae1eeea01126.png new file mode 100644 index 0000000000000000000000000000000000000000..27c443b2a3c843aa127b8ba2896188fce84635c9 --- /dev/null +++ b/d7f1b69f-7657-4de0-bf3e-ae1eeea01126.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea807fadd40431c9c5f6b2d913dbbeeb24031321331b665081502e1297fefb59 +size 223307 diff --git a/dc3dbaa8-1dc2-4289-9243-8ee300844b08.png b/dc3dbaa8-1dc2-4289-9243-8ee300844b08.png new file mode 100644 index 0000000000000000000000000000000000000000..23ec318d4b99cce7df4d02456345ac2e4678ee3e --- /dev/null +++ b/dc3dbaa8-1dc2-4289-9243-8ee300844b08.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97d066952898ba700e4e0edb5a276c94b3deb6f14eb3eea4cfbad5dc34406cff +size 259532 diff --git a/dc467cf4-9146-4050-a0f6-2a377e0adb61.png b/dc467cf4-9146-4050-a0f6-2a377e0adb61.png new file mode 100644 index 0000000000000000000000000000000000000000..12507017c151028b78391e22c115ab728704b9fb --- /dev/null +++ b/dc467cf4-9146-4050-a0f6-2a377e0adb61.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05e9596da0d0e553b5ab471aa5f900860821ec1669b42328ba7e249606b9b494 +size 214479 diff --git a/dc5d1fee-37c1-491b-a2f8-bac7e62137c8.png b/dc5d1fee-37c1-491b-a2f8-bac7e62137c8.png new file mode 100644 index 0000000000000000000000000000000000000000..5597a4b73280d25439cfc775f0fe755e2e7856d7 --- /dev/null +++ b/dc5d1fee-37c1-491b-a2f8-bac7e62137c8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:811f1a5332bc914839eb87cf9b7cdfe92c3a036931e61e9fc19bbc5e8dd63d18 +size 261352 diff --git a/de60c12d-06cb-4ce6-bd00-2143b1615453.png b/de60c12d-06cb-4ce6-bd00-2143b1615453.png new file mode 100644 index 0000000000000000000000000000000000000000..a214dc046cf5c71efc5bb12dfdd7448c3e9b3b17 --- /dev/null +++ b/de60c12d-06cb-4ce6-bd00-2143b1615453.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:605bb1c8d6b037c17bb86b5259f1fd3b81c9e18094f39d66bb48bb82672c6762 +size 319762 diff --git a/dece4684-6476-4f57-ae2e-542c016c7fb2.png b/dece4684-6476-4f57-ae2e-542c016c7fb2.png new file mode 100644 index 0000000000000000000000000000000000000000..b1f84547d5f7fd80d6a9e1705594a249d53956af --- /dev/null +++ b/dece4684-6476-4f57-ae2e-542c016c7fb2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d1b84828f58e25949fc31533071160fcf5a4fd06d48f1a19911a6f279216fa1 +size 271632 diff --git a/dff7fb42-3cb1-4bed-b5b9-c35d53472351.png b/dff7fb42-3cb1-4bed-b5b9-c35d53472351.png new file mode 100644 index 0000000000000000000000000000000000000000..13d8195ef1890b16a00979331e56a2dd903e05a3 --- /dev/null +++ b/dff7fb42-3cb1-4bed-b5b9-c35d53472351.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6a5d0c7623976c1c1b74c838e5ecf2a0cd84ce7b56fb28cbecb87fcc8d0cb10 +size 286504 diff --git a/e246e3a3-c85c-4bf8-ac8a-fecb3425fc39.png b/e246e3a3-c85c-4bf8-ac8a-fecb3425fc39.png new file mode 100644 index 0000000000000000000000000000000000000000..f0c1d5f4a42fd3a16cf33a1e1d15fa2094e267c0 --- /dev/null +++ b/e246e3a3-c85c-4bf8-ac8a-fecb3425fc39.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:384317a1da4cbdb251d33f4eeec99439d7ad7f57cb9093f1de50f8cf6e4160cb +size 155440 diff --git a/e32c5ac1-e75f-46f6-b422-6d4ba55a2857.png b/e32c5ac1-e75f-46f6-b422-6d4ba55a2857.png new file mode 100644 index 0000000000000000000000000000000000000000..97c5819bd2cc3f004e22f115166e4b36337abb18 --- /dev/null +++ b/e32c5ac1-e75f-46f6-b422-6d4ba55a2857.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c4c62281ed52debad9684dccf332bb913a0cf7f9c7bf66ced1aa9ebca4da08e +size 231506 diff --git a/e3a86501-d38e-4e0a-a8e9-18fc794e11ba.png b/e3a86501-d38e-4e0a-a8e9-18fc794e11ba.png new file mode 100644 index 0000000000000000000000000000000000000000..47bbf0c4c77ce17657807e8876d7011b8b907514 --- /dev/null +++ b/e3a86501-d38e-4e0a-a8e9-18fc794e11ba.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1f402c4fc695980d5ea71c6ac6b258af715c819c3d2e167f2cef5a9afa62d7c +size 201000 diff --git a/e9950489-a4f6-44d8-826d-44fd46553c6c.png b/e9950489-a4f6-44d8-826d-44fd46553c6c.png new file mode 100644 index 0000000000000000000000000000000000000000..289861eb7bf33630cb4f35641a782e1951d12809 --- /dev/null +++ b/e9950489-a4f6-44d8-826d-44fd46553c6c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b46e451df9f353944b3302ecfb408955592aaacde0c543a5002bef641a51c106 +size 217465 diff --git a/e9e26c6e-5446-4a76-821b-fe91b66dea24.png b/e9e26c6e-5446-4a76-821b-fe91b66dea24.png new file mode 100644 index 0000000000000000000000000000000000000000..a78388b9e31d9f573f68d1e2ddeaa9bd1a913a86 --- /dev/null +++ b/e9e26c6e-5446-4a76-821b-fe91b66dea24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c21fd376c030380966fe4deefca246aff5a2010c2c3df101047ee265fbec94f +size 267862 diff --git a/ea759da8-add9-4d99-a008-90c9ce979e44.png b/ea759da8-add9-4d99-a008-90c9ce979e44.png new file mode 100644 index 0000000000000000000000000000000000000000..89f165d46eb60af82fb3792d353bce291774e354 --- /dev/null +++ b/ea759da8-add9-4d99-a008-90c9ce979e44.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baf13be489632c10e56f7578e916fd597d205786be0bb47ab593634a4de5916b +size 315196 diff --git a/eacffaa9-f68e-4537-9178-80cd6a60d08b.png b/eacffaa9-f68e-4537-9178-80cd6a60d08b.png new file mode 100644 index 0000000000000000000000000000000000000000..0153b3c1eb8b282e5d3a8247f304341bc307e64a --- /dev/null +++ b/eacffaa9-f68e-4537-9178-80cd6a60d08b.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d98f603ed18f55e438c794efa5b39c84b24e434c4f9fadef19ce7563d37d28be +size 130782 diff --git a/eb60538d-a57a-4d86-919b-ee785675b5fc.png b/eb60538d-a57a-4d86-919b-ee785675b5fc.png new file mode 100644 index 0000000000000000000000000000000000000000..65146dfbc39927c3ac4ab9fce359fdaac355a85f --- /dev/null +++ b/eb60538d-a57a-4d86-919b-ee785675b5fc.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa430080f778b068e3752633c8dfab0fd4b95737a234d9ae5eec46d4e65c53d1 +size 118847 diff --git a/ebd58fb8-1cb5-40d2-83dc-e7650db87f9a.png b/ebd58fb8-1cb5-40d2-83dc-e7650db87f9a.png new file mode 100644 index 0000000000000000000000000000000000000000..eda4b10854d3fc3c862e7d9722ce5449cb1c4f65 --- /dev/null +++ b/ebd58fb8-1cb5-40d2-83dc-e7650db87f9a.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4f141db0be6308ae03f06ed4a971145b1d7f40f460e8d867922dbffc64d3948 +size 366713 diff --git a/ece01833-a1a0-4d74-8ecb-a558cbb6a633.png b/ece01833-a1a0-4d74-8ecb-a558cbb6a633.png new file mode 100644 index 0000000000000000000000000000000000000000..59f8f1cd875203a6b6dc4ea04fe2d44bd23751e3 --- /dev/null +++ b/ece01833-a1a0-4d74-8ecb-a558cbb6a633.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b7667c22aa3ce93290709a24ea566dcfe2182c9ba1482227a2a8605fd3798fe +size 245334 diff --git a/ed3cd382-04b7-4ba8-820d-09a87093f25d.png b/ed3cd382-04b7-4ba8-820d-09a87093f25d.png new file mode 100644 index 0000000000000000000000000000000000000000..ec999e4d790f394d95d4bc5b5aaddc9e659762ac --- /dev/null +++ b/ed3cd382-04b7-4ba8-820d-09a87093f25d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b96924c8d633ba6889a4529e3da649c2916f643f424d96f83ab026d78c8d911 +size 246933 diff --git a/ee9ecd23-241e-439a-874c-437a5164c700.png b/ee9ecd23-241e-439a-874c-437a5164c700.png new file mode 100644 index 0000000000000000000000000000000000000000..8be772f8a694767d8d46e521b23c614345dacc66 --- /dev/null +++ b/ee9ecd23-241e-439a-874c-437a5164c700.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f15f244e2038213417b6ed69ae385b91038893dad5d2fc53e01455ba5bbc464a +size 247938 diff --git a/ee9f4d72-7eac-47ca-97a6-2c5f2f2c61e3.png b/ee9f4d72-7eac-47ca-97a6-2c5f2f2c61e3.png new file mode 100644 index 0000000000000000000000000000000000000000..e700beb2ccff7eeed9be8ae195ae77537287e182 --- /dev/null +++ b/ee9f4d72-7eac-47ca-97a6-2c5f2f2c61e3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d0280bd0cbde947120514f1875d839893b408cdd34d838bac2a3ed77eb53b2c +size 215913 diff --git a/ef2809c9-be74-4daf-8b81-a9f0ab528292.png b/ef2809c9-be74-4daf-8b81-a9f0ab528292.png new file mode 100644 index 0000000000000000000000000000000000000000..0795048a724496ed5a9a6f68f34ffdb202a4cc62 --- /dev/null +++ b/ef2809c9-be74-4daf-8b81-a9f0ab528292.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f7691df2d6b3d660c10d893e8de5e2877bf4aec241e38821c38634eb3c06836 +size 226334 diff --git a/f26b85ab-2af3-45a0-9af3-2edf94c7d7a5.png b/f26b85ab-2af3-45a0-9af3-2edf94c7d7a5.png new file mode 100644 index 0000000000000000000000000000000000000000..87a0dd755dac5fa7e785bc4f629edf9f04b16998 --- /dev/null +++ b/f26b85ab-2af3-45a0-9af3-2edf94c7d7a5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55b79ef9f1196da626617ce49023b18e896aa2703046a188f4f23c31bd3137c5 +size 197780 diff --git a/f42ba8da-8eca-47ac-af80-87fb3dd4e679.png b/f42ba8da-8eca-47ac-af80-87fb3dd4e679.png new file mode 100644 index 0000000000000000000000000000000000000000..030e114bf0185aafc3ae58d00a4e6ae3bed765d0 --- /dev/null +++ b/f42ba8da-8eca-47ac-af80-87fb3dd4e679.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a953cf5ca3e347c0c03580787c6a948459500953582a53f01630b457ffc5b70b +size 212718 diff --git a/f4d76b0a-3672-4953-b610-18595929dc35.png b/f4d76b0a-3672-4953-b610-18595929dc35.png new file mode 100644 index 0000000000000000000000000000000000000000..989ff45845433be56709c6bec520f0b7e9f5116c --- /dev/null +++ b/f4d76b0a-3672-4953-b610-18595929dc35.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:576a3a8ef4d0f0ba1c2e913b8423a3bd4d0dfc36d7338405222e624d47fcc15c +size 220251 diff --git a/f52a2442-5f9a-4b48-9b4d-5a64ef878a94.png b/f52a2442-5f9a-4b48-9b4d-5a64ef878a94.png new file mode 100644 index 0000000000000000000000000000000000000000..1abd89bd81b784c7f3339849503a6b53c03b9cbc --- /dev/null +++ b/f52a2442-5f9a-4b48-9b4d-5a64ef878a94.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91fedbaaa4e7ebd4202cec937ddca14266f16c9974669c36d74002155aa49876 +size 243067 diff --git a/f53fbf5b-a7ef-4f5c-ae48-a7d61ac21d62.png b/f53fbf5b-a7ef-4f5c-ae48-a7d61ac21d62.png new file mode 100644 index 0000000000000000000000000000000000000000..ff0db1de656271e02409e6d738a0b3a5b05540fc --- /dev/null +++ b/f53fbf5b-a7ef-4f5c-ae48-a7d61ac21d62.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59542aee7c23b3ad8c2e75a3ac3dd040735b8db255c0900253e96fbdd9a91d9f +size 89615 diff --git a/f769fb9a-dba9-441a-8ec9-773ee1aa5526.png b/f769fb9a-dba9-441a-8ec9-773ee1aa5526.png new file mode 100644 index 0000000000000000000000000000000000000000..279ae1fad8ab5a52b909face39e60f273d35e026 --- /dev/null +++ b/f769fb9a-dba9-441a-8ec9-773ee1aa5526.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fb604fa7e62ed4be5c11a8d0c74380b6466096e4e840addd37850b5e47a0af1 +size 222192 diff --git a/f7851864-dcc7-41dc-9472-600a871ff166.png b/f7851864-dcc7-41dc-9472-600a871ff166.png new file mode 100644 index 0000000000000000000000000000000000000000..3ea65cff3f4a768ab52c84c9f84ee0082e675f48 --- /dev/null +++ b/f7851864-dcc7-41dc-9472-600a871ff166.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebd0469e7da113dc525e44b026c27982309673c98ff9ab60b495072981d63336 +size 38841 diff --git a/f8740260-0fd2-4c93-a06d-584e95796118.png b/f8740260-0fd2-4c93-a06d-584e95796118.png new file mode 100644 index 0000000000000000000000000000000000000000..da72ab5f3c0cea0c765d3d31950bde46510f971f --- /dev/null +++ b/f8740260-0fd2-4c93-a06d-584e95796118.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2f30ad375d9d11ade520629e7683a74062f554876460c11455656b9b5f2e3c6 +size 315144 diff --git a/f8e2cc7c-006d-4cc1-bee6-ab62c4951945.png b/f8e2cc7c-006d-4cc1-bee6-ab62c4951945.png new file mode 100644 index 0000000000000000000000000000000000000000..251ebd3f46e0b44f2dfe0014e3ebb936caed9807 --- /dev/null +++ b/f8e2cc7c-006d-4cc1-bee6-ab62c4951945.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb27f84c8103e5a4274ee49cca4d0fd32eeb000067f0dbddf53f99b7268a2e74 +size 117956 diff --git a/f9d79caa-cd7c-416f-963a-db8c93a826c5.png b/f9d79caa-cd7c-416f-963a-db8c93a826c5.png new file mode 100644 index 0000000000000000000000000000000000000000..e6a2bbb5ed5e7764b25059e0a302809ab6604dcf --- /dev/null +++ b/f9d79caa-cd7c-416f-963a-db8c93a826c5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2f5f2eb571dd9a0df55d4e9e656c9a14353d91426a119abb201066bd5db3ac2 +size 238040 diff --git a/fadd78b5-16d9-454f-aaa2-a4eee1bc95bf.png b/fadd78b5-16d9-454f-aaa2-a4eee1bc95bf.png new file mode 100644 index 0000000000000000000000000000000000000000..2ce3788c4ed8c343179c9d4dafe893bedd79b70e --- /dev/null +++ b/fadd78b5-16d9-454f-aaa2-a4eee1bc95bf.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be75dd6adf5fcffdd7eb1a3b2c599782ac7a62042f35ef640f4f035490c697d1 +size 231405 diff --git a/fb578884-c783-44cd-b19b-2dff78eee637.png b/fb578884-c783-44cd-b19b-2dff78eee637.png new file mode 100644 index 0000000000000000000000000000000000000000..c55bb732664b6dd2f50579e789269b8a848e53b1 --- /dev/null +++ b/fb578884-c783-44cd-b19b-2dff78eee637.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c9ceb93820f02b313c7c11ba14320a102c5b953f4126db4f9a12d7481708aa7 +size 259948 diff --git a/fc260d13-6108-4844-a5bc-11cb1df7aac3.png b/fc260d13-6108-4844-a5bc-11cb1df7aac3.png new file mode 100644 index 0000000000000000000000000000000000000000..7c8662f75c6310aa81bec3c9bf32a38d586aa53d --- /dev/null +++ b/fc260d13-6108-4844-a5bc-11cb1df7aac3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d5d30ac23ebafbe8b571d2532f3843dda7dedc8f7dc648584e5bf2206646e1b +size 292039 diff --git a/fd5d859b-41cf-4c2e-a911-384a4cded15c.png b/fd5d859b-41cf-4c2e-a911-384a4cded15c.png new file mode 100644 index 0000000000000000000000000000000000000000..aae7b3296f91149f6109dec249bda38d6d0163ee --- /dev/null +++ b/fd5d859b-41cf-4c2e-a911-384a4cded15c.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:904519427ca4e2959035f2fc4d49a2add94a4fad1dd558c6449016a3c8f419ea +size 220776 diff --git a/fe1290d8-0902-4780-a556-1a80c91a8b0f.png b/fe1290d8-0902-4780-a556-1a80c91a8b0f.png new file mode 100644 index 0000000000000000000000000000000000000000..9f824faaf3c128216a5cd6346974cf653c110450 --- /dev/null +++ b/fe1290d8-0902-4780-a556-1a80c91a8b0f.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:663105f480c9e12a9d779ac6542c46ad5e9508a3ab971aa2662f5e9a565fd166 +size 268634 diff --git a/fe3ef7b2-05ce-47ee-b873-af33b72a775d.png b/fe3ef7b2-05ce-47ee-b873-af33b72a775d.png new file mode 100644 index 0000000000000000000000000000000000000000..efcb0eebeaa6545dce199db541b747aff3c24204 --- /dev/null +++ b/fe3ef7b2-05ce-47ee-b873-af33b72a775d.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e231728759da9cf25bd61e46ee7daf15a51c4eac04c75db96bbc3173634c71e0 +size 258716 diff --git a/metadata.jsonl b/metadata.jsonl index 8acf60a0e52a3f31bc87f95ff68fb10aa254135e..e8f76c487c0278c78aa07fe71aeea8b5d8659538 100644 --- a/metadata.jsonl +++ b/metadata.jsonl @@ -246,3 +246,205 @@ {"file_name": "949dcf79-e580-48b0-8b36-fcccb84b001f.png", "code": " return timestamps\r\n\r\ndef partition_video_segments(video_id: str) -> TimeStamps:\r\n video_segments: TimeStamps = get_timestamps(video_id=video_id)\r\n return video_segments\r\n \r\ndef get_description(video_id: str) -> str:\r\n video_path: str = path.join(descriptions_dir, f\"{video_id}.txt\")\r\n if not path.exists(video_path):\r\n description: str = download_description(video_id=video_id)\r\n save_description(description=description, video_id=video_id)\r\n else:\r\n with open(video_path, \"r\", encoding=\"utf-8\") as f:\r\n description: str = f.read()\r\n return description\r\n\r\n\r\ndef download_description(video_id: str) -> None:\r\n response: YouTubeListResponse = youtube_client.find_video_by_id(video_id=video_id)\r\n video: Video = response.items[0]\r\n description: str = video.snippet.description\r\n return description\r\n \r\n \r\nparser = PydanticOutputParser(pydantic_object=TimeStamps)\r\n\r\nsegment_str: str = (\"\"\"Extract the time stamps and their titles from the following text. Only\"\"\" \r\n \"\"\" include valid time stamps.\\n{format_instructions}\\ntext: ```{text}```\"\"\"\r\n)\r\n\r\ndef get_video_segments(video_description: str, segment_str: str = segment_str, \r\n llm: BaseLanguageModel = gemma_2b):\r\n template: PromptTemplate = PromptTemplate(template=segment_str, \r\n input_variables=[\"text\"],\r\n partial_variables={\"format_instructions\": parser.get_format_instructions()}\r\n )\r\n chain = template | llm | parser\r\n inputs: dict[str, str] = {\r\n \"text\": video_description\r\n }\r\n"} {"file_name": "3b26fe45-c580-48f4-917d-a0ab012f1a42.png", "code": " res: TimeStamps = chain.invoke(inputs)\r\n # res.time_stamps.sort(key=lambda x: x.start_time)\r\n return res\r\n\r\n\r\nids: dict[str, str] = {\r\n \"set_mismatch\": \"d-ulaeRBA64\",\r\n \"leaf_similar_tree\": \"Nr8dbnL0_cM\",\r\n \"mk_vld_par\": \"mgQ4O9iUEbg\",\r\n \"pams\": \"kWhy4ZUBdOY\",\r\n \"sapltk\": \"Cg6_nF7YIks\",\r\n \"smallest_str_leaf\": \"UvdWfxQ_ZDs\",\r\n \"sub_arr_k_diff_ints\": \"etI6HqWVa8U\",\r\n \"remv_nodes_lnkd_lst\": \"y783sRTezDg\",\r\n \"rvl_card_inc_order\": \"i2QrUdwWlak\",\r\n \"rmv_dup_srt_arr_2\": \"ycAq8iqh0TI\",\r\n \"town_jdg\": \"QiGaxdUINJ8\",\r\n \"rang_sm_bst\": \"uLVG45n4Sbg\",\r\n \"artmtc_slcs_2\": \"YIMwwT9JdIE\",\r\n \"lst_unq_ints_k_rmvl\": \"Nsp_ta7SlEk\",\r\n \"all_ppl_scrt\": \"1XujGRSU1bQ\",\r\n \"stdnts_mss_lnch\": \"d_cvtFwnOZg\",\r\n}\r\nvideo_id: str = ids[\"stdnts_mss_lnch\"]\r\n\r\nclass Segment(BaseModel):\r\n time_stamp: str = Field(description=\"The time stamp\")\r\n title: str = Field(description=\"The time stamp title\")\r\n \r\ngemma_parser = PydanticOutputParser(pydantic_object=Segment)\r\n\r\nsegment_str_gemma: str = (\"\"\"Extract all the time stamps and their titles from the following text. Only\"\"\" \r\n \"\"\" include valid time stamps.Return a json string only with the keys \"\"\"\r\n \"\"\"```time_stamp``` and ```title```.\\ntext: ```{text}```\"\"\"\r\n)\r\n\r\nsegment_str_gemma_v1: str = (\"\"\"Extract all the start time stamps, end time stamps and their titles from the following text. Only\"\"\" \r\n \"\"\" include valid time stamps.Return a json string only with the keys \"\"\"\r\n \"\"\"```start_time```, ```end_time``` and ```title```.\\ntext: ```{text}```\"\"\"\r\n)\r\n"} {"file_name": "f45ae49f-0150-4b4d-bc49-dcde3a153dae.png", "code": "def gemma_extraction(video_id: str):\r\n description: str = get_description(video_id=video_id)\r\n template: PromptTemplate = PromptTemplate(template=segment_str_gemma, \r\n input_variables=[\"text\"]\r\n )\r\n chain = template | llama_2b \r\n inputs: dict[str, str] = {\r\n \"text\": description\r\n }\r\n res = chain.invoke(inputs)\r\n print(res)\r\n \r\n \r\ndef get_channel_id(channel_name: str, youtube: YouTube = get_youtube_client()) -> str:\r\n response: YouTubeResponse = youtube.find_channel_by_name(display_name=channel_name)\r\n search_result: Search = response.items[0]\r\n channel_id: str = search_result.channel_id\r\n return channel_id\r\n\r\ndef get_channel_playlists(channel_name: str, youtube: YouTube = get_youtube_client()) -> list[str]:\r\n # channel_id: str = get_channel_id(channel_name=channel_name, youtube=youtube)\r\n channel_id: str = \"UC_mYaQAE6-71rjSN6CeCA-g\"\r\n response: YouTubeListResponse = youtube.find_channel_playlists(channel_id=channel_id)\r\n playlists: list[Playlist] = response.items\r\n playlist_ids: list[str] = [playlist.id for playlist in playlists]\r\n return playlist_ids\r\n \r\n\r\ndef main(video_id: str = video_id):\r\n # output: TimeStamps = partition_video_segments(video_id=video_id)\r\n # print(output) \r\n # gemma_extraction(video_id=video_id)\r\n channel_name: str = \"neetcode\"\r\n playlist_ids: list[str] = get_channel_playlists(channel_name=channel_name)\r\n print(playlist_ids)\r\n \r\n "} +{"file_name": "a52a7464-8cf7-4719-a2a7-5100fa2c8aa3.png", "code": "import distutils.spawn\r\nimport os\r\nimport re\r\nimport shlex\r\nimport subprocess\r\nimport sys\r\n\r\nfrom setuptools import find_packages\r\nfrom setuptools import setup\r\n\r\n\r\ndef get_version():\r\n filename = \"labelme/__init__.py\"\r\n with open(filename) as f:\r\n match = re.search(r\"\"\"^__version__ = ['\"]([^'\"]*)['\"]\"\"\", f.read(), re.M)\r\n if not match:\r\n raise RuntimeError(\"{} doesn't contain __version__\".format(filename))\r\n version = match.groups()[0]\r\n return version\r\n\r\n\r\ndef get_install_requires():\r\n install_requires = [\r\n \"gdown\",\r\n \"imgviz>=1.7.5\",\r\n \"matplotlib\",\r\n \"natsort>=7.1.0\",\r\n \"numpy\",\r\n \"onnxruntime>=1.14.1,!=1.16.0\",\r\n \"Pillow>=2.8\",\r\n \"PyYAML\",\r\n \"qtpy!=1.11.2\",\r\n \"scikit-image\",\r\n \"termcolor\",\r\n ]\r\n\r\n # Find python binding for qt with priority:\r\n # PyQt5 -> PySide2\r\n # and PyQt5 is automatically installed on Python3.\r\n QT_BINDING = None\r\n"} +{"file_name": "f4d76b0a-3672-4953-b610-18595929dc35.png", "code": "\r\n try:\r\n import PyQt5 # NOQA\r\n\r\n QT_BINDING = \"pyqt5\"\r\n except ImportError:\r\n pass\r\n\r\n if QT_BINDING is None:\r\n try:\r\n import PySide2 # NOQA\r\n\r\n QT_BINDING = \"pyside2\"\r\n except ImportError:\r\n pass\r\n\r\n if QT_BINDING is None:\r\n # PyQt5 can be installed via pip for Python3\r\n # 5.15.3, 5.15.4 won't work with PyInstaller\r\n install_requires.append(\"PyQt5!=5.15.3,!=5.15.4\")\r\n QT_BINDING = \"pyqt5\"\r\n\r\n del QT_BINDING\r\n\r\n if os.name == \"nt\": # Windows\r\n install_requires.append(\"colorama\")\r\n\r\n return install_requires\r\n\r\n\r\ndef get_long_description():\r\n with open(\"README.md\") as f:\r\n long_description = f.read()\r\n try:\r\n # when this package is being released\r\n import github2pypi\r\n\r\n return github2pypi.replace_url(\r\n slug=\"wkentaro/labelme\", content=long_description, branch=\"main\"\r\n )\r\n"} +{"file_name": "278de3e3-1b8f-45d2-87ca-ea92f6aea40e.png", "code": " except ImportError:\r\n # when this package is being installed\r\n return long_description\r\n\r\n\r\ndef main():\r\n version = get_version()\r\n\r\n if sys.argv[1] == \"release\":\r\n try:\r\n import github2pypi # NOQA\r\n except ImportError:\r\n print(\r\n \"Please install github2pypi\\n\\n\\tpip install github2pypi\\n\",\r\n file=sys.stderr,\r\n )\r\n sys.exit(1)\r\n\r\n if not distutils.spawn.find_executable(\"twine\"):\r\n print(\r\n \"Please install twine:\\n\\n\\tpip install twine\\n\",\r\n file=sys.stderr,\r\n )\r\n sys.exit(1)\r\n\r\n commands = [\r\n \"git push origin main\",\r\n \"git tag v{:s}\".format(version),\r\n \"git push origin --tags\",\r\n \"python setup.py sdist\",\r\n \"twine upload dist/labelme-{:s}.tar.gz\".format(version),\r\n ]\r\n for cmd in commands:\r\n print(\"+ {:s}\".format(cmd))\r\n subprocess.check_call(shlex.split(cmd))\r\n sys.exit(0)\r\n\r\n setup(\r\n name=\"labelme\",\r\n version=version,\r\n"} +{"file_name": "d26730fd-96f1-42bf-8ce9-81003708865a.png", "code": " packages=find_packages(),\r\n description=\"Image Polygonal Annotation with Python\",\r\n long_description=get_long_description(),\r\n long_description_content_type=\"text/markdown\",\r\n author=\"Kentaro Wada\",\r\n author_email=\"www.kentaro.wada@gmail.com\",\r\n url=\"https://github.com/wkentaro/labelme\",\r\n install_requires=get_install_requires(),\r\n license=\"GPLv3\",\r\n keywords=\"Image Annotation, Machine Learning\",\r\n classifiers=[\r\n \"Development Status :: 5 - Production/Stable\",\r\n \"Intended Audience :: Developers\",\r\n \"Intended Audience :: Science/Research\",\r\n \"Natural Language :: English\",\r\n \"Operating System :: OS Independent\",\r\n \"Programming Language :: Python\",\r\n \"Programming Language :: Python :: 3.5\",\r\n \"Programming Language :: Python :: 3.6\",\r\n \"Programming Language :: Python :: 3.7\",\r\n \"Programming Language :: Python :: 3.8\",\r\n \"Programming Language :: Python :: 3.9\",\r\n \"Programming Language :: Python :: 3 :: Only\",\r\n ],\r\n package_data={\"labelme\": [\"icons/*\", \"config/*.yaml\", \"translate/*\"]},\r\n entry_points={\r\n \"console_scripts\": [\r\n \"labelme=labelme.__main__:main\",\r\n \"labelme_draw_json=labelme.cli.draw_json:main\",\r\n \"labelme_draw_label_png=labelme.cli.draw_label_png:main\",\r\n \"labelme_json_to_dataset=labelme.cli.json_to_dataset:main\",\r\n \"labelme_export_json=labelme.cli.export_json:main\",\r\n \"labelme_on_docker=labelme.cli.on_docker:main\",\r\n ],\r\n },\r\n )\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "000b1bb3-86e5-4772-a880-235525467096.png", "code": "import base64\r\nimport contextlib\r\nimport io\r\nimport json\r\nimport os.path as osp\r\n\r\nimport PIL.Image\r\n\r\nfrom labelme import PY2\r\nfrom labelme import QT4\r\nfrom labelme import __version__\r\nfrom labelme import utils\r\nfrom labelme.logger import logger\r\n\r\nPIL.Image.MAX_IMAGE_PIXELS = None\r\n\r\n\r\n@contextlib.contextmanager\r\ndef open(name, mode):\r\n assert mode in [\"r\", \"w\"]\r\n if PY2:\r\n mode += \"b\"\r\n encoding = None\r\n else:\r\n encoding = \"utf-8\"\r\n yield io.open(name, mode, encoding=encoding)\r\n return\r\n\r\n\r\nclass LabelFileError(Exception):\r\n pass\r\n\r\n\r\nclass LabelFile(object):\r\n suffix = \".json\"\r\n\r\n def __init__(self, filename=None):\r\n self.shapes = []\r\n self.imagePath = None\r\n self.imageData = None\r\n"} +{"file_name": "514e7354-0053-432b-bb3a-50053d6b326f.png", "code": " if filename is not None:\r\n self.load(filename)\r\n self.filename = filename\r\n\r\n @staticmethod\r\n def load_image_file(filename):\r\n try:\r\n image_pil = PIL.Image.open(filename)\r\n except IOError:\r\n logger.error(\"Failed opening image file: {}\".format(filename))\r\n return\r\n\r\n # apply orientation to image according to exif\r\n image_pil = utils.apply_exif_orientation(image_pil)\r\n\r\n with io.BytesIO() as f:\r\n ext = osp.splitext(filename)[1].lower()\r\n if PY2 and QT4:\r\n format = \"PNG\"\r\n elif ext in [\".jpg\", \".jpeg\"]:\r\n format = \"JPEG\"\r\n else:\r\n format = \"PNG\"\r\n image_pil.save(f, format=format)\r\n f.seek(0)\r\n return f.read()\r\n\r\n def load(self, filename):\r\n keys = [\r\n \"version\",\r\n \"imageData\",\r\n \"imagePath\",\r\n \"shapes\", # polygonal annotations\r\n \"flags\", # image level flags\r\n \"imageHeight\",\r\n \"imageWidth\",\r\n ]\r\n shape_keys = [\r\n \"label\",\r\n \"points\",\r\n"} +{"file_name": "5426170f-0e5d-47d5-bf57-f1f3221ba9bd.png", "code": " \"group_id\",\r\n \"shape_type\",\r\n \"flags\",\r\n \"description\",\r\n \"mask\",\r\n ]\r\n try:\r\n with open(filename, \"r\") as f:\r\n data = json.load(f)\r\n\r\n if data[\"imageData\"] is not None:\r\n imageData = base64.b64decode(data[\"imageData\"])\r\n if PY2 and QT4:\r\n imageData = utils.img_data_to_png_data(imageData)\r\n else:\r\n # relative path from label file to relative path from cwd\r\n imagePath = osp.join(osp.dirname(filename), data[\"imagePath\"])\r\n imageData = self.load_image_file(imagePath)\r\n flags = data.get(\"flags\") or {}\r\n imagePath = data[\"imagePath\"]\r\n self._check_image_height_and_width(\r\n base64.b64encode(imageData).decode(\"utf-8\"),\r\n data.get(\"imageHeight\"),\r\n data.get(\"imageWidth\"),\r\n )\r\n shapes = [\r\n dict(\r\n label=s[\"label\"],\r\n points=s[\"points\"],\r\n shape_type=s.get(\"shape_type\", \"polygon\"),\r\n flags=s.get(\"flags\", {}),\r\n description=s.get(\"description\"),\r\n group_id=s.get(\"group_id\"),\r\n mask=utils.img_b64_to_arr(s[\"mask\"]) if s.get(\"mask\") else None,\r\n other_data={k: v for k, v in s.items() if k not in shape_keys},\r\n )\r\n for s in data[\"shapes\"]\r\n ]\r\n except Exception as e:\r\n raise LabelFileError(e)\r\n"} +{"file_name": "b8d26932-9bca-4cf0-9f83-4812331a8519.png", "code": "\r\n otherData = {}\r\n for key, value in data.items():\r\n if key not in keys:\r\n otherData[key] = value\r\n\r\n # Only replace data after everything is loaded.\r\n self.flags = flags\r\n self.shapes = shapes\r\n self.imagePath = imagePath\r\n self.imageData = imageData\r\n self.filename = filename\r\n self.otherData = otherData\r\n\r\n @staticmethod\r\n def _check_image_height_and_width(imageData, imageHeight, imageWidth):\r\n img_arr = utils.img_b64_to_arr(imageData)\r\n if imageHeight is not None and img_arr.shape[0] != imageHeight:\r\n logger.error(\r\n \"imageHeight does not match with imageData or imagePath, \"\r\n \"so getting imageHeight from actual image.\"\r\n )\r\n imageHeight = img_arr.shape[0]\r\n if imageWidth is not None and img_arr.shape[1] != imageWidth:\r\n logger.error(\r\n \"imageWidth does not match with imageData or imagePath, \"\r\n \"so getting imageWidth from actual image.\"\r\n )\r\n imageWidth = img_arr.shape[1]\r\n return imageHeight, imageWidth\r\n\r\n def save(\r\n self,\r\n filename,\r\n shapes,\r\n imagePath,\r\n imageHeight,\r\n imageWidth,\r\n imageData=None,\r\n otherData=None,\r\n"} +{"file_name": "485cf241-cdd3-425e-aac8-e3a952234d5f.png", "code": " flags=None,\r\n ):\r\n if imageData is not None:\r\n imageData = base64.b64encode(imageData).decode(\"utf-8\")\r\n imageHeight, imageWidth = self._check_image_height_and_width(\r\n imageData, imageHeight, imageWidth\r\n )\r\n if otherData is None:\r\n otherData = {}\r\n if flags is None:\r\n flags = {}\r\n data = dict(\r\n version=__version__,\r\n flags=flags,\r\n shapes=shapes,\r\n imagePath=imagePath,\r\n imageData=imageData,\r\n imageHeight=imageHeight,\r\n imageWidth=imageWidth,\r\n )\r\n for key, value in otherData.items():\r\n assert key not in data\r\n data[key] = value\r\n try:\r\n with open(filename, \"w\") as f:\r\n json.dump(data, f, ensure_ascii=False, indent=2)\r\n self.filename = filename\r\n except Exception as e:\r\n raise LabelFileError(e)\r\n\r\n @staticmethod\r\n def is_label_file(filename):\r\n return osp.splitext(filename)[1].lower() == LabelFile.suffix\r\n"} +{"file_name": "4e2a78ac-468f-4c20-b7f8-2fde226d1590.png", "code": "import datetime\r\nimport logging\r\nimport os\r\nimport sys\r\n\r\nimport termcolor\r\n\r\nif os.name == \"nt\": # Windows\r\n import colorama\r\n\r\n colorama.init()\r\n\r\nfrom . import __appname__\r\n\r\nCOLORS = {\r\n \"WARNING\": \"yellow\",\r\n \"INFO\": \"white\",\r\n \"DEBUG\": \"blue\",\r\n \"CRITICAL\": \"red\",\r\n \"ERROR\": \"red\",\r\n}\r\n\r\n\r\nclass ColoredFormatter(logging.Formatter):\r\n def __init__(self, fmt, use_color=True):\r\n logging.Formatter.__init__(self, fmt)\r\n self.use_color = use_color\r\n\r\n def format(self, record):\r\n levelname = record.levelname\r\n if self.use_color and levelname in COLORS:\r\n\r\n def colored(text):\r\n return termcolor.colored(\r\n text,\r\n color=COLORS[levelname],\r\n attrs={\"bold\": True},\r\n )\r\n\r\n record.levelname2 = colored(\"{:<7}\".format(record.levelname))\r\n"} +{"file_name": "6184f9af-0d54-4b32-835a-9703f77c90c5.png", "code": " record.message2 = colored(record.msg)\r\n\r\n asctime2 = datetime.datetime.fromtimestamp(record.created)\r\n record.asctime2 = termcolor.colored(asctime2, color=\"green\")\r\n\r\n record.module2 = termcolor.colored(record.module, color=\"cyan\")\r\n record.funcName2 = termcolor.colored(record.funcName, color=\"cyan\")\r\n record.lineno2 = termcolor.colored(record.lineno, color=\"cyan\")\r\n return logging.Formatter.format(self, record)\r\n\r\n\r\nlogger = logging.getLogger(__appname__)\r\nlogger.setLevel(logging.INFO)\r\n\r\nstream_handler = logging.StreamHandler(sys.stderr)\r\nhandler_format = ColoredFormatter(\r\n \"%(asctime)s [%(levelname2)s] %(module2)s:%(funcName2)s:%(lineno2)s\"\r\n \"- %(message2)s\"\r\n)\r\nstream_handler.setFormatter(handler_format)\r\n\r\nlogger.addHandler(stream_handler)\r\n"} +{"file_name": "7018dceb-712d-4256-a105-057575612a24.png", "code": "import json\r\nimport os.path as osp\r\n\r\nimport imgviz\r\n\r\nimport labelme.utils\r\n\r\n\r\ndef assert_labelfile_sanity(filename):\r\n assert osp.exists(filename)\r\n\r\n data = json.load(open(filename))\r\n\r\n assert \"imagePath\" in data\r\n imageData = data.get(\"imageData\", None)\r\n if imageData is None:\r\n parent_dir = osp.dirname(filename)\r\n img_file = osp.join(parent_dir, data[\"imagePath\"])\r\n assert osp.exists(img_file)\r\n img = imgviz.io.imread(img_file)\r\n else:\r\n img = labelme.utils.img_b64_to_arr(imageData)\r\n\r\n H, W = img.shape[:2]\r\n assert H == data[\"imageHeight\"]\r\n assert W == data[\"imageWidth\"]\r\n\r\n assert \"shapes\" in data\r\n for shape in data[\"shapes\"]:\r\n assert \"label\" in shape\r\n assert \"points\" in shape\r\n for x, y in shape[\"points\"]:\r\n assert 0 <= x <= W\r\n assert 0 <= y <= H\r\n"} +{"file_name": "fb578884-c783-44cd-b19b-2dff78eee637.png", "code": "import argparse\r\nimport codecs\r\nimport logging\r\nimport os\r\nimport os.path as osp\r\nimport sys\r\n\r\nimport yaml\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtWidgets\r\n\r\nfrom labelme import __appname__\r\nfrom labelme import __version__\r\nfrom labelme.app import MainWindow\r\nfrom labelme.config import get_config\r\nfrom labelme.logger import logger\r\nfrom labelme.utils import newIcon\r\n\r\n\r\ndef main():\r\n parser = argparse.ArgumentParser()\r\n parser.add_argument(\"--version\", \"-V\", action=\"store_true\", help=\"show version\")\r\n parser.add_argument(\"--reset-config\", action=\"store_true\", help=\"reset qt config\")\r\n parser.add_argument(\r\n \"--logger-level\",\r\n default=\"debug\",\r\n choices=[\"debug\", \"info\", \"warning\", \"fatal\", \"error\"],\r\n help=\"logger level\",\r\n )\r\n parser.add_argument(\"filename\", nargs=\"?\", help=\"image or label filename\")\r\n parser.add_argument(\r\n \"--output\",\r\n \"-O\",\r\n \"-o\",\r\n help=\"output file or directory (if it ends with .json it is \"\r\n \"recognized as file, else as directory)\",\r\n )\r\n default_config_file = os.path.join(os.path.expanduser(\"~\"), \".labelmerc\")\r\n parser.add_argument(\r\n \"--config\",\r\n"} +{"file_name": "204c42a8-34f6-42a3-957f-b02bb4e5db2f.png", "code": " dest=\"config\",\r\n help=\"config file or yaml-format string (default: {})\".format(\r\n default_config_file\r\n ),\r\n default=default_config_file,\r\n )\r\n # config for the gui\r\n parser.add_argument(\r\n \"--nodata\",\r\n dest=\"store_data\",\r\n action=\"store_false\",\r\n help=\"stop storing image data to JSON file\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--autosave\",\r\n dest=\"auto_save\",\r\n action=\"store_true\",\r\n help=\"auto save\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--nosortlabels\",\r\n dest=\"sort_labels\",\r\n action=\"store_false\",\r\n help=\"stop sorting labels\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--flags\",\r\n help=\"comma separated list of flags OR file containing flags\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--labelflags\",\r\n dest=\"label_flags\",\r\n help=r\"yaml string of label specific flags OR file containing json \"\r\n r\"string of label specific flags (ex. {person-\\d+: [male, tall], \"\r\n r\"dog-\\d+: [black, brown, white], .*: [occluded]})\", # NOQA\r\n default=argparse.SUPPRESS,\r\n"} +{"file_name": "d72cecdd-c78d-4669-810d-ce47ac7d3a85.png", "code": " )\r\n parser.add_argument(\r\n \"--labels\",\r\n help=\"comma separated list of labels OR file containing labels\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--validatelabel\",\r\n dest=\"validate_label\",\r\n choices=[\"exact\"],\r\n help=\"label validation types\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--keep-prev\",\r\n action=\"store_true\",\r\n help=\"keep annotation of previous frame\",\r\n default=argparse.SUPPRESS,\r\n )\r\n parser.add_argument(\r\n \"--epsilon\",\r\n type=float,\r\n help=\"epsilon to find nearest vertex on canvas\",\r\n default=argparse.SUPPRESS,\r\n )\r\n args = parser.parse_args()\r\n\r\n if args.version:\r\n print(\"{0} {1}\".format(__appname__, __version__))\r\n sys.exit(0)\r\n\r\n logger.setLevel(getattr(logging, args.logger_level.upper()))\r\n\r\n if hasattr(args, \"flags\"):\r\n if os.path.isfile(args.flags):\r\n with codecs.open(args.flags, \"r\", encoding=\"utf-8\") as f:\r\n args.flags = [line.strip() for line in f if line.strip()]\r\n else:\r\n args.flags = [line for line in args.flags.split(\",\") if line]\r\n\r\n"} +{"file_name": "b0eec746-9576-483f-a217-8a3b25d662b9.png", "code": " if hasattr(args, \"labels\"):\r\n if os.path.isfile(args.labels):\r\n with codecs.open(args.labels, \"r\", encoding=\"utf-8\") as f:\r\n args.labels = [line.strip() for line in f if line.strip()]\r\n else:\r\n args.labels = [line for line in args.labels.split(\",\") if line]\r\n\r\n if hasattr(args, \"label_flags\"):\r\n if os.path.isfile(args.label_flags):\r\n with codecs.open(args.label_flags, \"r\", encoding=\"utf-8\") as f:\r\n args.label_flags = yaml.safe_load(f)\r\n else:\r\n args.label_flags = yaml.safe_load(args.label_flags)\r\n\r\n config_from_args = args.__dict__\r\n config_from_args.pop(\"version\")\r\n reset_config = config_from_args.pop(\"reset_config\")\r\n filename = config_from_args.pop(\"filename\")\r\n output = config_from_args.pop(\"output\")\r\n config_file_or_yaml = config_from_args.pop(\"config\")\r\n config = get_config(config_file_or_yaml, config_from_args)\r\n\r\n if not config[\"labels\"] and config[\"validate_label\"]:\r\n logger.error(\r\n \"--labels must be specified with --validatelabel or \"\r\n \"validate_label: true in the config file \"\r\n \"(ex. ~/.labelmerc).\"\r\n )\r\n sys.exit(1)\r\n\r\n output_file = None\r\n output_dir = None\r\n if output is not None:\r\n if output.endswith(\".json\"):\r\n output_file = output\r\n else:\r\n output_dir = output\r\n\r\n translator = QtCore.QTranslator()\r\n translator.load(\r\n"} +{"file_name": "9bb791d9-65db-4d21-8b27-e22a05ecc475.png", "code": " QtCore.QLocale.system().name(),\r\n osp.dirname(osp.abspath(__file__)) + \"/translate\",\r\n )\r\n app = QtWidgets.QApplication(sys.argv)\r\n app.setApplicationName(__appname__)\r\n app.setWindowIcon(newIcon(\"icon\"))\r\n app.installTranslator(translator)\r\n win = MainWindow(\r\n config=config,\r\n filename=filename,\r\n output_file=output_file,\r\n output_dir=output_dir,\r\n )\r\n\r\n if reset_config:\r\n logger.info(\"Resetting Qt config: %s\" % win.settings.fileName())\r\n win.settings.clear()\r\n sys.exit(0)\r\n\r\n win.show()\r\n win.raise_()\r\n sys.exit(app.exec_())\r\n\r\n\r\n# this main block is required to generate executable by pyinstaller\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "b2d2f12b-0ec3-4d4e-b2c8-f049e4c1879c.png", "code": "# flake8: noqa\r\n\r\nimport logging\r\nimport sys\r\n\r\nfrom qtpy import QT_VERSION\r\n\r\n\r\n__appname__ = \"labelme\"\r\n\r\n# Semantic Versioning 2.0.0: https://semver.org/\r\n# 1. MAJOR version when you make incompatible API changes;\r\n# 2. MINOR version when you add functionality in a backwards-compatible manner;\r\n# 3. PATCH version when you make backwards-compatible bug fixes.\r\n# e.g., 1.0.0a0, 1.0.0a1, 1.0.0b0, 1.0.0rc0, 1.0.0, 1.0.0.post0\r\n__version__ = \"5.4.1\"\r\n\r\nQT4 = QT_VERSION[0] == \"4\"\r\nQT5 = QT_VERSION[0] == \"5\"\r\ndel QT_VERSION\r\n\r\nPY2 = sys.version[0] == \"2\"\r\nPY3 = sys.version[0] == \"3\"\r\ndel sys\r\n\r\nfrom labelme.label_file import LabelFile\r\nfrom labelme import testing\r\nfrom labelme import utils\r\n"} +{"file_name": "f42ba8da-8eca-47ac-af80-87fb3dd4e679.png", "code": "import copy\r\nimport math\r\n\r\nimport numpy as np\r\nimport skimage.measure\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\n\r\nimport labelme.utils\r\nfrom labelme.logger import logger\r\n\r\n# TODO(unknown):\r\n# - [opt] Store paths instead of creating new ones at each paint.\r\n\r\n\r\nclass Shape(object):\r\n # Render handles as squares\r\n P_SQUARE = 0\r\n\r\n # Render handles as circles\r\n P_ROUND = 1\r\n\r\n # Flag for the handles we would move if dragging\r\n MOVE_VERTEX = 0\r\n\r\n # Flag for all other handles on the current shape\r\n NEAR_VERTEX = 1\r\n\r\n # The following class variables influence the drawing of all shape objects.\r\n line_color = None\r\n fill_color = None\r\n select_line_color = None\r\n select_fill_color = None\r\n vertex_fill_color = None\r\n hvertex_fill_color = None\r\n point_type = P_ROUND\r\n point_size = 8\r\n scale = 1.0\r\n\r\n def __init__(\r\n"} +{"file_name": "e32c5ac1-e75f-46f6-b422-6d4ba55a2857.png", "code": " self,\r\n label=None,\r\n line_color=None,\r\n shape_type=None,\r\n flags=None,\r\n group_id=None,\r\n description=None,\r\n mask=None,\r\n ):\r\n self.label = label\r\n self.group_id = group_id\r\n self.points = []\r\n self.point_labels = []\r\n self.shape_type = shape_type\r\n self._shape_raw = None\r\n self._points_raw = []\r\n self._shape_type_raw = None\r\n self.fill = False\r\n self.selected = False\r\n self.flags = flags\r\n self.description = description\r\n self.other_data = {}\r\n self.mask = mask\r\n\r\n self._highlightIndex = None\r\n self._highlightMode = self.NEAR_VERTEX\r\n self._highlightSettings = {\r\n self.NEAR_VERTEX: (4, self.P_ROUND),\r\n self.MOVE_VERTEX: (1.5, self.P_SQUARE),\r\n }\r\n\r\n self._closed = False\r\n\r\n if line_color is not None:\r\n # Override the class line_color attribute\r\n # with an object attribute. Currently this\r\n # is used for drawing the pending line a different color.\r\n self.line_color = line_color\r\n\r\n def setShapeRefined(self, shape_type, points, point_labels, mask=None):\r\n"} +{"file_name": "31cf2c9e-a92e-446d-8059-00886438eb9b.png", "code": " self._shape_raw = (self.shape_type, self.points, self.point_labels)\r\n self.shape_type = shape_type\r\n self.points = points\r\n self.point_labels = point_labels\r\n self.mask = mask\r\n\r\n def restoreShapeRaw(self):\r\n if self._shape_raw is None:\r\n return\r\n self.shape_type, self.points, self.point_labels = self._shape_raw\r\n self._shape_raw = None\r\n\r\n @property\r\n def shape_type(self):\r\n return self._shape_type\r\n\r\n @shape_type.setter\r\n def shape_type(self, value):\r\n if value is None:\r\n value = \"polygon\"\r\n if value not in [\r\n \"polygon\",\r\n \"rectangle\",\r\n \"point\",\r\n \"line\",\r\n \"circle\",\r\n \"linestrip\",\r\n \"points\",\r\n \"mask\",\r\n ]:\r\n raise ValueError(\"Unexpected shape_type: {}\".format(value))\r\n self._shape_type = value\r\n\r\n def close(self):\r\n self._closed = True\r\n\r\n def addPoint(self, point, label=1):\r\n if self.points and point == self.points[0]:\r\n self.close()\r\n else:\r\n"} +{"file_name": "3ed4774c-29cd-4258-810d-23d0af31fa14.png", "code": " self.points.append(point)\r\n self.point_labels.append(label)\r\n\r\n def canAddPoint(self):\r\n return self.shape_type in [\"polygon\", \"linestrip\"]\r\n\r\n def popPoint(self):\r\n if self.points:\r\n if self.point_labels:\r\n self.point_labels.pop()\r\n return self.points.pop()\r\n return None\r\n\r\n def insertPoint(self, i, point, label=1):\r\n self.points.insert(i, point)\r\n self.point_labels.insert(i, label)\r\n\r\n def removePoint(self, i):\r\n if not self.canAddPoint():\r\n logger.warning(\r\n \"Cannot remove point from: shape_type=%r\",\r\n self.shape_type,\r\n )\r\n return\r\n\r\n if self.shape_type == \"polygon\" and len(self.points) <= 3:\r\n logger.warning(\r\n \"Cannot remove point from: shape_type=%r, len(points)=%d\",\r\n self.shape_type,\r\n len(self.points),\r\n )\r\n return\r\n\r\n if self.shape_type == \"linestrip\" and len(self.points) <= 2:\r\n logger.warning(\r\n \"Cannot remove point from: shape_type=%r, len(points)=%d\",\r\n self.shape_type,\r\n len(self.points),\r\n )\r\n return\r\n"} +{"file_name": "67e9ad11-9e4f-42c2-8039-31f011e03270.png", "code": "\r\n self.points.pop(i)\r\n self.point_labels.pop(i)\r\n\r\n def isClosed(self):\r\n return self._closed\r\n\r\n def setOpen(self):\r\n self._closed = False\r\n\r\n def getRectFromLine(self, pt1, pt2):\r\n x1, y1 = pt1.x(), pt1.y()\r\n x2, y2 = pt2.x(), pt2.y()\r\n return QtCore.QRectF(x1, y1, x2 - x1, y2 - y1)\r\n\r\n def paint(self, painter):\r\n if self.mask is None and not self.points:\r\n return\r\n\r\n color = self.select_line_color if self.selected else self.line_color\r\n pen = QtGui.QPen(color)\r\n # Try using integer sizes for smoother drawing(?)\r\n pen.setWidth(max(1, int(round(2.0 / self.scale))))\r\n painter.setPen(pen)\r\n\r\n if self.mask is not None:\r\n image_to_draw = np.zeros(self.mask.shape + (4,), dtype=np.uint8)\r\n fill_color = (\r\n self.select_fill_color.getRgb()\r\n if self.selected\r\n else self.fill_color.getRgb()\r\n )\r\n image_to_draw[self.mask] = fill_color\r\n qimage = QtGui.QImage.fromData(labelme.utils.img_arr_to_data(image_to_draw))\r\n painter.drawImage(\r\n int(round(self.points[0].x())),\r\n int(round(self.points[0].y())),\r\n qimage,\r\n )\r\n\r\n"} +{"file_name": "78c09f52-a3f4-4a4c-adf4-c8d719fe2a4d.png", "code": " line_path = QtGui.QPainterPath()\r\n contours = skimage.measure.find_contours(np.pad(self.mask, pad_width=1))\r\n for contour in contours:\r\n contour += [self.points[0].y(), self.points[0].x()]\r\n line_path.moveTo(contour[0, 1], contour[0, 0])\r\n for point in contour[1:]:\r\n line_path.lineTo(point[1], point[0])\r\n painter.drawPath(line_path)\r\n\r\n if self.points:\r\n line_path = QtGui.QPainterPath()\r\n vrtx_path = QtGui.QPainterPath()\r\n negative_vrtx_path = QtGui.QPainterPath()\r\n\r\n if self.shape_type in [\"rectangle\", \"mask\"]:\r\n assert len(self.points) in [1, 2]\r\n if len(self.points) == 2:\r\n rectangle = self.getRectFromLine(*self.points)\r\n line_path.addRect(rectangle)\r\n if self.shape_type == \"rectangle\":\r\n for i in range(len(self.points)):\r\n self.drawVertex(vrtx_path, i)\r\n elif self.shape_type == \"circle\":\r\n assert len(self.points) in [1, 2]\r\n if len(self.points) == 2:\r\n rectangle = self.getCircleRectFromLine(self.points)\r\n line_path.addEllipse(rectangle)\r\n for i in range(len(self.points)):\r\n self.drawVertex(vrtx_path, i)\r\n elif self.shape_type == \"linestrip\":\r\n line_path.moveTo(self.points[0])\r\n for i, p in enumerate(self.points):\r\n line_path.lineTo(p)\r\n self.drawVertex(vrtx_path, i)\r\n elif self.shape_type == \"points\":\r\n assert len(self.points) == len(self.point_labels)\r\n for i, point_label in enumerate(self.point_labels):\r\n if point_label == 1:\r\n self.drawVertex(vrtx_path, i)\r\n else:\r\n"} +{"file_name": "dff7fb42-3cb1-4bed-b5b9-c35d53472351.png", "code": " self.drawVertex(negative_vrtx_path, i)\r\n else:\r\n line_path.moveTo(self.points[0])\r\n # Uncommenting the following line will draw 2 paths\r\n # for the 1st vertex, and make it non-filled, which\r\n # may be desirable.\r\n # self.drawVertex(vrtx_path, 0)\r\n\r\n for i, p in enumerate(self.points):\r\n line_path.lineTo(p)\r\n self.drawVertex(vrtx_path, i)\r\n if self.isClosed():\r\n line_path.lineTo(self.points[0])\r\n\r\n painter.drawPath(line_path)\r\n if vrtx_path.length() > 0:\r\n painter.drawPath(vrtx_path)\r\n painter.fillPath(vrtx_path, self._vertex_fill_color)\r\n if self.fill and self.mask is None:\r\n color = self.select_fill_color if self.selected else self.fill_color\r\n painter.fillPath(line_path, color)\r\n\r\n pen.setColor(QtGui.QColor(255, 0, 0, 255))\r\n painter.setPen(pen)\r\n painter.drawPath(negative_vrtx_path)\r\n painter.fillPath(negative_vrtx_path, QtGui.QColor(255, 0, 0, 255))\r\n\r\n def drawVertex(self, path, i):\r\n d = self.point_size / self.scale\r\n shape = self.point_type\r\n point = self.points[i]\r\n if i == self._highlightIndex:\r\n size, shape = self._highlightSettings[self._highlightMode]\r\n d *= size\r\n if self._highlightIndex is not None:\r\n self._vertex_fill_color = self.hvertex_fill_color\r\n else:\r\n self._vertex_fill_color = self.vertex_fill_color\r\n if shape == self.P_SQUARE:\r\n path.addRect(point.x() - d / 2, point.y() - d / 2, d, d)\r\n"} +{"file_name": "f769fb9a-dba9-441a-8ec9-773ee1aa5526.png", "code": " elif shape == self.P_ROUND:\r\n path.addEllipse(point, d / 2.0, d / 2.0)\r\n else:\r\n assert False, \"unsupported vertex shape\"\r\n\r\n def nearestVertex(self, point, epsilon):\r\n min_distance = float(\"inf\")\r\n min_i = None\r\n for i, p in enumerate(self.points):\r\n dist = labelme.utils.distance(p - point)\r\n if dist <= epsilon and dist < min_distance:\r\n min_distance = dist\r\n min_i = i\r\n return min_i\r\n\r\n def nearestEdge(self, point, epsilon):\r\n min_distance = float(\"inf\")\r\n post_i = None\r\n for i in range(len(self.points)):\r\n line = [self.points[i - 1], self.points[i]]\r\n dist = labelme.utils.distancetoline(point, line)\r\n if dist <= epsilon and dist < min_distance:\r\n min_distance = dist\r\n post_i = i\r\n return post_i\r\n\r\n def containsPoint(self, point):\r\n if self.mask is not None:\r\n y = np.clip(\r\n int(round(point.y() - self.points[0].y())),\r\n 0,\r\n self.mask.shape[0] - 1,\r\n )\r\n x = np.clip(\r\n int(round(point.x() - self.points[0].x())),\r\n 0,\r\n self.mask.shape[1] - 1,\r\n )\r\n return self.mask[y, x]\r\n return self.makePath().contains(point)\r\n"} +{"file_name": "8171494a-2c97-4867-a59b-b39bd8dcfda0.png", "code": "\r\n def getCircleRectFromLine(self, line):\r\n \"\"\"Computes parameters to draw with `QPainterPath::addEllipse`\"\"\"\r\n if len(line) != 2:\r\n return None\r\n (c, point) = line\r\n r = line[0] - line[1]\r\n d = math.sqrt(math.pow(r.x(), 2) + math.pow(r.y(), 2))\r\n rectangle = QtCore.QRectF(c.x() - d, c.y() - d, 2 * d, 2 * d)\r\n return rectangle\r\n\r\n def makePath(self):\r\n if self.shape_type in [\"rectangle\", \"mask\"]:\r\n path = QtGui.QPainterPath()\r\n if len(self.points) == 2:\r\n rectangle = self.getRectFromLine(*self.points)\r\n path.addRect(rectangle)\r\n elif self.shape_type == \"circle\":\r\n path = QtGui.QPainterPath()\r\n if len(self.points) == 2:\r\n rectangle = self.getCircleRectFromLine(self.points)\r\n path.addEllipse(rectangle)\r\n else:\r\n path = QtGui.QPainterPath(self.points[0])\r\n for p in self.points[1:]:\r\n path.lineTo(p)\r\n return path\r\n\r\n def boundingRect(self):\r\n return self.makePath().boundingRect()\r\n\r\n def moveBy(self, offset):\r\n self.points = [p + offset for p in self.points]\r\n\r\n def moveVertexBy(self, i, offset):\r\n self.points[i] = self.points[i] + offset\r\n\r\n def highlightVertex(self, i, action):\r\n \"\"\"Highlight a vertex appropriately based on the current action\r\n\r\n"} +{"file_name": "eb60538d-a57a-4d86-919b-ee785675b5fc.png", "code": " Args:\r\n i (int): The vertex index\r\n action (int): The action\r\n (see Shape.NEAR_VERTEX and Shape.MOVE_VERTEX)\r\n \"\"\"\r\n self._highlightIndex = i\r\n self._highlightMode = action\r\n\r\n def highlightClear(self):\r\n \"\"\"Clear the highlighted point\"\"\"\r\n self._highlightIndex = None\r\n\r\n def copy(self):\r\n return copy.deepcopy(self)\r\n\r\n def __len__(self):\r\n return len(self.points)\r\n\r\n def __getitem__(self, key):\r\n return self.points[key]\r\n\r\n def __setitem__(self, key, value):\r\n self.points[key] = value\r\n"} +{"file_name": "4fa0fee9-ffb8-4ba9-b9e1-97fd1f32addc.png", "code": "# -*- coding: utf-8 -*-\r\n\r\nimport functools\r\nimport html\r\nimport math\r\nimport os\r\nimport os.path as osp\r\nimport re\r\nimport webbrowser\r\n\r\nimport imgviz\r\nimport natsort\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\nfrom qtpy.QtCore import Qt\r\n\r\nfrom labelme import PY2\r\nfrom labelme import __appname__\r\nfrom labelme.ai import MODELS\r\nfrom labelme.config import get_config\r\nfrom labelme.label_file import LabelFile\r\nfrom labelme.label_file import LabelFileError\r\nfrom labelme.logger import logger\r\nfrom labelme.shape import Shape\r\nfrom labelme.widgets import BrightnessContrastDialog\r\nfrom labelme.widgets import Canvas\r\nfrom labelme.widgets import FileDialogPreview\r\nfrom labelme.widgets import LabelDialog\r\nfrom labelme.widgets import LabelListWidget\r\nfrom labelme.widgets import LabelListWidgetItem\r\nfrom labelme.widgets import ToolBar\r\nfrom labelme.widgets import UniqueLabelQListWidget\r\nfrom labelme.widgets import ZoomWidget\r\n\r\nfrom . import utils\r\n\r\n# FIXME\r\n# - [medium] Set max zoom value to something big enough for FitWidth/Window\r\n\r\n"} +{"file_name": "13b817b3-23ed-4c13-bec8-26586c394a45.png", "code": "# TODO(unknown):\r\n# - Zoom is too \"steppy\".\r\n\r\n\r\nLABEL_COLORMAP = imgviz.label_colormap()\r\n\r\n\r\nclass MainWindow(QtWidgets.QMainWindow):\r\n FIT_WINDOW, FIT_WIDTH, MANUAL_ZOOM = 0, 1, 2\r\n\r\n def __init__(\r\n self,\r\n config=None,\r\n filename=None,\r\n output=None,\r\n output_file=None,\r\n output_dir=None,\r\n ):\r\n if output is not None:\r\n logger.warning(\"argument output is deprecated, use output_file instead\")\r\n if output_file is None:\r\n output_file = output\r\n\r\n # see labelme/config/default_config.yaml for valid configuration\r\n if config is None:\r\n config = get_config()\r\n self._config = config\r\n\r\n # set default shape colors\r\n Shape.line_color = QtGui.QColor(*self._config[\"shape\"][\"line_color\"])\r\n Shape.fill_color = QtGui.QColor(*self._config[\"shape\"][\"fill_color\"])\r\n Shape.select_line_color = QtGui.QColor(\r\n *self._config[\"shape\"][\"select_line_color\"]\r\n )\r\n Shape.select_fill_color = QtGui.QColor(\r\n *self._config[\"shape\"][\"select_fill_color\"]\r\n )\r\n Shape.vertex_fill_color = QtGui.QColor(\r\n *self._config[\"shape\"][\"vertex_fill_color\"]\r\n )\r\n"} +{"file_name": "5908f81e-1f52-4872-b3dc-091623605ed3.png", "code": " Shape.hvertex_fill_color = QtGui.QColor(\r\n *self._config[\"shape\"][\"hvertex_fill_color\"]\r\n )\r\n\r\n # Set point size from config file\r\n Shape.point_size = self._config[\"shape\"][\"point_size\"]\r\n\r\n super(MainWindow, self).__init__()\r\n self.setWindowTitle(__appname__)\r\n\r\n # Whether we need to save or not.\r\n self.dirty = False\r\n\r\n self._noSelectionSlot = False\r\n\r\n self._copied_shapes = None\r\n\r\n # Main widgets and related state.\r\n self.labelDialog = LabelDialog(\r\n parent=self,\r\n labels=self._config[\"labels\"],\r\n sort_labels=self._config[\"sort_labels\"],\r\n show_text_field=self._config[\"show_label_text_field\"],\r\n completion=self._config[\"label_completion\"],\r\n fit_to_content=self._config[\"fit_to_content\"],\r\n flags=self._config[\"label_flags\"],\r\n )\r\n\r\n self.labelList = LabelListWidget()\r\n self.lastOpenDir = None\r\n\r\n self.flag_dock = self.flag_widget = None\r\n self.flag_dock = QtWidgets.QDockWidget(self.tr(\"Flags\"), self)\r\n self.flag_dock.setObjectName(\"Flags\")\r\n self.flag_widget = QtWidgets.QListWidget()\r\n if config[\"flags\"]:\r\n self.loadFlags({k: False for k in config[\"flags\"]})\r\n self.flag_dock.setWidget(self.flag_widget)\r\n self.flag_widget.itemChanged.connect(self.setDirty)\r\n\r\n"} +{"file_name": "12a32749-ba99-4175-802a-84ba62efc933.png", "code": " self.labelList.itemSelectionChanged.connect(self.labelSelectionChanged)\r\n self.labelList.itemDoubleClicked.connect(self.editLabel)\r\n self.labelList.itemChanged.connect(self.labelItemChanged)\r\n self.labelList.itemDropped.connect(self.labelOrderChanged)\r\n self.shape_dock = QtWidgets.QDockWidget(self.tr(\"Polygon Labels\"), self)\r\n self.shape_dock.setObjectName(\"Labels\")\r\n self.shape_dock.setWidget(self.labelList)\r\n\r\n self.uniqLabelList = UniqueLabelQListWidget()\r\n self.uniqLabelList.setToolTip(\r\n self.tr(\r\n \"Select label to start annotating for it. \" \"Press 'Esc' to deselect.\"\r\n )\r\n )\r\n if self._config[\"labels\"]:\r\n for label in self._config[\"labels\"]:\r\n item = self.uniqLabelList.createItemFromLabel(label)\r\n self.uniqLabelList.addItem(item)\r\n rgb = self._get_rgb_by_label(label)\r\n self.uniqLabelList.setItemLabel(item, label, rgb)\r\n self.label_dock = QtWidgets.QDockWidget(self.tr(\"Label List\"), self)\r\n self.label_dock.setObjectName(\"Label List\")\r\n self.label_dock.setWidget(self.uniqLabelList)\r\n\r\n self.fileSearch = QtWidgets.QLineEdit()\r\n self.fileSearch.setPlaceholderText(self.tr(\"Search Filename\"))\r\n self.fileSearch.textChanged.connect(self.fileSearchChanged)\r\n self.fileListWidget = QtWidgets.QListWidget()\r\n self.fileListWidget.itemSelectionChanged.connect(self.fileSelectionChanged)\r\n fileListLayout = QtWidgets.QVBoxLayout()\r\n fileListLayout.setContentsMargins(0, 0, 0, 0)\r\n fileListLayout.setSpacing(0)\r\n fileListLayout.addWidget(self.fileSearch)\r\n fileListLayout.addWidget(self.fileListWidget)\r\n self.file_dock = QtWidgets.QDockWidget(self.tr(\"File List\"), self)\r\n self.file_dock.setObjectName(\"Files\")\r\n fileListWidget = QtWidgets.QWidget()\r\n fileListWidget.setLayout(fileListLayout)\r\n self.file_dock.setWidget(fileListWidget)\r\n\r\n"} +{"file_name": "464a5efc-c7f3-424d-a1ea-b60c07fd45fa.png", "code": " self.zoomWidget = ZoomWidget()\r\n self.setAcceptDrops(True)\r\n\r\n self.canvas = self.labelList.canvas = Canvas(\r\n epsilon=self._config[\"epsilon\"],\r\n double_click=self._config[\"canvas\"][\"double_click\"],\r\n num_backups=self._config[\"canvas\"][\"num_backups\"],\r\n crosshair=self._config[\"canvas\"][\"crosshair\"],\r\n )\r\n self.canvas.zoomRequest.connect(self.zoomRequest)\r\n\r\n scrollArea = QtWidgets.QScrollArea()\r\n scrollArea.setWidget(self.canvas)\r\n scrollArea.setWidgetResizable(True)\r\n self.scrollBars = {\r\n Qt.Vertical: scrollArea.verticalScrollBar(),\r\n Qt.Horizontal: scrollArea.horizontalScrollBar(),\r\n }\r\n self.canvas.scrollRequest.connect(self.scrollRequest)\r\n\r\n self.canvas.newShape.connect(self.newShape)\r\n self.canvas.shapeMoved.connect(self.setDirty)\r\n self.canvas.selectionChanged.connect(self.shapeSelectionChanged)\r\n self.canvas.drawingPolygon.connect(self.toggleDrawingSensitive)\r\n\r\n self.setCentralWidget(scrollArea)\r\n\r\n features = QtWidgets.QDockWidget.DockWidgetFeatures()\r\n for dock in [\"flag_dock\", \"label_dock\", \"shape_dock\", \"file_dock\"]:\r\n if self._config[dock][\"closable\"]:\r\n features = features | QtWidgets.QDockWidget.DockWidgetClosable\r\n if self._config[dock][\"floatable\"]:\r\n features = features | QtWidgets.QDockWidget.DockWidgetFloatable\r\n if self._config[dock][\"movable\"]:\r\n features = features | QtWidgets.QDockWidget.DockWidgetMovable\r\n getattr(self, dock).setFeatures(features)\r\n if self._config[dock][\"show\"] is False:\r\n getattr(self, dock).setVisible(False)\r\n\r\n self.addDockWidget(Qt.RightDockWidgetArea, self.flag_dock)\r\n"} +{"file_name": "97a59208-4245-4f14-89fd-ea9c464a8d57.png", "code": " self.addDockWidget(Qt.RightDockWidgetArea, self.label_dock)\r\n self.addDockWidget(Qt.RightDockWidgetArea, self.shape_dock)\r\n self.addDockWidget(Qt.RightDockWidgetArea, self.file_dock)\r\n\r\n # Actions\r\n action = functools.partial(utils.newAction, self)\r\n shortcuts = self._config[\"shortcuts\"]\r\n quit = action(\r\n self.tr(\"&Quit\"),\r\n self.close,\r\n shortcuts[\"quit\"],\r\n \"quit\",\r\n self.tr(\"Quit application\"),\r\n )\r\n open_ = action(\r\n self.tr(\"&Open\\n\"),\r\n self.openFile,\r\n shortcuts[\"open\"],\r\n \"open\",\r\n self.tr(\"Open image or label file\"),\r\n )\r\n opendir = action(\r\n self.tr(\"Open Dir\"),\r\n self.openDirDialog,\r\n shortcuts[\"open_dir\"],\r\n \"open\",\r\n self.tr(\"Open Dir\"),\r\n )\r\n openNextImg = action(\r\n self.tr(\"&Next Image\"),\r\n self.openNextImg,\r\n shortcuts[\"open_next\"],\r\n \"next\",\r\n self.tr(\"Open next (hold Ctl+Shift to copy labels)\"),\r\n enabled=False,\r\n )\r\n openPrevImg = action(\r\n self.tr(\"&Prev Image\"),\r\n self.openPrevImg,\r\n shortcuts[\"open_prev\"],\r\n"} +{"file_name": "f9d79caa-cd7c-416f-963a-db8c93a826c5.png", "code": " \"prev\",\r\n self.tr(\"Open prev (hold Ctl+Shift to copy labels)\"),\r\n enabled=False,\r\n )\r\n save = action(\r\n self.tr(\"&Save\\n\"),\r\n self.saveFile,\r\n shortcuts[\"save\"],\r\n \"save\",\r\n self.tr(\"Save labels to file\"),\r\n enabled=False,\r\n )\r\n saveAs = action(\r\n self.tr(\"&Save As\"),\r\n self.saveFileAs,\r\n shortcuts[\"save_as\"],\r\n \"save-as\",\r\n self.tr(\"Save labels to a different file\"),\r\n enabled=False,\r\n )\r\n\r\n deleteFile = action(\r\n self.tr(\"&Delete File\"),\r\n self.deleteFile,\r\n shortcuts[\"delete_file\"],\r\n \"delete\",\r\n self.tr(\"Delete current label file\"),\r\n enabled=False,\r\n )\r\n\r\n changeOutputDir = action(\r\n self.tr(\"&Change Output Dir\"),\r\n slot=self.changeOutputDirDialog,\r\n shortcut=shortcuts[\"save_to\"],\r\n icon=\"open\",\r\n tip=self.tr(\"Change where annotations are loaded/saved\"),\r\n )\r\n\r\n saveAuto = action(\r\n text=self.tr(\"Save &Automatically\"),\r\n"} +{"file_name": "26a5bd0f-154e-4cef-9361-c7bbdc672852.png", "code": " slot=lambda x: self.actions.saveAuto.setChecked(x),\r\n icon=\"save\",\r\n tip=self.tr(\"Save automatically\"),\r\n checkable=True,\r\n enabled=True,\r\n )\r\n saveAuto.setChecked(self._config[\"auto_save\"])\r\n\r\n saveWithImageData = action(\r\n text=\"Save With Image Data\",\r\n slot=self.enableSaveImageWithData,\r\n tip=\"Save image data in label file\",\r\n checkable=True,\r\n checked=self._config[\"store_data\"],\r\n )\r\n\r\n close = action(\r\n \"&Close\",\r\n self.closeFile,\r\n shortcuts[\"close\"],\r\n \"close\",\r\n \"Close current file\",\r\n )\r\n\r\n toggle_keep_prev_mode = action(\r\n self.tr(\"Keep Previous Annotation\"),\r\n self.toggleKeepPrevMode,\r\n shortcuts[\"toggle_keep_prev_mode\"],\r\n None,\r\n self.tr('Toggle \"keep pevious annotation\" mode'),\r\n checkable=True,\r\n )\r\n toggle_keep_prev_mode.setChecked(self._config[\"keep_prev\"])\r\n\r\n createMode = action(\r\n self.tr(\"Create Polygons\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"polygon\"),\r\n shortcuts[\"create_polygon\"],\r\n \"objects\",\r\n self.tr(\"Start drawing polygons\"),\r\n"} +{"file_name": "95a6f56d-ee44-4ee9-b97b-ae71897f9422.png", "code": " enabled=False,\r\n )\r\n createRectangleMode = action(\r\n self.tr(\"Create Rectangle\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"rectangle\"),\r\n shortcuts[\"create_rectangle\"],\r\n \"objects\",\r\n self.tr(\"Start drawing rectangles\"),\r\n enabled=False,\r\n )\r\n createCircleMode = action(\r\n self.tr(\"Create Circle\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"circle\"),\r\n shortcuts[\"create_circle\"],\r\n \"objects\",\r\n self.tr(\"Start drawing circles\"),\r\n enabled=False,\r\n )\r\n createLineMode = action(\r\n self.tr(\"Create Line\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"line\"),\r\n shortcuts[\"create_line\"],\r\n \"objects\",\r\n self.tr(\"Start drawing lines\"),\r\n enabled=False,\r\n )\r\n createPointMode = action(\r\n self.tr(\"Create Point\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"point\"),\r\n shortcuts[\"create_point\"],\r\n \"objects\",\r\n self.tr(\"Start drawing points\"),\r\n enabled=False,\r\n )\r\n createLineStripMode = action(\r\n self.tr(\"Create LineStrip\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"linestrip\"),\r\n shortcuts[\"create_linestrip\"],\r\n \"objects\",\r\n self.tr(\"Start drawing linestrip. Ctrl+LeftClick ends creation.\"),\r\n"} +{"file_name": "2b941870-3e2c-4fab-bd8a-264e14ee8c13.png", "code": " enabled=False,\r\n )\r\n createAiPolygonMode = action(\r\n self.tr(\"Create AI-Polygon\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"ai_polygon\"),\r\n None,\r\n \"objects\",\r\n self.tr(\"Start drawing ai_polygon. Ctrl+LeftClick ends creation.\"),\r\n enabled=False,\r\n )\r\n createAiPolygonMode.changed.connect(\r\n lambda: self.canvas.initializeAiModel(\r\n name=self._selectAiModelComboBox.currentText()\r\n )\r\n if self.canvas.createMode == \"ai_polygon\"\r\n else None\r\n )\r\n createAiMaskMode = action(\r\n self.tr(\"Create AI-Mask\"),\r\n lambda: self.toggleDrawMode(False, createMode=\"ai_mask\"),\r\n None,\r\n \"objects\",\r\n self.tr(\"Start drawing ai_mask. Ctrl+LeftClick ends creation.\"),\r\n enabled=False,\r\n )\r\n createAiMaskMode.changed.connect(\r\n lambda: self.canvas.initializeAiModel(\r\n name=self._selectAiModelComboBox.currentText()\r\n )\r\n if self.canvas.createMode == \"ai_mask\"\r\n else None\r\n )\r\n editMode = action(\r\n self.tr(\"Edit Polygons\"),\r\n self.setEditMode,\r\n shortcuts[\"edit_polygon\"],\r\n \"edit\",\r\n self.tr(\"Move and edit the selected polygons\"),\r\n enabled=False,\r\n )\r\n"} +{"file_name": "9fe681c0-42a2-4a32-ac83-391670760f72.png", "code": "\r\n delete = action(\r\n self.tr(\"Delete Polygons\"),\r\n self.deleteSelectedShape,\r\n shortcuts[\"delete_polygon\"],\r\n \"cancel\",\r\n self.tr(\"Delete the selected polygons\"),\r\n enabled=False,\r\n )\r\n duplicate = action(\r\n self.tr(\"Duplicate Polygons\"),\r\n self.duplicateSelectedShape,\r\n shortcuts[\"duplicate_polygon\"],\r\n \"copy\",\r\n self.tr(\"Create a duplicate of the selected polygons\"),\r\n enabled=False,\r\n )\r\n copy = action(\r\n self.tr(\"Copy Polygons\"),\r\n self.copySelectedShape,\r\n shortcuts[\"copy_polygon\"],\r\n \"copy_clipboard\",\r\n self.tr(\"Copy selected polygons to clipboard\"),\r\n enabled=False,\r\n )\r\n paste = action(\r\n self.tr(\"Paste Polygons\"),\r\n self.pasteSelectedShape,\r\n shortcuts[\"paste_polygon\"],\r\n \"paste\",\r\n self.tr(\"Paste copied polygons\"),\r\n enabled=False,\r\n )\r\n undoLastPoint = action(\r\n self.tr(\"Undo last point\"),\r\n self.canvas.undoLastPoint,\r\n shortcuts[\"undo_last_point\"],\r\n \"undo\",\r\n self.tr(\"Undo last drawn point\"),\r\n enabled=False,\r\n"} +{"file_name": "dc3dbaa8-1dc2-4289-9243-8ee300844b08.png", "code": " )\r\n removePoint = action(\r\n text=\"Remove Selected Point\",\r\n slot=self.removeSelectedPoint,\r\n shortcut=shortcuts[\"remove_selected_point\"],\r\n icon=\"edit\",\r\n tip=\"Remove selected point from polygon\",\r\n enabled=False,\r\n )\r\n\r\n undo = action(\r\n self.tr(\"Undo\\n\"),\r\n self.undoShapeEdit,\r\n shortcuts[\"undo\"],\r\n \"undo\",\r\n self.tr(\"Undo last add and edit of shape\"),\r\n enabled=False,\r\n )\r\n\r\n hideAll = action(\r\n self.tr(\"&Hide\\nPolygons\"),\r\n functools.partial(self.togglePolygons, False),\r\n shortcuts[\"hide_all_polygons\"],\r\n icon=\"eye\",\r\n tip=self.tr(\"Hide all polygons\"),\r\n enabled=False,\r\n )\r\n showAll = action(\r\n self.tr(\"&Show\\nPolygons\"),\r\n functools.partial(self.togglePolygons, True),\r\n shortcuts[\"show_all_polygons\"],\r\n icon=\"eye\",\r\n tip=self.tr(\"Show all polygons\"),\r\n enabled=False,\r\n )\r\n toggleAll = action(\r\n self.tr(\"&Toggle\\nPolygons\"),\r\n functools.partial(self.togglePolygons, None),\r\n shortcuts[\"toggle_all_polygons\"],\r\n icon=\"eye\",\r\n"} +{"file_name": "71f03aa1-714a-4e49-acd9-f79b73c9d5d5.png", "code": " tip=self.tr(\"Toggle all polygons\"),\r\n enabled=False,\r\n )\r\n\r\n help = action(\r\n self.tr(\"&Tutorial\"),\r\n self.tutorial,\r\n icon=\"help\",\r\n tip=self.tr(\"Show tutorial page\"),\r\n )\r\n\r\n zoom = QtWidgets.QWidgetAction(self)\r\n zoomBoxLayout = QtWidgets.QVBoxLayout()\r\n zoomLabel = QtWidgets.QLabel(\"Zoom\")\r\n zoomLabel.setAlignment(Qt.AlignCenter)\r\n zoomBoxLayout.addWidget(zoomLabel)\r\n zoomBoxLayout.addWidget(self.zoomWidget)\r\n zoom.setDefaultWidget(QtWidgets.QWidget())\r\n zoom.defaultWidget().setLayout(zoomBoxLayout)\r\n self.zoomWidget.setWhatsThis(\r\n str(\r\n self.tr(\r\n \"Zoom in or out of the image. Also accessible with \"\r\n \"{} and {} from the canvas.\"\r\n )\r\n ).format(\r\n utils.fmtShortcut(\r\n \"{},{}\".format(shortcuts[\"zoom_in\"], shortcuts[\"zoom_out\"])\r\n ),\r\n utils.fmtShortcut(self.tr(\"Ctrl+Wheel\")),\r\n )\r\n )\r\n self.zoomWidget.setEnabled(False)\r\n\r\n zoomIn = action(\r\n self.tr(\"Zoom &In\"),\r\n functools.partial(self.addZoom, 1.1),\r\n shortcuts[\"zoom_in\"],\r\n \"zoom-in\",\r\n self.tr(\"Increase zoom level\"),\r\n"} +{"file_name": "ed3cd382-04b7-4ba8-820d-09a87093f25d.png", "code": " enabled=False,\r\n )\r\n zoomOut = action(\r\n self.tr(\"&Zoom Out\"),\r\n functools.partial(self.addZoom, 0.9),\r\n shortcuts[\"zoom_out\"],\r\n \"zoom-out\",\r\n self.tr(\"Decrease zoom level\"),\r\n enabled=False,\r\n )\r\n zoomOrg = action(\r\n self.tr(\"&Original size\"),\r\n functools.partial(self.setZoom, 100),\r\n shortcuts[\"zoom_to_original\"],\r\n \"zoom\",\r\n self.tr(\"Zoom to original size\"),\r\n enabled=False,\r\n )\r\n keepPrevScale = action(\r\n self.tr(\"&Keep Previous Scale\"),\r\n self.enableKeepPrevScale,\r\n tip=self.tr(\"Keep previous zoom scale\"),\r\n checkable=True,\r\n checked=self._config[\"keep_prev_scale\"],\r\n enabled=True,\r\n )\r\n fitWindow = action(\r\n self.tr(\"&Fit Window\"),\r\n self.setFitWindow,\r\n shortcuts[\"fit_window\"],\r\n \"fit-window\",\r\n self.tr(\"Zoom follows window size\"),\r\n checkable=True,\r\n enabled=False,\r\n )\r\n fitWidth = action(\r\n self.tr(\"Fit &Width\"),\r\n self.setFitWidth,\r\n shortcuts[\"fit_width\"],\r\n \"fit-width\",\r\n"} +{"file_name": "16390509-ae18-4886-897c-2c66fb66f4f3.png", "code": " self.tr(\"Zoom follows window width\"),\r\n checkable=True,\r\n enabled=False,\r\n )\r\n brightnessContrast = action(\r\n \"&Brightness Contrast\",\r\n self.brightnessContrast,\r\n None,\r\n \"color\",\r\n \"Adjust brightness and contrast\",\r\n enabled=False,\r\n )\r\n # Group zoom controls into a list for easier toggling.\r\n zoomActions = (\r\n self.zoomWidget,\r\n zoomIn,\r\n zoomOut,\r\n zoomOrg,\r\n fitWindow,\r\n fitWidth,\r\n )\r\n self.zoomMode = self.FIT_WINDOW\r\n fitWindow.setChecked(Qt.Checked)\r\n self.scalers = {\r\n self.FIT_WINDOW: self.scaleFitWindow,\r\n self.FIT_WIDTH: self.scaleFitWidth,\r\n # Set to one to scale to 100% when loading files.\r\n self.MANUAL_ZOOM: lambda: 1,\r\n }\r\n\r\n edit = action(\r\n self.tr(\"&Edit Label\"),\r\n self.editLabel,\r\n shortcuts[\"edit_label\"],\r\n \"edit\",\r\n self.tr(\"Modify the label of the selected polygon\"),\r\n enabled=False,\r\n )\r\n\r\n fill_drawing = action(\r\n"} +{"file_name": "fadd78b5-16d9-454f-aaa2-a4eee1bc95bf.png", "code": " self.tr(\"Fill Drawing Polygon\"),\r\n self.canvas.setFillDrawing,\r\n None,\r\n \"color\",\r\n self.tr(\"Fill polygon while drawing\"),\r\n checkable=True,\r\n enabled=True,\r\n )\r\n if self._config[\"canvas\"][\"fill_drawing\"]:\r\n fill_drawing.trigger()\r\n\r\n # Lavel list context menu.\r\n labelMenu = QtWidgets.QMenu()\r\n utils.addActions(labelMenu, (edit, delete))\r\n self.labelList.setContextMenuPolicy(Qt.CustomContextMenu)\r\n self.labelList.customContextMenuRequested.connect(self.popLabelListMenu)\r\n\r\n # Store actions for further handling.\r\n self.actions = utils.struct(\r\n saveAuto=saveAuto,\r\n saveWithImageData=saveWithImageData,\r\n changeOutputDir=changeOutputDir,\r\n save=save,\r\n saveAs=saveAs,\r\n open=open_,\r\n close=close,\r\n deleteFile=deleteFile,\r\n toggleKeepPrevMode=toggle_keep_prev_mode,\r\n delete=delete,\r\n edit=edit,\r\n duplicate=duplicate,\r\n copy=copy,\r\n paste=paste,\r\n undoLastPoint=undoLastPoint,\r\n undo=undo,\r\n removePoint=removePoint,\r\n createMode=createMode,\r\n editMode=editMode,\r\n createRectangleMode=createRectangleMode,\r\n createCircleMode=createCircleMode,\r\n"} +{"file_name": "0232332d-ceb7-4bef-8ded-1d9a963cad7c.png", "code": " createLineMode=createLineMode,\r\n createPointMode=createPointMode,\r\n createLineStripMode=createLineStripMode,\r\n createAiPolygonMode=createAiPolygonMode,\r\n createAiMaskMode=createAiMaskMode,\r\n zoom=zoom,\r\n zoomIn=zoomIn,\r\n zoomOut=zoomOut,\r\n zoomOrg=zoomOrg,\r\n keepPrevScale=keepPrevScale,\r\n fitWindow=fitWindow,\r\n fitWidth=fitWidth,\r\n brightnessContrast=brightnessContrast,\r\n zoomActions=zoomActions,\r\n openNextImg=openNextImg,\r\n openPrevImg=openPrevImg,\r\n fileMenuActions=(open_, opendir, save, saveAs, close, quit),\r\n tool=(),\r\n # XXX: need to add some actions here to activate the shortcut\r\n editMenu=(\r\n edit,\r\n duplicate,\r\n copy,\r\n paste,\r\n delete,\r\n None,\r\n undo,\r\n undoLastPoint,\r\n None,\r\n removePoint,\r\n None,\r\n toggle_keep_prev_mode,\r\n ),\r\n # menu shown at right click\r\n menu=(\r\n createMode,\r\n createRectangleMode,\r\n createCircleMode,\r\n createLineMode,\r\n createPointMode,\r\n"} +{"file_name": "ee9f4d72-7eac-47ca-97a6-2c5f2f2c61e3.png", "code": " createLineStripMode,\r\n createAiPolygonMode,\r\n createAiMaskMode,\r\n editMode,\r\n edit,\r\n duplicate,\r\n copy,\r\n paste,\r\n delete,\r\n undo,\r\n undoLastPoint,\r\n removePoint,\r\n ),\r\n onLoadActive=(\r\n close,\r\n createMode,\r\n createRectangleMode,\r\n createCircleMode,\r\n createLineMode,\r\n createPointMode,\r\n createLineStripMode,\r\n createAiPolygonMode,\r\n createAiMaskMode,\r\n editMode,\r\n brightnessContrast,\r\n ),\r\n onShapesPresent=(saveAs, hideAll, showAll, toggleAll),\r\n )\r\n\r\n self.canvas.vertexSelected.connect(self.actions.removePoint.setEnabled)\r\n\r\n self.menus = utils.struct(\r\n file=self.menu(self.tr(\"&File\")),\r\n edit=self.menu(self.tr(\"&Edit\")),\r\n view=self.menu(self.tr(\"&View\")),\r\n help=self.menu(self.tr(\"&Help\")),\r\n recentFiles=QtWidgets.QMenu(self.tr(\"Open &Recent\")),\r\n labelList=labelMenu,\r\n )\r\n\r\n"} +{"file_name": "48c996a3-156c-460a-b814-5234efea5fcd.png", "code": " utils.addActions(\r\n self.menus.file,\r\n (\r\n open_,\r\n openNextImg,\r\n openPrevImg,\r\n opendir,\r\n self.menus.recentFiles,\r\n save,\r\n saveAs,\r\n saveAuto,\r\n changeOutputDir,\r\n saveWithImageData,\r\n close,\r\n deleteFile,\r\n None,\r\n quit,\r\n ),\r\n )\r\n utils.addActions(self.menus.help, (help,))\r\n utils.addActions(\r\n self.menus.view,\r\n (\r\n self.flag_dock.toggleViewAction(),\r\n self.label_dock.toggleViewAction(),\r\n self.shape_dock.toggleViewAction(),\r\n self.file_dock.toggleViewAction(),\r\n None,\r\n fill_drawing,\r\n None,\r\n hideAll,\r\n showAll,\r\n toggleAll,\r\n None,\r\n zoomIn,\r\n zoomOut,\r\n zoomOrg,\r\n keepPrevScale,\r\n None,\r\n fitWindow,\r\n"} +{"file_name": "12247f15-39dd-4d59-b3e4-e6220aaa551f.png", "code": " fitWidth,\r\n None,\r\n brightnessContrast,\r\n ),\r\n )\r\n\r\n self.menus.file.aboutToShow.connect(self.updateFileMenu)\r\n\r\n # Custom context menu for the canvas widget:\r\n utils.addActions(self.canvas.menus[0], self.actions.menu)\r\n utils.addActions(\r\n self.canvas.menus[1],\r\n (\r\n action(\"&Copy here\", self.copyShape),\r\n action(\"&Move here\", self.moveShape),\r\n ),\r\n )\r\n\r\n selectAiModel = QtWidgets.QWidgetAction(self)\r\n selectAiModel.setDefaultWidget(QtWidgets.QWidget())\r\n selectAiModel.defaultWidget().setLayout(QtWidgets.QVBoxLayout())\r\n #\r\n selectAiModelLabel = QtWidgets.QLabel(self.tr(\"AI Model\"))\r\n selectAiModelLabel.setAlignment(QtCore.Qt.AlignCenter)\r\n selectAiModel.defaultWidget().layout().addWidget(selectAiModelLabel)\r\n #\r\n self._selectAiModelComboBox = QtWidgets.QComboBox()\r\n selectAiModel.defaultWidget().layout().addWidget(self._selectAiModelComboBox)\r\n model_names = [model.name for model in MODELS]\r\n self._selectAiModelComboBox.addItems(model_names)\r\n if self._config[\"ai\"][\"default\"] in model_names:\r\n model_index = model_names.index(self._config[\"ai\"][\"default\"])\r\n else:\r\n logger.warning(\r\n \"Default AI model is not found: %r\",\r\n self._config[\"ai\"][\"default\"],\r\n )\r\n model_index = 0\r\n self._selectAiModelComboBox.setCurrentIndex(model_index)\r\n self._selectAiModelComboBox.currentIndexChanged.connect(\r\n"} +{"file_name": "561e03ab-d8d6-4a10-aeea-1cbb956b4b34.png", "code": " lambda: self.canvas.initializeAiModel(\r\n name=self._selectAiModelComboBox.currentText()\r\n )\r\n if self.canvas.createMode in [\"ai_polygon\", \"ai_mask\"]\r\n else None\r\n )\r\n\r\n self.tools = self.toolbar(\"Tools\")\r\n self.actions.tool = (\r\n open_,\r\n opendir,\r\n openPrevImg,\r\n openNextImg,\r\n save,\r\n deleteFile,\r\n None,\r\n createMode,\r\n editMode,\r\n duplicate,\r\n delete,\r\n undo,\r\n brightnessContrast,\r\n None,\r\n fitWindow,\r\n zoom,\r\n None,\r\n selectAiModel,\r\n )\r\n\r\n self.statusBar().showMessage(str(self.tr(\"%s started.\")) % __appname__)\r\n self.statusBar().show()\r\n\r\n if output_file is not None and self._config[\"auto_save\"]:\r\n logger.warn(\r\n \"If `auto_save` argument is True, `output_file` argument \"\r\n \"is ignored and output filename is automatically \"\r\n \"set as IMAGE_BASENAME.json.\"\r\n )\r\n self.output_file = output_file\r\n self.output_dir = output_dir\r\n"} +{"file_name": "cc23984c-923e-47a6-aaf2-50cc60ded5c1.png", "code": "\r\n # Application state.\r\n self.image = QtGui.QImage()\r\n self.imagePath = None\r\n self.recentFiles = []\r\n self.maxRecent = 7\r\n self.otherData = None\r\n self.zoom_level = 100\r\n self.fit_window = False\r\n self.zoom_values = {} # key=filename, value=(zoom_mode, zoom_value)\r\n self.brightnessContrast_values = {}\r\n self.scroll_values = {\r\n Qt.Horizontal: {},\r\n Qt.Vertical: {},\r\n } # key=filename, value=scroll_value\r\n\r\n if filename is not None and osp.isdir(filename):\r\n self.importDirImages(filename, load=False)\r\n else:\r\n self.filename = filename\r\n\r\n if config[\"file_search\"]:\r\n self.fileSearch.setText(config[\"file_search\"])\r\n self.fileSearchChanged()\r\n\r\n # XXX: Could be completely declarative.\r\n # Restore application settings.\r\n self.settings = QtCore.QSettings(\"labelme\", \"labelme\")\r\n self.recentFiles = self.settings.value(\"recentFiles\", []) or []\r\n size = self.settings.value(\"window/size\", QtCore.QSize(600, 500))\r\n position = self.settings.value(\"window/position\", QtCore.QPoint(0, 0))\r\n state = self.settings.value(\"window/state\", QtCore.QByteArray())\r\n self.resize(size)\r\n self.move(position)\r\n # or simply:\r\n # self.restoreGeometry(settings['window/geometry']\r\n self.restoreState(state)\r\n\r\n # Populate the File menu dynamically.\r\n self.updateFileMenu()\r\n"} +{"file_name": "9d6b558e-d049-4bb9-8554-50d699886854.png", "code": " # Since loading the file may take some time,\r\n # make sure it runs in the background.\r\n if self.filename is not None:\r\n self.queueEvent(functools.partial(self.loadFile, self.filename))\r\n\r\n # Callbacks:\r\n self.zoomWidget.valueChanged.connect(self.paintCanvas)\r\n\r\n self.populateModeActions()\r\n\r\n # self.firstStart = True\r\n # if self.firstStart:\r\n # QWhatsThis.enterWhatsThisMode()\r\n\r\n def menu(self, title, actions=None):\r\n menu = self.menuBar().addMenu(title)\r\n if actions:\r\n utils.addActions(menu, actions)\r\n return menu\r\n\r\n def toolbar(self, title, actions=None):\r\n toolbar = ToolBar(title)\r\n toolbar.setObjectName(\"%sToolBar\" % title)\r\n # toolbar.setOrientation(Qt.Vertical)\r\n toolbar.setToolButtonStyle(Qt.ToolButtonTextUnderIcon)\r\n if actions:\r\n utils.addActions(toolbar, actions)\r\n self.addToolBar(Qt.TopToolBarArea, toolbar)\r\n return toolbar\r\n\r\n # Support Functions\r\n\r\n def noShapes(self):\r\n return not len(self.labelList)\r\n\r\n def populateModeActions(self):\r\n tool, menu = self.actions.tool, self.actions.menu\r\n self.tools.clear()\r\n utils.addActions(self.tools, tool)\r\n self.canvas.menus[0].clear()\r\n"} +{"file_name": "2d6aa2a3-427f-4655-9fc2-9e6f73a11823.png", "code": " utils.addActions(self.canvas.menus[0], menu)\r\n self.menus.edit.clear()\r\n actions = (\r\n self.actions.createMode,\r\n self.actions.createRectangleMode,\r\n self.actions.createCircleMode,\r\n self.actions.createLineMode,\r\n self.actions.createPointMode,\r\n self.actions.createLineStripMode,\r\n self.actions.createAiPolygonMode,\r\n self.actions.createAiMaskMode,\r\n self.actions.editMode,\r\n )\r\n utils.addActions(self.menus.edit, actions + self.actions.editMenu)\r\n\r\n def setDirty(self):\r\n # Even if we autosave the file, we keep the ability to undo\r\n self.actions.undo.setEnabled(self.canvas.isShapeRestorable)\r\n\r\n if self._config[\"auto_save\"] or self.actions.saveAuto.isChecked():\r\n label_file = osp.splitext(self.imagePath)[0] + \".json\"\r\n if self.output_dir:\r\n label_file_without_path = osp.basename(label_file)\r\n label_file = osp.join(self.output_dir, label_file_without_path)\r\n self.saveLabels(label_file)\r\n return\r\n self.dirty = True\r\n self.actions.save.setEnabled(True)\r\n title = __appname__\r\n if self.filename is not None:\r\n title = \"{} - {}*\".format(title, self.filename)\r\n self.setWindowTitle(title)\r\n\r\n def setClean(self):\r\n self.dirty = False\r\n self.actions.save.setEnabled(False)\r\n self.actions.createMode.setEnabled(True)\r\n self.actions.createRectangleMode.setEnabled(True)\r\n self.actions.createCircleMode.setEnabled(True)\r\n self.actions.createLineMode.setEnabled(True)\r\n"} +{"file_name": "dc5d1fee-37c1-491b-a2f8-bac7e62137c8.png", "code": " self.actions.createPointMode.setEnabled(True)\r\n self.actions.createLineStripMode.setEnabled(True)\r\n self.actions.createAiPolygonMode.setEnabled(True)\r\n self.actions.createAiMaskMode.setEnabled(True)\r\n title = __appname__\r\n if self.filename is not None:\r\n title = \"{} - {}\".format(title, self.filename)\r\n self.setWindowTitle(title)\r\n\r\n if self.hasLabelFile():\r\n self.actions.deleteFile.setEnabled(True)\r\n else:\r\n self.actions.deleteFile.setEnabled(False)\r\n\r\n def toggleActions(self, value=True):\r\n \"\"\"Enable/Disable widgets which depend on an opened image.\"\"\"\r\n for z in self.actions.zoomActions:\r\n z.setEnabled(value)\r\n for action in self.actions.onLoadActive:\r\n action.setEnabled(value)\r\n\r\n def queueEvent(self, function):\r\n QtCore.QTimer.singleShot(0, function)\r\n\r\n def status(self, message, delay=5000):\r\n self.statusBar().showMessage(message, delay)\r\n\r\n def resetState(self):\r\n self.labelList.clear()\r\n self.filename = None\r\n self.imagePath = None\r\n self.imageData = None\r\n self.labelFile = None\r\n self.otherData = None\r\n self.canvas.resetState()\r\n\r\n def currentItem(self):\r\n items = self.labelList.selectedItems()\r\n if items:\r\n return items[0]\r\n"} +{"file_name": "03681917-edeb-461a-b6d1-ea2c25b66023.png", "code": " return None\r\n\r\n def addRecentFile(self, filename):\r\n if filename in self.recentFiles:\r\n self.recentFiles.remove(filename)\r\n elif len(self.recentFiles) >= self.maxRecent:\r\n self.recentFiles.pop()\r\n self.recentFiles.insert(0, filename)\r\n\r\n # Callbacks\r\n\r\n def undoShapeEdit(self):\r\n self.canvas.restoreShape()\r\n self.labelList.clear()\r\n self.loadShapes(self.canvas.shapes)\r\n self.actions.undo.setEnabled(self.canvas.isShapeRestorable)\r\n\r\n def tutorial(self):\r\n url = \"https://github.com/wkentaro/labelme/tree/main/examples/tutorial\" # NOQA\r\n webbrowser.open(url)\r\n\r\n def toggleDrawingSensitive(self, drawing=True):\r\n \"\"\"Toggle drawing sensitive.\r\n\r\n In the middle of drawing, toggling between modes should be disabled.\r\n \"\"\"\r\n self.actions.editMode.setEnabled(not drawing)\r\n self.actions.undoLastPoint.setEnabled(drawing)\r\n self.actions.undo.setEnabled(not drawing)\r\n self.actions.delete.setEnabled(not drawing)\r\n\r\n def toggleDrawMode(self, edit=True, createMode=\"polygon\"):\r\n draw_actions = {\r\n \"polygon\": self.actions.createMode,\r\n \"rectangle\": self.actions.createRectangleMode,\r\n \"circle\": self.actions.createCircleMode,\r\n \"point\": self.actions.createPointMode,\r\n \"line\": self.actions.createLineMode,\r\n \"linestrip\": self.actions.createLineStripMode,\r\n \"ai_polygon\": self.actions.createAiPolygonMode,\r\n"} +{"file_name": "0c76aaac-e778-42aa-9f42-1318acf599e2.png", "code": " \"ai_mask\": self.actions.createAiMaskMode,\r\n }\r\n\r\n self.canvas.setEditing(edit)\r\n self.canvas.createMode = createMode\r\n if edit:\r\n for draw_action in draw_actions.values():\r\n draw_action.setEnabled(True)\r\n else:\r\n for draw_mode, draw_action in draw_actions.items():\r\n draw_action.setEnabled(createMode != draw_mode)\r\n self.actions.editMode.setEnabled(not edit)\r\n\r\n def setEditMode(self):\r\n self.toggleDrawMode(True)\r\n\r\n def updateFileMenu(self):\r\n current = self.filename\r\n\r\n def exists(filename):\r\n return osp.exists(str(filename))\r\n\r\n menu = self.menus.recentFiles\r\n menu.clear()\r\n files = [f for f in self.recentFiles if f != current and exists(f)]\r\n for i, f in enumerate(files):\r\n icon = utils.newIcon(\"labels\")\r\n action = QtWidgets.QAction(\r\n icon, \"&%d %s\" % (i + 1, QtCore.QFileInfo(f).fileName()), self\r\n )\r\n action.triggered.connect(functools.partial(self.loadRecent, f))\r\n menu.addAction(action)\r\n\r\n def popLabelListMenu(self, point):\r\n self.menus.labelList.exec_(self.labelList.mapToGlobal(point))\r\n\r\n def validateLabel(self, label):\r\n # no validation\r\n if self._config[\"validate_label\"] is None:\r\n return True\r\n"} +{"file_name": "8eeb870a-1687-4b2b-bbb8-7193d2c0acea.png", "code": "\r\n for i in range(self.uniqLabelList.count()):\r\n label_i = self.uniqLabelList.item(i).data(Qt.UserRole)\r\n if self._config[\"validate_label\"] in [\"exact\"]:\r\n if label_i == label:\r\n return True\r\n return False\r\n\r\n def editLabel(self, item=None):\r\n if item and not isinstance(item, LabelListWidgetItem):\r\n raise TypeError(\"item must be LabelListWidgetItem type\")\r\n\r\n if not self.canvas.editing():\r\n return\r\n if not item:\r\n item = self.currentItem()\r\n if item is None:\r\n return\r\n shape = item.shape()\r\n if shape is None:\r\n return\r\n text, flags, group_id, description = self.labelDialog.popUp(\r\n text=shape.label,\r\n flags=shape.flags,\r\n group_id=shape.group_id,\r\n description=shape.description,\r\n )\r\n if text is None:\r\n return\r\n if not self.validateLabel(text):\r\n self.errorMessage(\r\n self.tr(\"Invalid label\"),\r\n self.tr(\"Invalid label '{}' with validation type '{}'\").format(\r\n text, self._config[\"validate_label\"]\r\n ),\r\n )\r\n return\r\n shape.label = text\r\n shape.flags = flags\r\n shape.group_id = group_id\r\n"} +{"file_name": "09287d9e-5de2-42f5-bbba-03e907054da6.png", "code": " shape.description = description\r\n\r\n self._update_shape_color(shape)\r\n if shape.group_id is None:\r\n item.setText(\r\n '{} \u25cf'.format(\r\n html.escape(shape.label), *shape.fill_color.getRgb()[:3]\r\n )\r\n )\r\n else:\r\n item.setText(\"{} ({})\".format(shape.label, shape.group_id))\r\n self.setDirty()\r\n if self.uniqLabelList.findItemByLabel(shape.label) is None:\r\n item = self.uniqLabelList.createItemFromLabel(shape.label)\r\n self.uniqLabelList.addItem(item)\r\n rgb = self._get_rgb_by_label(shape.label)\r\n self.uniqLabelList.setItemLabel(item, shape.label, rgb)\r\n\r\n def fileSearchChanged(self):\r\n self.importDirImages(\r\n self.lastOpenDir,\r\n pattern=self.fileSearch.text(),\r\n load=False,\r\n )\r\n\r\n def fileSelectionChanged(self):\r\n items = self.fileListWidget.selectedItems()\r\n if not items:\r\n return\r\n item = items[0]\r\n\r\n if not self.mayContinue():\r\n return\r\n\r\n currIndex = self.imageList.index(str(item.text()))\r\n if currIndex < len(self.imageList):\r\n filename = self.imageList[currIndex]\r\n if filename:\r\n self.loadFile(filename)\r\n\r\n"} +{"file_name": "1b1889a3-8e98-40cd-9e58-f49a31269cf0.png", "code": " # React to canvas signals.\r\n def shapeSelectionChanged(self, selected_shapes):\r\n self._noSelectionSlot = True\r\n for shape in self.canvas.selectedShapes:\r\n shape.selected = False\r\n self.labelList.clearSelection()\r\n self.canvas.selectedShapes = selected_shapes\r\n for shape in self.canvas.selectedShapes:\r\n shape.selected = True\r\n item = self.labelList.findItemByShape(shape)\r\n self.labelList.selectItem(item)\r\n self.labelList.scrollToItem(item)\r\n self._noSelectionSlot = False\r\n n_selected = len(selected_shapes)\r\n self.actions.delete.setEnabled(n_selected)\r\n self.actions.duplicate.setEnabled(n_selected)\r\n self.actions.copy.setEnabled(n_selected)\r\n self.actions.edit.setEnabled(n_selected == 1)\r\n\r\n def addLabel(self, shape):\r\n if shape.group_id is None:\r\n text = shape.label\r\n else:\r\n text = \"{} ({})\".format(shape.label, shape.group_id)\r\n label_list_item = LabelListWidgetItem(text, shape)\r\n self.labelList.addItem(label_list_item)\r\n if self.uniqLabelList.findItemByLabel(shape.label) is None:\r\n item = self.uniqLabelList.createItemFromLabel(shape.label)\r\n self.uniqLabelList.addItem(item)\r\n rgb = self._get_rgb_by_label(shape.label)\r\n self.uniqLabelList.setItemLabel(item, shape.label, rgb)\r\n self.labelDialog.addLabelHistory(shape.label)\r\n for action in self.actions.onShapesPresent:\r\n action.setEnabled(True)\r\n\r\n self._update_shape_color(shape)\r\n label_list_item.setText(\r\n '{} \u25cf'.format(\r\n html.escape(text), *shape.fill_color.getRgb()[:3]\r\n )\r\n"} +{"file_name": "de60c12d-06cb-4ce6-bd00-2143b1615453.png", "code": " )\r\n\r\n def _update_shape_color(self, shape):\r\n r, g, b = self._get_rgb_by_label(shape.label)\r\n shape.line_color = QtGui.QColor(r, g, b)\r\n shape.vertex_fill_color = QtGui.QColor(r, g, b)\r\n shape.hvertex_fill_color = QtGui.QColor(255, 255, 255)\r\n shape.fill_color = QtGui.QColor(r, g, b, 128)\r\n shape.select_line_color = QtGui.QColor(255, 255, 255)\r\n shape.select_fill_color = QtGui.QColor(r, g, b, 155)\r\n\r\n def _get_rgb_by_label(self, label):\r\n if self._config[\"shape_color\"] == \"auto\":\r\n item = self.uniqLabelList.findItemByLabel(label)\r\n if item is None:\r\n item = self.uniqLabelList.createItemFromLabel(label)\r\n self.uniqLabelList.addItem(item)\r\n rgb = self._get_rgb_by_label(label)\r\n self.uniqLabelList.setItemLabel(item, label, rgb)\r\n label_id = self.uniqLabelList.indexFromItem(item).row() + 1\r\n label_id += self._config[\"shift_auto_shape_color\"]\r\n return LABEL_COLORMAP[label_id % len(LABEL_COLORMAP)]\r\n elif (\r\n self._config[\"shape_color\"] == \"manual\"\r\n and self._config[\"label_colors\"]\r\n and label in self._config[\"label_colors\"]\r\n ):\r\n return self._config[\"label_colors\"][label]\r\n elif self._config[\"default_shape_color\"]:\r\n return self._config[\"default_shape_color\"]\r\n return (0, 255, 0)\r\n\r\n def remLabels(self, shapes):\r\n for shape in shapes:\r\n item = self.labelList.findItemByShape(shape)\r\n self.labelList.removeItem(item)\r\n\r\n def loadShapes(self, shapes, replace=True):\r\n self._noSelectionSlot = True\r\n for shape in shapes:\r\n"} +{"file_name": "1fa9750f-60f4-45e9-9a6d-79f1ea2d6ace.png", "code": " self.addLabel(shape)\r\n self.labelList.clearSelection()\r\n self._noSelectionSlot = False\r\n self.canvas.loadShapes(shapes, replace=replace)\r\n\r\n def loadLabels(self, shapes):\r\n s = []\r\n for shape in shapes:\r\n label = shape[\"label\"]\r\n points = shape[\"points\"]\r\n shape_type = shape[\"shape_type\"]\r\n flags = shape[\"flags\"]\r\n description = shape.get(\"description\", \"\")\r\n group_id = shape[\"group_id\"]\r\n other_data = shape[\"other_data\"]\r\n\r\n if not points:\r\n # skip point-empty shape\r\n continue\r\n\r\n shape = Shape(\r\n label=label,\r\n shape_type=shape_type,\r\n group_id=group_id,\r\n description=description,\r\n mask=shape[\"mask\"],\r\n )\r\n for x, y in points:\r\n shape.addPoint(QtCore.QPointF(x, y))\r\n shape.close()\r\n\r\n default_flags = {}\r\n if self._config[\"label_flags\"]:\r\n for pattern, keys in self._config[\"label_flags\"].items():\r\n if re.match(pattern, label):\r\n for key in keys:\r\n default_flags[key] = False\r\n shape.flags = default_flags\r\n shape.flags.update(flags)\r\n shape.other_data = other_data\r\n"} +{"file_name": "ee9ecd23-241e-439a-874c-437a5164c700.png", "code": "\r\n s.append(shape)\r\n self.loadShapes(s)\r\n\r\n def loadFlags(self, flags):\r\n self.flag_widget.clear()\r\n for key, flag in flags.items():\r\n item = QtWidgets.QListWidgetItem(key)\r\n item.setFlags(item.flags() | Qt.ItemIsUserCheckable)\r\n item.setCheckState(Qt.Checked if flag else Qt.Unchecked)\r\n self.flag_widget.addItem(item)\r\n\r\n def saveLabels(self, filename):\r\n lf = LabelFile()\r\n\r\n def format_shape(s):\r\n data = s.other_data.copy()\r\n data.update(\r\n dict(\r\n label=s.label.encode(\"utf-8\") if PY2 else s.label,\r\n points=[(p.x(), p.y()) for p in s.points],\r\n group_id=s.group_id,\r\n description=s.description,\r\n shape_type=s.shape_type,\r\n flags=s.flags,\r\n mask=None if s.mask is None else utils.img_arr_to_b64(s.mask),\r\n )\r\n )\r\n return data\r\n\r\n shapes = [format_shape(item.shape()) for item in self.labelList]\r\n flags = {}\r\n for i in range(self.flag_widget.count()):\r\n item = self.flag_widget.item(i)\r\n key = item.text()\r\n flag = item.checkState() == Qt.Checked\r\n flags[key] = flag\r\n try:\r\n imagePath = osp.relpath(self.imagePath, osp.dirname(filename))\r\n imageData = self.imageData if self._config[\"store_data\"] else None\r\n"} +{"file_name": "7bc2ea96-3e11-44a1-b39c-a057ecdb289a.png", "code": " if osp.dirname(filename) and not osp.exists(osp.dirname(filename)):\r\n os.makedirs(osp.dirname(filename))\r\n lf.save(\r\n filename=filename,\r\n shapes=shapes,\r\n imagePath=imagePath,\r\n imageData=imageData,\r\n imageHeight=self.image.height(),\r\n imageWidth=self.image.width(),\r\n otherData=self.otherData,\r\n flags=flags,\r\n )\r\n self.labelFile = lf\r\n items = self.fileListWidget.findItems(self.imagePath, Qt.MatchExactly)\r\n if len(items) > 0:\r\n if len(items) != 1:\r\n raise RuntimeError(\"There are duplicate files.\")\r\n items[0].setCheckState(Qt.Checked)\r\n # disable allows next and previous image to proceed\r\n # self.filename = filename\r\n return True\r\n except LabelFileError as e:\r\n self.errorMessage(\r\n self.tr(\"Error saving label data\"), self.tr(\"%s\") % e\r\n )\r\n return False\r\n\r\n def duplicateSelectedShape(self):\r\n added_shapes = self.canvas.duplicateSelectedShapes()\r\n for shape in added_shapes:\r\n self.addLabel(shape)\r\n self.setDirty()\r\n\r\n def pasteSelectedShape(self):\r\n self.loadShapes(self._copied_shapes, replace=False)\r\n self.setDirty()\r\n\r\n def copySelectedShape(self):\r\n self._copied_shapes = [s.copy() for s in self.canvas.selectedShapes]\r\n self.actions.paste.setEnabled(len(self._copied_shapes) > 0)\r\n"} +{"file_name": "ca3f6c29-f487-4e16-9f54-684b02ca5560.png", "code": "\r\n def labelSelectionChanged(self):\r\n if self._noSelectionSlot:\r\n return\r\n if self.canvas.editing():\r\n selected_shapes = []\r\n for item in self.labelList.selectedItems():\r\n selected_shapes.append(item.shape())\r\n if selected_shapes:\r\n self.canvas.selectShapes(selected_shapes)\r\n else:\r\n self.canvas.deSelectShape()\r\n\r\n def labelItemChanged(self, item):\r\n shape = item.shape()\r\n self.canvas.setShapeVisible(shape, item.checkState() == Qt.Checked)\r\n\r\n def labelOrderChanged(self):\r\n self.setDirty()\r\n self.canvas.loadShapes([item.shape() for item in self.labelList])\r\n\r\n # Callback functions:\r\n\r\n def newShape(self):\r\n \"\"\"Pop-up and give focus to the label editor.\r\n\r\n position MUST be in global coordinates.\r\n \"\"\"\r\n items = self.uniqLabelList.selectedItems()\r\n text = None\r\n if items:\r\n text = items[0].data(Qt.UserRole)\r\n flags = {}\r\n group_id = None\r\n description = \"\"\r\n if self._config[\"display_label_popup\"] or not text:\r\n previous_text = self.labelDialog.edit.text()\r\n text, flags, group_id, description = self.labelDialog.popUp(text)\r\n if not text:\r\n self.labelDialog.edit.setText(previous_text)\r\n"} +{"file_name": "438f6362-62cf-4cbf-b46e-21df70b0ec28.png", "code": "\r\n if text and not self.validateLabel(text):\r\n self.errorMessage(\r\n self.tr(\"Invalid label\"),\r\n self.tr(\"Invalid label '{}' with validation type '{}'\").format(\r\n text, self._config[\"validate_label\"]\r\n ),\r\n )\r\n text = \"\"\r\n if text:\r\n self.labelList.clearSelection()\r\n shape = self.canvas.setLastLabel(text, flags)\r\n shape.group_id = group_id\r\n shape.description = description\r\n self.addLabel(shape)\r\n self.actions.editMode.setEnabled(True)\r\n self.actions.undoLastPoint.setEnabled(False)\r\n self.actions.undo.setEnabled(True)\r\n self.setDirty()\r\n else:\r\n self.canvas.undoLastLine()\r\n self.canvas.shapesBackups.pop()\r\n\r\n def scrollRequest(self, delta, orientation):\r\n units = -delta * 0.1 # natural scroll\r\n bar = self.scrollBars[orientation]\r\n value = bar.value() + bar.singleStep() * units\r\n self.setScroll(orientation, value)\r\n\r\n def setScroll(self, orientation, value):\r\n self.scrollBars[orientation].setValue(int(value))\r\n self.scroll_values[orientation][self.filename] = value\r\n\r\n def setZoom(self, value):\r\n self.actions.fitWidth.setChecked(False)\r\n self.actions.fitWindow.setChecked(False)\r\n self.zoomMode = self.MANUAL_ZOOM\r\n self.zoomWidget.setValue(value)\r\n self.zoom_values[self.filename] = (self.zoomMode, value)\r\n\r\n"} +{"file_name": "568fff60-5a43-4426-bbbe-98ba8912cf00.png", "code": " def addZoom(self, increment=1.1):\r\n zoom_value = self.zoomWidget.value() * increment\r\n if increment > 1:\r\n zoom_value = math.ceil(zoom_value)\r\n else:\r\n zoom_value = math.floor(zoom_value)\r\n self.setZoom(zoom_value)\r\n\r\n def zoomRequest(self, delta, pos):\r\n canvas_width_old = self.canvas.width()\r\n units = 1.1\r\n if delta < 0:\r\n units = 0.9\r\n self.addZoom(units)\r\n\r\n canvas_width_new = self.canvas.width()\r\n if canvas_width_old != canvas_width_new:\r\n canvas_scale_factor = canvas_width_new / canvas_width_old\r\n\r\n x_shift = round(pos.x() * canvas_scale_factor) - pos.x()\r\n y_shift = round(pos.y() * canvas_scale_factor) - pos.y()\r\n\r\n self.setScroll(\r\n Qt.Horizontal,\r\n self.scrollBars[Qt.Horizontal].value() + x_shift,\r\n )\r\n self.setScroll(\r\n Qt.Vertical,\r\n self.scrollBars[Qt.Vertical].value() + y_shift,\r\n )\r\n\r\n def setFitWindow(self, value=True):\r\n if value:\r\n self.actions.fitWidth.setChecked(False)\r\n self.zoomMode = self.FIT_WINDOW if value else self.MANUAL_ZOOM\r\n self.adjustScale()\r\n\r\n def setFitWidth(self, value=True):\r\n if value:\r\n self.actions.fitWindow.setChecked(False)\r\n"} +{"file_name": "fc260d13-6108-4844-a5bc-11cb1df7aac3.png", "code": " self.zoomMode = self.FIT_WIDTH if value else self.MANUAL_ZOOM\r\n self.adjustScale()\r\n\r\n def enableKeepPrevScale(self, enabled):\r\n self._config[\"keep_prev_scale\"] = enabled\r\n self.actions.keepPrevScale.setChecked(enabled)\r\n\r\n def onNewBrightnessContrast(self, qimage):\r\n self.canvas.loadPixmap(QtGui.QPixmap.fromImage(qimage), clear_shapes=False)\r\n\r\n def brightnessContrast(self, value):\r\n dialog = BrightnessContrastDialog(\r\n utils.img_data_to_pil(self.imageData),\r\n self.onNewBrightnessContrast,\r\n parent=self,\r\n )\r\n brightness, contrast = self.brightnessContrast_values.get(\r\n self.filename, (None, None)\r\n )\r\n if brightness is not None:\r\n dialog.slider_brightness.setValue(brightness)\r\n if contrast is not None:\r\n dialog.slider_contrast.setValue(contrast)\r\n dialog.exec_()\r\n\r\n brightness = dialog.slider_brightness.value()\r\n contrast = dialog.slider_contrast.value()\r\n self.brightnessContrast_values[self.filename] = (brightness, contrast)\r\n\r\n def togglePolygons(self, value):\r\n flag = value\r\n for item in self.labelList:\r\n if value is None:\r\n flag = item.checkState() == Qt.Unchecked\r\n item.setCheckState(Qt.Checked if flag else Qt.Unchecked)\r\n\r\n def loadFile(self, filename=None):\r\n \"\"\"Load the specified file, or the last opened file if None.\"\"\"\r\n # changing fileListWidget loads file\r\n if filename in self.imageList and (\r\n"} +{"file_name": "ba736239-4fe6-4f26-9291-298c215eac44.png", "code": " self.fileListWidget.currentRow() != self.imageList.index(filename)\r\n ):\r\n self.fileListWidget.setCurrentRow(self.imageList.index(filename))\r\n self.fileListWidget.repaint()\r\n return\r\n\r\n self.resetState()\r\n self.canvas.setEnabled(False)\r\n if filename is None:\r\n filename = self.settings.value(\"filename\", \"\")\r\n filename = str(filename)\r\n if not QtCore.QFile.exists(filename):\r\n self.errorMessage(\r\n self.tr(\"Error opening file\"),\r\n self.tr(\"No such file: %s\") % filename,\r\n )\r\n return False\r\n # assumes same name, but json extension\r\n self.status(str(self.tr(\"Loading %s...\")) % osp.basename(str(filename)))\r\n label_file = osp.splitext(filename)[0] + \".json\"\r\n if self.output_dir:\r\n label_file_without_path = osp.basename(label_file)\r\n label_file = osp.join(self.output_dir, label_file_without_path)\r\n if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(label_file):\r\n try:\r\n self.labelFile = LabelFile(label_file)\r\n except LabelFileError as e:\r\n self.errorMessage(\r\n self.tr(\"Error opening file\"),\r\n self.tr(\r\n \"
%s
\"\r\n \"Make sure %s is a valid label file.\"\r\n )\r\n % (e, label_file),\r\n )\r\n self.status(self.tr(\"Error reading %s\") % label_file)\r\n return False\r\n self.imageData = self.labelFile.imageData\r\n self.imagePath = osp.join(\r\n osp.dirname(label_file),\r\n"} +{"file_name": "b30b869a-b14c-48ed-9853-3db04a2ca61b.png", "code": " self.labelFile.imagePath,\r\n )\r\n self.otherData = self.labelFile.otherData\r\n else:\r\n self.imageData = LabelFile.load_image_file(filename)\r\n if self.imageData:\r\n self.imagePath = filename\r\n self.labelFile = None\r\n image = QtGui.QImage.fromData(self.imageData)\r\n\r\n if image.isNull():\r\n formats = [\r\n \"*.{}\".format(fmt.data().decode())\r\n for fmt in QtGui.QImageReader.supportedImageFormats()\r\n ]\r\n self.errorMessage(\r\n self.tr(\"Error opening file\"),\r\n self.tr(\r\n \"
Make sure {0} is a valid image file.
\"\r\n \"Supported image formats: {1}
%s
%s\" % (title, message)\r\n )\r\n\r\n def currentPath(self):\r\n return osp.dirname(str(self.filename)) if self.filename else \".\"\r\n\r\n def toggleKeepPrevMode(self):\r\n self._config[\"keep_prev\"] = not self._config[\"keep_prev\"]\r\n\r\n def removeSelectedPoint(self):\r\n self.canvas.removeSelectedPoint()\r\n self.canvas.update()\r\n if not self.canvas.hShape.points:\r\n self.canvas.deleteShape(self.canvas.hShape)\r\n self.remLabels([self.canvas.hShape])\r\n if self.noShapes():\r\n for action in self.actions.onShapesPresent:\r\n action.setEnabled(False)\r\n self.setDirty()\r\n\r\n def deleteSelectedShape(self):\r\n yes, no = QtWidgets.QMessageBox.Yes, QtWidgets.QMessageBox.No\r\n msg = self.tr(\r\n \"You are about to permanently delete {} polygons, \" \"proceed anyway?\"\r\n ).format(len(self.canvas.selectedShapes))\r\n if yes == QtWidgets.QMessageBox.warning(\r\n self, self.tr(\"Attention\"), msg, yes | no, yes\r\n ):\r\n self.remLabels(self.canvas.deleteSelected())\r\n self.setDirty()\r\n if self.noShapes():\r\n for action in self.actions.onShapesPresent:\r\n action.setEnabled(False)\r\n\r\n def copyShape(self):\r\n self.canvas.endMove(copy=True)\r\n for shape in self.canvas.selectedShapes:\r\n self.addLabel(shape)\r\n self.labelList.clearSelection()\r\n self.setDirty()\r\n"} +{"file_name": "abe1bb09-622a-4660-b1d5-238b743edde9.png", "code": "\r\n def moveShape(self):\r\n self.canvas.endMove(copy=False)\r\n self.setDirty()\r\n\r\n def openDirDialog(self, _value=False, dirpath=None):\r\n if not self.mayContinue():\r\n return\r\n\r\n defaultOpenDirPath = dirpath if dirpath else \".\"\r\n if self.lastOpenDir and osp.exists(self.lastOpenDir):\r\n defaultOpenDirPath = self.lastOpenDir\r\n else:\r\n defaultOpenDirPath = osp.dirname(self.filename) if self.filename else \".\"\r\n\r\n targetDirPath = str(\r\n QtWidgets.QFileDialog.getExistingDirectory(\r\n self,\r\n self.tr(\"%s - Open Directory\") % __appname__,\r\n defaultOpenDirPath,\r\n QtWidgets.QFileDialog.ShowDirsOnly\r\n | QtWidgets.QFileDialog.DontResolveSymlinks,\r\n )\r\n )\r\n self.importDirImages(targetDirPath)\r\n\r\n @property\r\n def imageList(self):\r\n lst = []\r\n for i in range(self.fileListWidget.count()):\r\n item = self.fileListWidget.item(i)\r\n lst.append(item.text())\r\n return lst\r\n\r\n def importDroppedImageFiles(self, imageFiles):\r\n extensions = [\r\n \".%s\" % fmt.data().decode().lower()\r\n for fmt in QtGui.QImageReader.supportedImageFormats()\r\n ]\r\n\r\n"} +{"file_name": "5ff963ad-588b-4ca7-913d-d9981ab2d3a8.png", "code": " self.filename = None\r\n for file in imageFiles:\r\n if file in self.imageList or not file.lower().endswith(tuple(extensions)):\r\n continue\r\n label_file = osp.splitext(file)[0] + \".json\"\r\n if self.output_dir:\r\n label_file_without_path = osp.basename(label_file)\r\n label_file = osp.join(self.output_dir, label_file_without_path)\r\n item = QtWidgets.QListWidgetItem(file)\r\n item.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)\r\n if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(label_file):\r\n item.setCheckState(Qt.Checked)\r\n else:\r\n item.setCheckState(Qt.Unchecked)\r\n self.fileListWidget.addItem(item)\r\n\r\n if len(self.imageList) > 1:\r\n self.actions.openNextImg.setEnabled(True)\r\n self.actions.openPrevImg.setEnabled(True)\r\n\r\n self.openNextImg()\r\n\r\n def importDirImages(self, dirpath, pattern=None, load=True):\r\n self.actions.openNextImg.setEnabled(True)\r\n self.actions.openPrevImg.setEnabled(True)\r\n\r\n if not self.mayContinue() or not dirpath:\r\n return\r\n\r\n self.lastOpenDir = dirpath\r\n self.filename = None\r\n self.fileListWidget.clear()\r\n\r\n filenames = self.scanAllImages(dirpath)\r\n if pattern:\r\n try:\r\n filenames = [f for f in filenames if re.search(pattern, f)]\r\n except re.error:\r\n pass\r\n for filename in filenames:\r\n"} +{"file_name": "e3a86501-d38e-4e0a-a8e9-18fc794e11ba.png", "code": " label_file = osp.splitext(filename)[0] + \".json\"\r\n if self.output_dir:\r\n label_file_without_path = osp.basename(label_file)\r\n label_file = osp.join(self.output_dir, label_file_without_path)\r\n item = QtWidgets.QListWidgetItem(filename)\r\n item.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable)\r\n if QtCore.QFile.exists(label_file) and LabelFile.is_label_file(label_file):\r\n item.setCheckState(Qt.Checked)\r\n else:\r\n item.setCheckState(Qt.Unchecked)\r\n self.fileListWidget.addItem(item)\r\n self.openNextImg(load=load)\r\n\r\n def scanAllImages(self, folderPath):\r\n extensions = [\r\n \".%s\" % fmt.data().decode().lower()\r\n for fmt in QtGui.QImageReader.supportedImageFormats()\r\n ]\r\n\r\n images = []\r\n for root, dirs, files in os.walk(folderPath):\r\n for file in files:\r\n if file.lower().endswith(tuple(extensions)):\r\n relativePath = os.path.normpath(osp.join(root, file))\r\n images.append(relativePath)\r\n images = natsort.os_sorted(images)\r\n return images\r\n"} +{"file_name": "9559f33a-e804-4926-821c-62b52d72ae25.png", "code": "import collections\r\nimport threading\r\n\r\nimport imgviz\r\nimport numpy as np\r\nimport onnxruntime\r\nimport skimage\r\n\r\nfrom ..logger import logger\r\nfrom . import _utils\r\n\r\n\r\nclass EfficientSam:\r\n def __init__(self, encoder_path, decoder_path):\r\n self._encoder_session = onnxruntime.InferenceSession(encoder_path)\r\n self._decoder_session = onnxruntime.InferenceSession(decoder_path)\r\n\r\n self._lock = threading.Lock()\r\n self._image_embedding_cache = collections.OrderedDict()\r\n\r\n self._thread = None\r\n\r\n def set_image(self, image: np.ndarray):\r\n with self._lock:\r\n self._image = image\r\n self._image_embedding = self._image_embedding_cache.get(\r\n self._image.tobytes()\r\n )\r\n\r\n if self._image_embedding is None:\r\n self._thread = threading.Thread(\r\n target=self._compute_and_cache_image_embedding\r\n )\r\n self._thread.start()\r\n\r\n def _compute_and_cache_image_embedding(self):\r\n with self._lock:\r\n logger.debug(\"Computing image embedding...\")\r\n image = imgviz.rgba2rgb(self._image)\r\n batched_images = image.transpose(2, 0, 1)[None].astype(np.float32) / 255.0\r\n"} +{"file_name": "ceaf765a-fe47-4459-ab9e-17411227bc8a.png", "code": " (self._image_embedding,) = self._encoder_session.run(\r\n output_names=None,\r\n input_feed={\"batched_images\": batched_images},\r\n )\r\n if len(self._image_embedding_cache) > 10:\r\n self._image_embedding_cache.popitem(last=False)\r\n self._image_embedding_cache[self._image.tobytes()] = self._image_embedding\r\n logger.debug(\"Done computing image embedding.\")\r\n\r\n def _get_image_embedding(self):\r\n if self._thread is not None:\r\n self._thread.join()\r\n self._thread = None\r\n with self._lock:\r\n return self._image_embedding\r\n\r\n def predict_mask_from_points(self, points, point_labels):\r\n return _compute_mask_from_points(\r\n decoder_session=self._decoder_session,\r\n image=self._image,\r\n image_embedding=self._get_image_embedding(),\r\n points=points,\r\n point_labels=point_labels,\r\n )\r\n\r\n def predict_polygon_from_points(self, points, point_labels):\r\n mask = self.predict_mask_from_points(points=points, point_labels=point_labels)\r\n return _utils.compute_polygon_from_mask(mask=mask)\r\n\r\n\r\ndef _compute_mask_from_points(\r\n decoder_session, image, image_embedding, points, point_labels\r\n):\r\n input_point = np.array(points, dtype=np.float32)\r\n input_label = np.array(point_labels, dtype=np.float32)\r\n\r\n # batch_size, num_queries, num_points, 2\r\n batched_point_coords = input_point[None, None, :, :]\r\n # batch_size, num_queries, num_points\r\n batched_point_labels = input_label[None, None, :]\r\n"} +{"file_name": "47e7043d-bf77-4c18-a011-90867b49ef11.png", "code": "\r\n decoder_inputs = {\r\n \"image_embeddings\": image_embedding,\r\n \"batched_point_coords\": batched_point_coords,\r\n \"batched_point_labels\": batched_point_labels,\r\n \"orig_im_size\": np.array(image.shape[:2], dtype=np.int64),\r\n }\r\n\r\n masks, _, _ = decoder_session.run(None, decoder_inputs)\r\n mask = masks[0, 0, 0, :, :] # (1, 1, 3, H, W) -> (H, W)\r\n mask = mask > 0.0\r\n\r\n MIN_SIZE_RATIO = 0.05\r\n skimage.morphology.remove_small_objects(\r\n mask, min_size=mask.sum() * MIN_SIZE_RATIO, out=mask\r\n )\r\n\r\n if 0:\r\n imgviz.io.imsave(\"mask.jpg\", imgviz.label2rgb(mask, imgviz.rgb2gray(image)))\r\n return mask\r\n"} +{"file_name": "46a6b6ec-10b5-4f6a-87bd-6337933883ad.png", "code": "import gdown\r\n\r\nfrom .efficient_sam import EfficientSam\r\nfrom .segment_anything_model import SegmentAnythingModel\r\n\r\n\r\nclass SegmentAnythingModelVitB(SegmentAnythingModel):\r\n name = \"SegmentAnything (speed)\"\r\n\r\n def __init__(self):\r\n super().__init__(\r\n encoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_b_01ec64.quantized.encoder.onnx\", # NOQA\r\n md5=\"80fd8d0ab6c6ae8cb7b3bd5f368a752c\",\r\n ),\r\n decoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_b_01ec64.quantized.decoder.onnx\", # NOQA\r\n md5=\"4253558be238c15fc265a7a876aaec82\",\r\n ),\r\n )\r\n\r\n\r\nclass SegmentAnythingModelVitL(SegmentAnythingModel):\r\n name = \"SegmentAnything (balanced)\"\r\n\r\n def __init__(self):\r\n super().__init__(\r\n encoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_l_0b3195.quantized.encoder.onnx\", # NOQA\r\n md5=\"080004dc9992724d360a49399d1ee24b\",\r\n ),\r\n decoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_l_0b3195.quantized.decoder.onnx\", # NOQA\r\n md5=\"851b7faac91e8e23940ee1294231d5c7\",\r\n ),\r\n )\r\n\r\n\r\nclass SegmentAnythingModelVitH(SegmentAnythingModel):\r\n name = \"SegmentAnything (accuracy)\"\r\n"} +{"file_name": "03f7813e-73cd-4790-afd4-d3f043053b77.png", "code": "\r\n def __init__(self):\r\n super().__init__(\r\n encoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_h_4b8939.quantized.encoder.onnx\", # NOQA\r\n md5=\"958b5710d25b198d765fb6b94798f49e\",\r\n ),\r\n decoder_path=gdown.cached_download(\r\n url=\"https://github.com/wkentaro/labelme/releases/download/sam-20230416/sam_vit_h_4b8939.quantized.decoder.onnx\", # NOQA\r\n md5=\"a997a408347aa081b17a3ffff9f42a80\",\r\n ),\r\n )\r\n\r\n\r\nclass EfficientSamVitT(EfficientSam):\r\n name = \"EfficientSam (speed)\"\r\n\r\n def __init__(self):\r\n super().__init__(\r\n encoder_path=gdown.cached_download(\r\n url=\"https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vitt_encoder.onnx\", # NOQA\r\n md5=\"2d4a1303ff0e19fe4a8b8ede69c2f5c7\",\r\n ),\r\n decoder_path=gdown.cached_download(\r\n url=\"https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vitt_decoder.onnx\", # NOQA\r\n md5=\"be3575ca4ed9b35821ac30991ab01843\",\r\n ),\r\n )\r\n\r\n\r\nclass EfficientSamVitS(EfficientSam):\r\n name = \"EfficientSam (accuracy)\"\r\n\r\n def __init__(self):\r\n super().__init__(\r\n encoder_path=gdown.cached_download(\r\n url=\"https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vits_encoder.onnx\", # NOQA\r\n md5=\"7d97d23e8e0847d4475ca7c9f80da96d\",\r\n ),\r\n decoder_path=gdown.cached_download(\r\n"} +{"file_name": "f53fbf5b-a7ef-4f5c-ae48-a7d61ac21d62.png", "code": " url=\"https://github.com/labelmeai/efficient-sam/releases/download/onnx-models-20231225/efficient_sam_vits_decoder.onnx\", # NOQA\r\n md5=\"d9372f4a7bbb1a01d236b0508300b994\",\r\n ),\r\n )\r\n\r\n\r\nMODELS = [\r\n SegmentAnythingModelVitB,\r\n SegmentAnythingModelVitL,\r\n SegmentAnythingModelVitH,\r\n EfficientSamVitT,\r\n EfficientSamVitS,\r\n]\r\n"} +{"file_name": "050b605a-f5b2-4d2e-9f28-778c333cffde.png", "code": "import imgviz\r\nimport numpy as np\r\nimport skimage\r\n\r\nfrom labelme.logger import logger\r\n\r\n\r\ndef _get_contour_length(contour):\r\n contour_start = contour\r\n contour_end = np.r_[contour[1:], contour[0:1]]\r\n return np.linalg.norm(contour_end - contour_start, axis=1).sum()\r\n\r\n\r\ndef compute_polygon_from_mask(mask):\r\n contours = skimage.measure.find_contours(np.pad(mask, pad_width=1))\r\n if len(contours) == 0:\r\n logger.warning(\"No contour found, so returning empty polygon.\")\r\n return np.empty((0, 2), dtype=np.float32)\r\n\r\n contour = max(contours, key=_get_contour_length)\r\n POLYGON_APPROX_TOLERANCE = 0.004\r\n polygon = skimage.measure.approximate_polygon(\r\n coords=contour,\r\n tolerance=np.ptp(contour, axis=0).max() * POLYGON_APPROX_TOLERANCE,\r\n )\r\n polygon = np.clip(polygon, (0, 0), (mask.shape[0] - 1, mask.shape[1] - 1))\r\n polygon = polygon[:-1] # drop last point that is duplicate of first point\r\n\r\n if 0:\r\n import PIL.Image\r\n\r\n image_pil = PIL.Image.fromarray(imgviz.gray2rgb(imgviz.bool2ubyte(mask)))\r\n imgviz.draw.line_(image_pil, yx=polygon, fill=(0, 255, 0))\r\n for point in polygon:\r\n imgviz.draw.circle_(image_pil, center=point, diameter=10, fill=(0, 255, 0))\r\n imgviz.io.imsave(\"contour.jpg\", np.asarray(image_pil))\r\n\r\n return polygon[:, ::-1] # yx -> xy\r\n"} +{"file_name": "3f396f02-2909-4ed9-a310-42ed4b992ad6.png", "code": "import collections\r\nimport threading\r\n\r\nimport imgviz\r\nimport numpy as np\r\nimport onnxruntime\r\nimport skimage\r\n\r\nfrom ..logger import logger\r\nfrom . import _utils\r\n\r\n\r\nclass SegmentAnythingModel:\r\n def __init__(self, encoder_path, decoder_path):\r\n self._image_size = 1024\r\n\r\n self._encoder_session = onnxruntime.InferenceSession(encoder_path)\r\n self._decoder_session = onnxruntime.InferenceSession(decoder_path)\r\n\r\n self._lock = threading.Lock()\r\n self._image_embedding_cache = collections.OrderedDict()\r\n\r\n self._thread = None\r\n\r\n def set_image(self, image: np.ndarray):\r\n with self._lock:\r\n self._image = image\r\n self._image_embedding = self._image_embedding_cache.get(\r\n self._image.tobytes()\r\n )\r\n\r\n if self._image_embedding is None:\r\n self._thread = threading.Thread(\r\n target=self._compute_and_cache_image_embedding\r\n )\r\n self._thread.start()\r\n\r\n def _compute_and_cache_image_embedding(self):\r\n with self._lock:\r\n logger.debug(\"Computing image embedding...\")\r\n"} +{"file_name": "fe3ef7b2-05ce-47ee-b873-af33b72a775d.png", "code": " self._image_embedding = _compute_image_embedding(\r\n image_size=self._image_size,\r\n encoder_session=self._encoder_session,\r\n image=self._image,\r\n )\r\n if len(self._image_embedding_cache) > 10:\r\n self._image_embedding_cache.popitem(last=False)\r\n self._image_embedding_cache[self._image.tobytes()] = self._image_embedding\r\n logger.debug(\"Done computing image embedding.\")\r\n\r\n def _get_image_embedding(self):\r\n if self._thread is not None:\r\n self._thread.join()\r\n self._thread = None\r\n with self._lock:\r\n return self._image_embedding\r\n\r\n def predict_mask_from_points(self, points, point_labels):\r\n return _compute_mask_from_points(\r\n image_size=self._image_size,\r\n decoder_session=self._decoder_session,\r\n image=self._image,\r\n image_embedding=self._get_image_embedding(),\r\n points=points,\r\n point_labels=point_labels,\r\n )\r\n\r\n def predict_polygon_from_points(self, points, point_labels):\r\n mask = self.predict_mask_from_points(points=points, point_labels=point_labels)\r\n return _utils.compute_polygon_from_mask(mask=mask)\r\n\r\n\r\ndef _compute_scale_to_resize_image(image_size, image):\r\n height, width = image.shape[:2]\r\n if width > height:\r\n scale = image_size / width\r\n new_height = int(round(height * scale))\r\n new_width = image_size\r\n else:\r\n scale = image_size / height\r\n"} +{"file_name": "4f13d4d4-cc68-4521-8e2c-83d743eb88a3.png", "code": " new_height = image_size\r\n new_width = int(round(width * scale))\r\n return scale, new_height, new_width\r\n\r\n\r\ndef _resize_image(image_size, image):\r\n scale, new_height, new_width = _compute_scale_to_resize_image(\r\n image_size=image_size, image=image\r\n )\r\n scaled_image = imgviz.resize(\r\n image,\r\n height=new_height,\r\n width=new_width,\r\n backend=\"pillow\",\r\n ).astype(np.float32)\r\n return scale, scaled_image\r\n\r\n\r\ndef _compute_image_embedding(image_size, encoder_session, image):\r\n image = imgviz.asrgb(image)\r\n\r\n scale, x = _resize_image(image_size, image)\r\n x = (x - np.array([123.675, 116.28, 103.53], dtype=np.float32)) / np.array(\r\n [58.395, 57.12, 57.375], dtype=np.float32\r\n )\r\n x = np.pad(\r\n x,\r\n (\r\n (0, image_size - x.shape[0]),\r\n (0, image_size - x.shape[1]),\r\n (0, 0),\r\n ),\r\n )\r\n x = x.transpose(2, 0, 1)[None, :, :, :]\r\n\r\n output = encoder_session.run(output_names=None, input_feed={\"x\": x})\r\n image_embedding = output[0]\r\n\r\n return image_embedding\r\n\r\n"} +{"file_name": "acdd59e6-f24e-4c75-af1a-6ef9049ed24d.png", "code": "\r\ndef _compute_mask_from_points(\r\n image_size, decoder_session, image, image_embedding, points, point_labels\r\n):\r\n input_point = np.array(points, dtype=np.float32)\r\n input_label = np.array(point_labels, dtype=np.int32)\r\n\r\n onnx_coord = np.concatenate([input_point, np.array([[0.0, 0.0]])], axis=0)[\r\n None, :, :\r\n ]\r\n onnx_label = np.concatenate([input_label, np.array([-1])], axis=0)[None, :].astype(\r\n np.float32\r\n )\r\n\r\n scale, new_height, new_width = _compute_scale_to_resize_image(\r\n image_size=image_size, image=image\r\n )\r\n onnx_coord = (\r\n onnx_coord.astype(float)\r\n * (new_width / image.shape[1], new_height / image.shape[0])\r\n ).astype(np.float32)\r\n\r\n onnx_mask_input = np.zeros((1, 1, 256, 256), dtype=np.float32)\r\n onnx_has_mask_input = np.array([-1], dtype=np.float32)\r\n\r\n decoder_inputs = {\r\n \"image_embeddings\": image_embedding,\r\n \"point_coords\": onnx_coord,\r\n \"point_labels\": onnx_label,\r\n \"mask_input\": onnx_mask_input,\r\n \"has_mask_input\": onnx_has_mask_input,\r\n \"orig_im_size\": np.array(image.shape[:2], dtype=np.float32),\r\n }\r\n\r\n masks, _, _ = decoder_session.run(None, decoder_inputs)\r\n mask = masks[0, 0] # (1, 1, H, W) -> (H, W)\r\n mask = mask > 0.0\r\n\r\n MIN_SIZE_RATIO = 0.05\r\n skimage.morphology.remove_small_objects(\r\n"} +{"file_name": "f7851864-dcc7-41dc-9472-600a871ff166.png", "code": " mask, min_size=mask.sum() * MIN_SIZE_RATIO, out=mask\r\n )\r\n\r\n if 0:\r\n imgviz.io.imsave(\"mask.jpg\", imgviz.label2rgb(mask, imgviz.rgb2gray(image)))\r\n return mask\r\n"} +{"file_name": "7f9a0546-fa1e-47f3-a108-038d14244833.png", "code": "import os.path as osp\r\nimport shutil\r\n\r\nimport yaml\r\n\r\nfrom labelme.logger import logger\r\n\r\nhere = osp.dirname(osp.abspath(__file__))\r\n\r\n\r\ndef update_dict(target_dict, new_dict, validate_item=None):\r\n for key, value in new_dict.items():\r\n if validate_item:\r\n validate_item(key, value)\r\n if key not in target_dict:\r\n logger.warn(\"Skipping unexpected key in config: {}\".format(key))\r\n continue\r\n if isinstance(target_dict[key], dict) and isinstance(value, dict):\r\n update_dict(target_dict[key], value, validate_item=validate_item)\r\n else:\r\n target_dict[key] = value\r\n\r\n\r\n# -----------------------------------------------------------------------------\r\n\r\n\r\ndef get_default_config():\r\n config_file = osp.join(here, \"default_config.yaml\")\r\n with open(config_file) as f:\r\n config = yaml.safe_load(f)\r\n\r\n # save default config to ~/.labelmerc\r\n user_config_file = osp.join(osp.expanduser(\"~\"), \".labelmerc\")\r\n if not osp.exists(user_config_file):\r\n try:\r\n shutil.copy(config_file, user_config_file)\r\n except Exception:\r\n logger.warn(\"Failed to save config: {}\".format(user_config_file))\r\n\r\n return config\r\n"} +{"file_name": "1111908e-c4b2-409a-9c31-7f78587ffc1d.png", "code": "\r\n\r\ndef validate_config_item(key, value):\r\n if key == \"validate_label\" and value not in [None, \"exact\"]:\r\n raise ValueError(\r\n \"Unexpected value for config key 'validate_label': {}\".format(value)\r\n )\r\n if key == \"shape_color\" and value not in [None, \"auto\", \"manual\"]:\r\n raise ValueError(\r\n \"Unexpected value for config key 'shape_color': {}\".format(value)\r\n )\r\n if key == \"labels\" and value is not None and len(value) != len(set(value)):\r\n raise ValueError(\r\n \"Duplicates are detected for config key 'labels': {}\".format(value)\r\n )\r\n\r\n\r\ndef get_config(config_file_or_yaml=None, config_from_args=None):\r\n # 1. default config\r\n config = get_default_config()\r\n\r\n # 2. specified as file or yaml\r\n if config_file_or_yaml is not None:\r\n config_from_yaml = yaml.safe_load(config_file_or_yaml)\r\n if not isinstance(config_from_yaml, dict):\r\n with open(config_from_yaml) as f:\r\n logger.info(\"Loading config file from: {}\".format(config_from_yaml))\r\n config_from_yaml = yaml.safe_load(f)\r\n update_dict(config, config_from_yaml, validate_item=validate_config_item)\r\n\r\n # 3. command line argument or specified config file\r\n if config_from_args is not None:\r\n update_dict(config, config_from_args, validate_item=validate_config_item)\r\n\r\n return config\r\n"} +{"file_name": "b09af6e8-c025-46a2-bb54-7a0c93da649a.png", "code": "# -*- encoding: utf-8 -*-\r\n\r\nimport html\r\n\r\nfrom qtpy import QtWidgets\r\nfrom qtpy.QtCore import Qt\r\n\r\nfrom .escapable_qlist_widget import EscapableQListWidget\r\n\r\n\r\nclass UniqueLabelQListWidget(EscapableQListWidget):\r\n def mousePressEvent(self, event):\r\n super(UniqueLabelQListWidget, self).mousePressEvent(event)\r\n if not self.indexAt(event.pos()).isValid():\r\n self.clearSelection()\r\n\r\n def findItemByLabel(self, label):\r\n for row in range(self.count()):\r\n item = self.item(row)\r\n if item.data(Qt.UserRole) == label:\r\n return item\r\n\r\n def createItemFromLabel(self, label):\r\n if self.findItemByLabel(label):\r\n raise ValueError(\"Item for label '{}' already exists\".format(label))\r\n\r\n item = QtWidgets.QListWidgetItem()\r\n item.setData(Qt.UserRole, label)\r\n return item\r\n\r\n def setItemLabel(self, item, label, color=None):\r\n qlabel = QtWidgets.QLabel()\r\n if color is None:\r\n qlabel.setText(\"{}\".format(label))\r\n else:\r\n qlabel.setText(\r\n '{} \u25cf'.format(\r\n html.escape(label), *color\r\n )\r\n )\r\n"} +{"file_name": "733d1931-73c4-4ab1-9e00-76e34ad98a6d.png", "code": " qlabel.setAlignment(Qt.AlignBottom)\r\n\r\n item.setSizeHint(qlabel.sizeHint())\r\n\r\n self.setItemWidget(item, qlabel)\r\n"} +{"file_name": "f26b85ab-2af3-45a0-9af3-2edf94c7d7a5.png", "code": "from qtpy import QtCore\r\nfrom qtpy import QtWidgets\r\n\r\n\r\nclass ToolBar(QtWidgets.QToolBar):\r\n def __init__(self, title):\r\n super(ToolBar, self).__init__(title)\r\n layout = self.layout()\r\n m = (0, 0, 0, 0)\r\n layout.setSpacing(0)\r\n layout.setContentsMargins(*m)\r\n self.setContentsMargins(*m)\r\n self.setWindowFlags(self.windowFlags() | QtCore.Qt.FramelessWindowHint)\r\n\r\n def addAction(self, action):\r\n if isinstance(action, QtWidgets.QWidgetAction):\r\n return super(ToolBar, self).addAction(action)\r\n btn = QtWidgets.QToolButton()\r\n btn.setDefaultAction(action)\r\n btn.setToolButtonStyle(self.toolButtonStyle())\r\n self.addWidget(btn)\r\n\r\n # center align\r\n for i in range(self.layout().count()):\r\n if isinstance(self.layout().itemAt(i).widget(), QtWidgets.QToolButton):\r\n self.layout().itemAt(i).setAlignment(QtCore.Qt.AlignCenter)\r\n"} +{"file_name": "2d89225b-e2f6-409d-9cfe-a9c403ed8e93.png", "code": "import re\r\n\r\nfrom qtpy import QT_VERSION\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\n\r\nimport labelme.utils\r\nfrom labelme.logger import logger\r\n\r\nQT5 = QT_VERSION[0] == \"5\"\r\n\r\n\r\n# TODO(unknown):\r\n# - Calculate optimal position so as not to go out of screen area.\r\n\r\n\r\nclass LabelQLineEdit(QtWidgets.QLineEdit):\r\n def setListWidget(self, list_widget):\r\n self.list_widget = list_widget\r\n\r\n def keyPressEvent(self, e):\r\n if e.key() in [QtCore.Qt.Key_Up, QtCore.Qt.Key_Down]:\r\n self.list_widget.keyPressEvent(e)\r\n else:\r\n super(LabelQLineEdit, self).keyPressEvent(e)\r\n\r\n\r\nclass LabelDialog(QtWidgets.QDialog):\r\n def __init__(\r\n self,\r\n text=\"Enter object label\",\r\n parent=None,\r\n labels=None,\r\n sort_labels=True,\r\n show_text_field=True,\r\n completion=\"startswith\",\r\n fit_to_content=None,\r\n flags=None,\r\n ):\r\n"} +{"file_name": "9178c3b8-28c6-41a8-9305-659150bf6db4.png", "code": " if fit_to_content is None:\r\n fit_to_content = {\"row\": False, \"column\": True}\r\n self._fit_to_content = fit_to_content\r\n\r\n super(LabelDialog, self).__init__(parent)\r\n self.edit = LabelQLineEdit()\r\n self.edit.setPlaceholderText(text)\r\n self.edit.setValidator(labelme.utils.labelValidator())\r\n self.edit.editingFinished.connect(self.postProcess)\r\n if flags:\r\n self.edit.textChanged.connect(self.updateFlags)\r\n self.edit_group_id = QtWidgets.QLineEdit()\r\n self.edit_group_id.setPlaceholderText(\"Group ID\")\r\n self.edit_group_id.setValidator(\r\n QtGui.QRegExpValidator(QtCore.QRegExp(r\"\\d*\"), None)\r\n )\r\n layout = QtWidgets.QVBoxLayout()\r\n if show_text_field:\r\n layout_edit = QtWidgets.QHBoxLayout()\r\n layout_edit.addWidget(self.edit, 6)\r\n layout_edit.addWidget(self.edit_group_id, 2)\r\n layout.addLayout(layout_edit)\r\n # buttons\r\n self.buttonBox = bb = QtWidgets.QDialogButtonBox(\r\n QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel,\r\n QtCore.Qt.Horizontal,\r\n self,\r\n )\r\n bb.button(bb.Ok).setIcon(labelme.utils.newIcon(\"done\"))\r\n bb.button(bb.Cancel).setIcon(labelme.utils.newIcon(\"undo\"))\r\n bb.accepted.connect(self.validate)\r\n bb.rejected.connect(self.reject)\r\n layout.addWidget(bb)\r\n # label_list\r\n self.labelList = QtWidgets.QListWidget()\r\n if self._fit_to_content[\"row\"]:\r\n self.labelList.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)\r\n if self._fit_to_content[\"column\"]:\r\n self.labelList.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)\r\n self._sort_labels = sort_labels\r\n"} +{"file_name": "6f882e89-7fc7-4cd7-aad4-4ddf26e8bf00.png", "code": " if labels:\r\n self.labelList.addItems(labels)\r\n if self._sort_labels:\r\n self.labelList.sortItems()\r\n else:\r\n self.labelList.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)\r\n self.labelList.currentItemChanged.connect(self.labelSelected)\r\n self.labelList.itemDoubleClicked.connect(self.labelDoubleClicked)\r\n self.labelList.setFixedHeight(150)\r\n self.edit.setListWidget(self.labelList)\r\n layout.addWidget(self.labelList)\r\n # label_flags\r\n if flags is None:\r\n flags = {}\r\n self._flags = flags\r\n self.flagsLayout = QtWidgets.QVBoxLayout()\r\n self.resetFlags()\r\n layout.addItem(self.flagsLayout)\r\n self.edit.textChanged.connect(self.updateFlags)\r\n # text edit\r\n self.editDescription = QtWidgets.QTextEdit()\r\n self.editDescription.setPlaceholderText(\"Label description\")\r\n self.editDescription.setFixedHeight(50)\r\n layout.addWidget(self.editDescription)\r\n self.setLayout(layout)\r\n # completion\r\n completer = QtWidgets.QCompleter()\r\n if not QT5 and completion != \"startswith\":\r\n logger.warn(\r\n \"completion other than 'startswith' is only \"\r\n \"supported with Qt5. Using 'startswith'\"\r\n )\r\n completion = \"startswith\"\r\n if completion == \"startswith\":\r\n completer.setCompletionMode(QtWidgets.QCompleter.InlineCompletion)\r\n # Default settings.\r\n # completer.setFilterMode(QtCore.Qt.MatchStartsWith)\r\n elif completion == \"contains\":\r\n completer.setCompletionMode(QtWidgets.QCompleter.PopupCompletion)\r\n completer.setFilterMode(QtCore.Qt.MatchContains)\r\n"} +{"file_name": "8bf91f7d-6c8c-4597-834d-8850d423613f.png", "code": " else:\r\n raise ValueError(\"Unsupported completion: {}\".format(completion))\r\n completer.setModel(self.labelList.model())\r\n self.edit.setCompleter(completer)\r\n\r\n def addLabelHistory(self, label):\r\n if self.labelList.findItems(label, QtCore.Qt.MatchExactly):\r\n return\r\n self.labelList.addItem(label)\r\n if self._sort_labels:\r\n self.labelList.sortItems()\r\n\r\n def labelSelected(self, item):\r\n self.edit.setText(item.text())\r\n\r\n def validate(self):\r\n text = self.edit.text()\r\n if hasattr(text, \"strip\"):\r\n text = text.strip()\r\n else:\r\n text = text.trimmed()\r\n if text:\r\n self.accept()\r\n\r\n def labelDoubleClicked(self, item):\r\n self.validate()\r\n\r\n def postProcess(self):\r\n text = self.edit.text()\r\n if hasattr(text, \"strip\"):\r\n text = text.strip()\r\n else:\r\n text = text.trimmed()\r\n self.edit.setText(text)\r\n\r\n def updateFlags(self, label_new):\r\n # keep state of shared flags\r\n flags_old = self.getFlags()\r\n\r\n flags_new = {}\r\n"} +{"file_name": "3617df8d-3303-42e6-849d-0c2c6cd99177.png", "code": " for pattern, keys in self._flags.items():\r\n if re.match(pattern, label_new):\r\n for key in keys:\r\n flags_new[key] = flags_old.get(key, False)\r\n self.setFlags(flags_new)\r\n\r\n def deleteFlags(self):\r\n for i in reversed(range(self.flagsLayout.count())):\r\n item = self.flagsLayout.itemAt(i).widget()\r\n self.flagsLayout.removeWidget(item)\r\n item.setParent(None)\r\n\r\n def resetFlags(self, label=\"\"):\r\n flags = {}\r\n for pattern, keys in self._flags.items():\r\n if re.match(pattern, label):\r\n for key in keys:\r\n flags[key] = False\r\n self.setFlags(flags)\r\n\r\n def setFlags(self, flags):\r\n self.deleteFlags()\r\n for key in flags:\r\n item = QtWidgets.QCheckBox(key, self)\r\n item.setChecked(flags[key])\r\n self.flagsLayout.addWidget(item)\r\n item.show()\r\n\r\n def getFlags(self):\r\n flags = {}\r\n for i in range(self.flagsLayout.count()):\r\n item = self.flagsLayout.itemAt(i).widget()\r\n flags[item.text()] = item.isChecked()\r\n return flags\r\n\r\n def getGroupId(self):\r\n group_id = self.edit_group_id.text()\r\n if group_id:\r\n return int(group_id)\r\n return None\r\n"} +{"file_name": "083b79f7-38a9-4cf5-845d-13eb5536eb1f.png", "code": "\r\n def popUp(self, text=None, move=True, flags=None, group_id=None, description=None):\r\n if self._fit_to_content[\"row\"]:\r\n self.labelList.setMinimumHeight(\r\n self.labelList.sizeHintForRow(0) * self.labelList.count() + 2\r\n )\r\n if self._fit_to_content[\"column\"]:\r\n self.labelList.setMinimumWidth(self.labelList.sizeHintForColumn(0) + 2)\r\n # if text is None, the previous label in self.edit is kept\r\n if text is None:\r\n text = self.edit.text()\r\n # description is always initialized by empty text c.f., self.edit.text\r\n if description is None:\r\n description = \"\"\r\n self.editDescription.setPlainText(description)\r\n if flags:\r\n self.setFlags(flags)\r\n else:\r\n self.resetFlags(text)\r\n self.edit.setText(text)\r\n self.edit.setSelection(0, len(text))\r\n if group_id is None:\r\n self.edit_group_id.clear()\r\n else:\r\n self.edit_group_id.setText(str(group_id))\r\n items = self.labelList.findItems(text, QtCore.Qt.MatchFixedString)\r\n if items:\r\n if len(items) != 1:\r\n logger.warning(\"Label list has duplicate '{}'\".format(text))\r\n self.labelList.setCurrentItem(items[0])\r\n row = self.labelList.row(items[0])\r\n self.edit.completer().setCurrentRow(row)\r\n self.edit.setFocus(QtCore.Qt.PopupFocusReason)\r\n if move:\r\n self.move(QtGui.QCursor.pos())\r\n if self.exec_():\r\n return (\r\n self.edit.text(),\r\n self.getFlags(),\r\n self.getGroupId(),\r\n"} +{"file_name": "6ee42c71-6885-407c-bfdc-73e480070a67.png", "code": " self.editDescription.toPlainText(),\r\n )\r\n else:\r\n return None, None, None, None\r\n"} +{"file_name": "5298e884-00c3-44d7-a14e-72ce8838a731.png", "code": "# flake8: noqa\r\n\r\nfrom .brightness_contrast_dialog import BrightnessContrastDialog\r\n\r\nfrom .canvas import Canvas\r\n\r\nfrom .color_dialog import ColorDialog\r\n\r\nfrom .file_dialog_preview import FileDialogPreview\r\n\r\nfrom .label_dialog import LabelDialog\r\nfrom .label_dialog import LabelQLineEdit\r\n\r\nfrom .label_list_widget import LabelListWidget\r\nfrom .label_list_widget import LabelListWidgetItem\r\n\r\nfrom .tool_bar import ToolBar\r\n\r\nfrom .unique_label_qlist_widget import UniqueLabelQListWidget\r\n\r\nfrom .zoom_widget import ZoomWidget\r\n"} +{"file_name": "d18e7386-419f-465d-9f0d-3ca6f9dc62e3.png", "code": "from qtpy import QtWidgets\r\nfrom qtpy.QtCore import Qt\r\n\r\n\r\nclass EscapableQListWidget(QtWidgets.QListWidget):\r\n def keyPressEvent(self, event):\r\n super(EscapableQListWidget, self).keyPressEvent(event)\r\n if event.key() == Qt.Key_Escape:\r\n self.clearSelection()\r\n"} +{"file_name": "8a1404eb-ad33-4ec9-8356-ac89bbf9c397.png", "code": "import imgviz\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\n\r\nimport labelme.ai\r\nimport labelme.utils\r\nfrom labelme import QT5\r\nfrom labelme.logger import logger\r\nfrom labelme.shape import Shape\r\n\r\n# TODO(unknown):\r\n# - [maybe] Find optimal epsilon value.\r\n\r\n\r\nCURSOR_DEFAULT = QtCore.Qt.ArrowCursor\r\nCURSOR_POINT = QtCore.Qt.PointingHandCursor\r\nCURSOR_DRAW = QtCore.Qt.CrossCursor\r\nCURSOR_MOVE = QtCore.Qt.ClosedHandCursor\r\nCURSOR_GRAB = QtCore.Qt.OpenHandCursor\r\n\r\nMOVE_SPEED = 5.0\r\n\r\n\r\nclass Canvas(QtWidgets.QWidget):\r\n zoomRequest = QtCore.Signal(int, QtCore.QPoint)\r\n scrollRequest = QtCore.Signal(int, int)\r\n newShape = QtCore.Signal()\r\n selectionChanged = QtCore.Signal(list)\r\n shapeMoved = QtCore.Signal()\r\n drawingPolygon = QtCore.Signal(bool)\r\n vertexSelected = QtCore.Signal(bool)\r\n\r\n CREATE, EDIT = 0, 1\r\n\r\n # polygon, rectangle, line, or point\r\n _createMode = \"polygon\"\r\n\r\n _fill_drawing = False\r\n\r\n"} +{"file_name": "2a261a1c-3d97-4d07-97f7-0c330c16cce9.png", "code": " def __init__(self, *args, **kwargs):\r\n self.epsilon = kwargs.pop(\"epsilon\", 10.0)\r\n self.double_click = kwargs.pop(\"double_click\", \"close\")\r\n if self.double_click not in [None, \"close\"]:\r\n raise ValueError(\r\n \"Unexpected value for double_click event: {}\".format(self.double_click)\r\n )\r\n self.num_backups = kwargs.pop(\"num_backups\", 10)\r\n self._crosshair = kwargs.pop(\r\n \"crosshair\",\r\n {\r\n \"polygon\": False,\r\n \"rectangle\": True,\r\n \"circle\": False,\r\n \"line\": False,\r\n \"point\": False,\r\n \"linestrip\": False,\r\n \"ai_polygon\": False,\r\n \"ai_mask\": False,\r\n },\r\n )\r\n super(Canvas, self).__init__(*args, **kwargs)\r\n # Initialise local state.\r\n self.mode = self.EDIT\r\n self.shapes = []\r\n self.shapesBackups = []\r\n self.current = None\r\n self.selectedShapes = [] # save the selected shapes here\r\n self.selectedShapesCopy = []\r\n # self.line represents:\r\n # - createMode == 'polygon': edge from last point to current\r\n # - createMode == 'rectangle': diagonal line of the rectangle\r\n # - createMode == 'line': the line\r\n # - createMode == 'point': the point\r\n self.line = Shape()\r\n self.prevPoint = QtCore.QPoint()\r\n self.prevMovePoint = QtCore.QPoint()\r\n self.offsets = QtCore.QPoint(), QtCore.QPoint()\r\n self.scale = 1.0\r\n self.pixmap = QtGui.QPixmap()\r\n"} +{"file_name": "72ebd5c4-e9f1-4b8b-8ec5-b25dd05c5262.png", "code": " self.visible = {}\r\n self._hideBackround = False\r\n self.hideBackround = False\r\n self.hShape = None\r\n self.prevhShape = None\r\n self.hVertex = None\r\n self.prevhVertex = None\r\n self.hEdge = None\r\n self.prevhEdge = None\r\n self.movingShape = False\r\n self.snapping = True\r\n self.hShapeIsSelected = False\r\n self._painter = QtGui.QPainter()\r\n self._cursor = CURSOR_DEFAULT\r\n # Menus:\r\n # 0: right-click without selection and dragging of shapes\r\n # 1: right-click with selection and dragging of shapes\r\n self.menus = (QtWidgets.QMenu(), QtWidgets.QMenu())\r\n # Set widget options.\r\n self.setMouseTracking(True)\r\n self.setFocusPolicy(QtCore.Qt.WheelFocus)\r\n\r\n self._ai_model = None\r\n\r\n def fillDrawing(self):\r\n return self._fill_drawing\r\n\r\n def setFillDrawing(self, value):\r\n self._fill_drawing = value\r\n\r\n @property\r\n def createMode(self):\r\n return self._createMode\r\n\r\n @createMode.setter\r\n def createMode(self, value):\r\n if value not in [\r\n \"polygon\",\r\n \"rectangle\",\r\n \"circle\",\r\n"} +{"file_name": "2b3a1b85-13b3-421c-9d8a-14581118e791.png", "code": " \"line\",\r\n \"point\",\r\n \"linestrip\",\r\n \"ai_polygon\",\r\n \"ai_mask\",\r\n ]:\r\n raise ValueError(\"Unsupported createMode: %s\" % value)\r\n self._createMode = value\r\n\r\n def initializeAiModel(self, name):\r\n if name not in [model.name for model in labelme.ai.MODELS]:\r\n raise ValueError(\"Unsupported ai model: %s\" % name)\r\n model = [model for model in labelme.ai.MODELS if model.name == name][0]\r\n\r\n if self._ai_model is not None and self._ai_model.name == model.name:\r\n logger.debug(\"AI model is already initialized: %r\" % model.name)\r\n else:\r\n logger.debug(\"Initializing AI model: %r\" % model.name)\r\n self._ai_model = model()\r\n\r\n if self.pixmap is None:\r\n logger.warning(\"Pixmap is not set yet\")\r\n return\r\n\r\n self._ai_model.set_image(\r\n image=labelme.utils.img_qt_to_arr(self.pixmap.toImage())\r\n )\r\n\r\n def storeShapes(self):\r\n shapesBackup = []\r\n for shape in self.shapes:\r\n shapesBackup.append(shape.copy())\r\n if len(self.shapesBackups) > self.num_backups:\r\n self.shapesBackups = self.shapesBackups[-self.num_backups - 1 :]\r\n self.shapesBackups.append(shapesBackup)\r\n\r\n @property\r\n def isShapeRestorable(self):\r\n # We save the state AFTER each edit (not before) so for an\r\n # edit to be undoable, we expect the CURRENT and the PREVIOUS state\r\n"} +{"file_name": "56c0630f-51af-4056-ad51-006bed9d1b06.png", "code": " # to be in the undo stack.\r\n if len(self.shapesBackups) < 2:\r\n return False\r\n return True\r\n\r\n def restoreShape(self):\r\n # This does _part_ of the job of restoring shapes.\r\n # The complete process is also done in app.py::undoShapeEdit\r\n # and app.py::loadShapes and our own Canvas::loadShapes function.\r\n if not self.isShapeRestorable:\r\n return\r\n self.shapesBackups.pop() # latest\r\n\r\n # The application will eventually call Canvas.loadShapes which will\r\n # push this right back onto the stack.\r\n shapesBackup = self.shapesBackups.pop()\r\n self.shapes = shapesBackup\r\n self.selectedShapes = []\r\n for shape in self.shapes:\r\n shape.selected = False\r\n self.update()\r\n\r\n def enterEvent(self, ev):\r\n self.overrideCursor(self._cursor)\r\n\r\n def leaveEvent(self, ev):\r\n self.unHighlight()\r\n self.restoreCursor()\r\n\r\n def focusOutEvent(self, ev):\r\n self.restoreCursor()\r\n\r\n def isVisible(self, shape):\r\n return self.visible.get(shape, True)\r\n\r\n def drawing(self):\r\n return self.mode == self.CREATE\r\n\r\n def editing(self):\r\n return self.mode == self.EDIT\r\n"} +{"file_name": "e9950489-a4f6-44d8-826d-44fd46553c6c.png", "code": "\r\n def setEditing(self, value=True):\r\n self.mode = self.EDIT if value else self.CREATE\r\n if self.mode == self.EDIT:\r\n # CREATE -> EDIT\r\n self.repaint() # clear crosshair\r\n else:\r\n # EDIT -> CREATE\r\n self.unHighlight()\r\n self.deSelectShape()\r\n\r\n def unHighlight(self):\r\n if self.hShape:\r\n self.hShape.highlightClear()\r\n self.update()\r\n self.prevhShape = self.hShape\r\n self.prevhVertex = self.hVertex\r\n self.prevhEdge = self.hEdge\r\n self.hShape = self.hVertex = self.hEdge = None\r\n\r\n def selectedVertex(self):\r\n return self.hVertex is not None\r\n\r\n def selectedEdge(self):\r\n return self.hEdge is not None\r\n\r\n def mouseMoveEvent(self, ev):\r\n \"\"\"Update line with last point and current coordinates.\"\"\"\r\n try:\r\n if QT5:\r\n pos = self.transformPos(ev.localPos())\r\n else:\r\n pos = self.transformPos(ev.posF())\r\n except AttributeError:\r\n return\r\n\r\n self.prevMovePoint = pos\r\n self.restoreCursor()\r\n\r\n is_shift_pressed = ev.modifiers() & QtCore.Qt.ShiftModifier\r\n"} +{"file_name": "7d900bf2-efa5-4d0e-a667-a51042674997.png", "code": "\r\n # Polygon drawing.\r\n if self.drawing():\r\n if self.createMode in [\"ai_polygon\", \"ai_mask\"]:\r\n self.line.shape_type = \"points\"\r\n else:\r\n self.line.shape_type = self.createMode\r\n\r\n self.overrideCursor(CURSOR_DRAW)\r\n if not self.current:\r\n self.repaint() # draw crosshair\r\n return\r\n\r\n if self.outOfPixmap(pos):\r\n # Don't allow the user to draw outside the pixmap.\r\n # Project the point to the pixmap's edges.\r\n pos = self.intersectionPoint(self.current[-1], pos)\r\n elif (\r\n self.snapping\r\n and len(self.current) > 1\r\n and self.createMode == \"polygon\"\r\n and self.closeEnough(pos, self.current[0])\r\n ):\r\n # Attract line to starting point and\r\n # colorise to alert the user.\r\n pos = self.current[0]\r\n self.overrideCursor(CURSOR_POINT)\r\n self.current.highlightVertex(0, Shape.NEAR_VERTEX)\r\n if self.createMode in [\"polygon\", \"linestrip\"]:\r\n self.line.points = [self.current[-1], pos]\r\n self.line.point_labels = [1, 1]\r\n elif self.createMode in [\"ai_polygon\", \"ai_mask\"]:\r\n self.line.points = [self.current.points[-1], pos]\r\n self.line.point_labels = [\r\n self.current.point_labels[-1],\r\n 0 if is_shift_pressed else 1,\r\n ]\r\n elif self.createMode == \"rectangle\":\r\n self.line.points = [self.current[0], pos]\r\n self.line.point_labels = [1, 1]\r\n"} +{"file_name": "34cba9fb-abf4-4dfb-88fa-0953732dfe6e.png", "code": " self.line.close()\r\n elif self.createMode == \"circle\":\r\n self.line.points = [self.current[0], pos]\r\n self.line.point_labels = [1, 1]\r\n self.line.shape_type = \"circle\"\r\n elif self.createMode == \"line\":\r\n self.line.points = [self.current[0], pos]\r\n self.line.point_labels = [1, 1]\r\n self.line.close()\r\n elif self.createMode == \"point\":\r\n self.line.points = [self.current[0]]\r\n self.line.point_labels = [1]\r\n self.line.close()\r\n assert len(self.line.points) == len(self.line.point_labels)\r\n self.repaint()\r\n self.current.highlightClear()\r\n return\r\n\r\n # Polygon copy moving.\r\n if QtCore.Qt.RightButton & ev.buttons():\r\n if self.selectedShapesCopy and self.prevPoint:\r\n self.overrideCursor(CURSOR_MOVE)\r\n self.boundedMoveShapes(self.selectedShapesCopy, pos)\r\n self.repaint()\r\n elif self.selectedShapes:\r\n self.selectedShapesCopy = [s.copy() for s in self.selectedShapes]\r\n self.repaint()\r\n return\r\n\r\n # Polygon/Vertex moving.\r\n if QtCore.Qt.LeftButton & ev.buttons():\r\n if self.selectedVertex():\r\n self.boundedMoveVertex(pos)\r\n self.repaint()\r\n self.movingShape = True\r\n elif self.selectedShapes and self.prevPoint:\r\n self.overrideCursor(CURSOR_MOVE)\r\n self.boundedMoveShapes(self.selectedShapes, pos)\r\n self.repaint()\r\n self.movingShape = True\r\n"} +{"file_name": "ea759da8-add9-4d99-a008-90c9ce979e44.png", "code": " return\r\n\r\n # Just hovering over the canvas, 2 possibilities:\r\n # - Highlight shapes\r\n # - Highlight vertex\r\n # Update shape/vertex fill and tooltip value accordingly.\r\n self.setToolTip(self.tr(\"Image\"))\r\n for shape in reversed([s for s in self.shapes if self.isVisible(s)]):\r\n # Look for a nearby vertex to highlight. If that fails,\r\n # check if we happen to be inside a shape.\r\n index = shape.nearestVertex(pos, self.epsilon / self.scale)\r\n index_edge = shape.nearestEdge(pos, self.epsilon / self.scale)\r\n if index is not None:\r\n if self.selectedVertex():\r\n self.hShape.highlightClear()\r\n self.prevhVertex = self.hVertex = index\r\n self.prevhShape = self.hShape = shape\r\n self.prevhEdge = self.hEdge\r\n self.hEdge = None\r\n shape.highlightVertex(index, shape.MOVE_VERTEX)\r\n self.overrideCursor(CURSOR_POINT)\r\n self.setToolTip(self.tr(\"Click & drag to move point\"))\r\n self.setStatusTip(self.toolTip())\r\n self.update()\r\n break\r\n elif index_edge is not None and shape.canAddPoint():\r\n if self.selectedVertex():\r\n self.hShape.highlightClear()\r\n self.prevhVertex = self.hVertex\r\n self.hVertex = None\r\n self.prevhShape = self.hShape = shape\r\n self.prevhEdge = self.hEdge = index_edge\r\n self.overrideCursor(CURSOR_POINT)\r\n self.setToolTip(self.tr(\"Click to create point\"))\r\n self.setStatusTip(self.toolTip())\r\n self.update()\r\n break\r\n elif shape.containsPoint(pos):\r\n if self.selectedVertex():\r\n self.hShape.highlightClear()\r\n"} +{"file_name": "00de1930-8d7b-4259-84f9-93147ac5de72.png", "code": " self.prevhVertex = self.hVertex\r\n self.hVertex = None\r\n self.prevhShape = self.hShape = shape\r\n self.prevhEdge = self.hEdge\r\n self.hEdge = None\r\n self.setToolTip(\r\n self.tr(\"Click & drag to move shape '%s'\") % shape.label\r\n )\r\n self.setStatusTip(self.toolTip())\r\n self.overrideCursor(CURSOR_GRAB)\r\n self.update()\r\n break\r\n else: # Nothing found, clear highlights, reset state.\r\n self.unHighlight()\r\n self.vertexSelected.emit(self.hVertex is not None)\r\n\r\n def addPointToEdge(self):\r\n shape = self.prevhShape\r\n index = self.prevhEdge\r\n point = self.prevMovePoint\r\n if shape is None or index is None or point is None:\r\n return\r\n shape.insertPoint(index, point)\r\n shape.highlightVertex(index, shape.MOVE_VERTEX)\r\n self.hShape = shape\r\n self.hVertex = index\r\n self.hEdge = None\r\n self.movingShape = True\r\n\r\n def removeSelectedPoint(self):\r\n shape = self.prevhShape\r\n index = self.prevhVertex\r\n if shape is None or index is None:\r\n return\r\n shape.removePoint(index)\r\n shape.highlightClear()\r\n self.hShape = shape\r\n self.prevhVertex = None\r\n self.movingShape = True # Save changes\r\n\r\n"} +{"file_name": "be1803a6-fb48-455e-b016-5adc25532858.png", "code": " def mousePressEvent(self, ev):\r\n if QT5:\r\n pos = self.transformPos(ev.localPos())\r\n else:\r\n pos = self.transformPos(ev.posF())\r\n\r\n is_shift_pressed = ev.modifiers() & QtCore.Qt.ShiftModifier\r\n\r\n if ev.button() == QtCore.Qt.LeftButton:\r\n if self.drawing():\r\n if self.current:\r\n # Add point to existing shape.\r\n if self.createMode == \"polygon\":\r\n self.current.addPoint(self.line[1])\r\n self.line[0] = self.current[-1]\r\n if self.current.isClosed():\r\n self.finalise()\r\n elif self.createMode in [\"rectangle\", \"circle\", \"line\"]:\r\n assert len(self.current.points) == 1\r\n self.current.points = self.line.points\r\n self.finalise()\r\n elif self.createMode == \"linestrip\":\r\n self.current.addPoint(self.line[1])\r\n self.line[0] = self.current[-1]\r\n if int(ev.modifiers()) == QtCore.Qt.ControlModifier:\r\n self.finalise()\r\n elif self.createMode in [\"ai_polygon\", \"ai_mask\"]:\r\n self.current.addPoint(\r\n self.line.points[1],\r\n label=self.line.point_labels[1],\r\n )\r\n self.line.points[0] = self.current.points[-1]\r\n self.line.point_labels[0] = self.current.point_labels[-1]\r\n if ev.modifiers() & QtCore.Qt.ControlModifier:\r\n self.finalise()\r\n elif not self.outOfPixmap(pos):\r\n # Create new shape.\r\n self.current = Shape(\r\n shape_type=\"points\"\r\n if self.createMode in [\"ai_polygon\", \"ai_mask\"]\r\n"} +{"file_name": "e9e26c6e-5446-4a76-821b-fe91b66dea24.png", "code": " else self.createMode\r\n )\r\n self.current.addPoint(pos, label=0 if is_shift_pressed else 1)\r\n if self.createMode == \"point\":\r\n self.finalise()\r\n elif (\r\n self.createMode in [\"ai_polygon\", \"ai_mask\"]\r\n and ev.modifiers() & QtCore.Qt.ControlModifier\r\n ):\r\n self.finalise()\r\n else:\r\n if self.createMode == \"circle\":\r\n self.current.shape_type = \"circle\"\r\n self.line.points = [pos, pos]\r\n if (\r\n self.createMode in [\"ai_polygon\", \"ai_mask\"]\r\n and is_shift_pressed\r\n ):\r\n self.line.point_labels = [0, 0]\r\n else:\r\n self.line.point_labels = [1, 1]\r\n self.setHiding()\r\n self.drawingPolygon.emit(True)\r\n self.update()\r\n elif self.editing():\r\n if self.selectedEdge():\r\n self.addPointToEdge()\r\n elif (\r\n self.selectedVertex()\r\n and int(ev.modifiers()) == QtCore.Qt.ShiftModifier\r\n ):\r\n # Delete point if: left-click + SHIFT on a point\r\n self.removeSelectedPoint()\r\n\r\n group_mode = int(ev.modifiers()) == QtCore.Qt.ControlModifier\r\n self.selectShapePoint(pos, multiple_selection_mode=group_mode)\r\n self.prevPoint = pos\r\n self.repaint()\r\n elif ev.button() == QtCore.Qt.RightButton and self.editing():\r\n group_mode = int(ev.modifiers()) == QtCore.Qt.ControlModifier\r\n"} +{"file_name": "91cb1b84-8c7f-4c74-a024-8aec6898593e.png", "code": " if not self.selectedShapes or (\r\n self.hShape is not None and self.hShape not in self.selectedShapes\r\n ):\r\n self.selectShapePoint(pos, multiple_selection_mode=group_mode)\r\n self.repaint()\r\n self.prevPoint = pos\r\n\r\n def mouseReleaseEvent(self, ev):\r\n if ev.button() == QtCore.Qt.RightButton:\r\n menu = self.menus[len(self.selectedShapesCopy) > 0]\r\n self.restoreCursor()\r\n if not menu.exec_(self.mapToGlobal(ev.pos())) and self.selectedShapesCopy:\r\n # Cancel the move by deleting the shadow copy.\r\n self.selectedShapesCopy = []\r\n self.repaint()\r\n elif ev.button() == QtCore.Qt.LeftButton:\r\n if self.editing():\r\n if (\r\n self.hShape is not None\r\n and self.hShapeIsSelected\r\n and not self.movingShape\r\n ):\r\n self.selectionChanged.emit(\r\n [x for x in self.selectedShapes if x != self.hShape]\r\n )\r\n\r\n if self.movingShape and self.hShape:\r\n index = self.shapes.index(self.hShape)\r\n if self.shapesBackups[-1][index].points != self.shapes[index].points:\r\n self.storeShapes()\r\n self.shapeMoved.emit()\r\n\r\n self.movingShape = False\r\n\r\n def endMove(self, copy):\r\n assert self.selectedShapes and self.selectedShapesCopy\r\n assert len(self.selectedShapesCopy) == len(self.selectedShapes)\r\n if copy:\r\n for i, shape in enumerate(self.selectedShapesCopy):\r\n self.shapes.append(shape)\r\n"} +{"file_name": "1281ba4e-aff6-4be2-8005-c31060595e70.png", "code": " self.selectedShapes[i].selected = False\r\n self.selectedShapes[i] = shape\r\n else:\r\n for i, shape in enumerate(self.selectedShapesCopy):\r\n self.selectedShapes[i].points = shape.points\r\n self.selectedShapesCopy = []\r\n self.repaint()\r\n self.storeShapes()\r\n return True\r\n\r\n def hideBackroundShapes(self, value):\r\n self.hideBackround = value\r\n if self.selectedShapes:\r\n # Only hide other shapes if there is a current selection.\r\n # Otherwise the user will not be able to select a shape.\r\n self.setHiding(True)\r\n self.update()\r\n\r\n def setHiding(self, enable=True):\r\n self._hideBackround = self.hideBackround if enable else False\r\n\r\n def canCloseShape(self):\r\n return self.drawing() and self.current and len(self.current) > 2\r\n\r\n def mouseDoubleClickEvent(self, ev):\r\n if self.double_click != \"close\":\r\n return\r\n\r\n if (\r\n self.createMode == \"polygon\" and self.canCloseShape()\r\n ) or self.createMode in [\"ai_polygon\", \"ai_mask\"]:\r\n self.finalise()\r\n\r\n def selectShapes(self, shapes):\r\n self.setHiding()\r\n self.selectionChanged.emit(shapes)\r\n self.update()\r\n\r\n def selectShapePoint(self, point, multiple_selection_mode):\r\n \"\"\"Select the first shape created which contains this point.\"\"\"\r\n"} +{"file_name": "5e597082-59e6-428e-8601-65cf63154a1b.png", "code": " if self.selectedVertex(): # A vertex is marked for selection.\r\n index, shape = self.hVertex, self.hShape\r\n shape.highlightVertex(index, shape.MOVE_VERTEX)\r\n else:\r\n for shape in reversed(self.shapes):\r\n if self.isVisible(shape) and shape.containsPoint(point):\r\n self.setHiding()\r\n if shape not in self.selectedShapes:\r\n if multiple_selection_mode:\r\n self.selectionChanged.emit(self.selectedShapes + [shape])\r\n else:\r\n self.selectionChanged.emit([shape])\r\n self.hShapeIsSelected = False\r\n else:\r\n self.hShapeIsSelected = True\r\n self.calculateOffsets(point)\r\n return\r\n self.deSelectShape()\r\n\r\n def calculateOffsets(self, point):\r\n left = self.pixmap.width() - 1\r\n right = 0\r\n top = self.pixmap.height() - 1\r\n bottom = 0\r\n for s in self.selectedShapes:\r\n rect = s.boundingRect()\r\n if rect.left() < left:\r\n left = rect.left()\r\n if rect.right() > right:\r\n right = rect.right()\r\n if rect.top() < top:\r\n top = rect.top()\r\n if rect.bottom() > bottom:\r\n bottom = rect.bottom()\r\n\r\n x1 = left - point.x()\r\n y1 = top - point.y()\r\n x2 = right - point.x()\r\n y2 = bottom - point.y()\r\n self.offsets = QtCore.QPointF(x1, y1), QtCore.QPointF(x2, y2)\r\n"} +{"file_name": "b03f33a3-1bd3-4871-b517-6eaa0e4d4bfa.png", "code": "\r\n def boundedMoveVertex(self, pos):\r\n index, shape = self.hVertex, self.hShape\r\n point = shape[index]\r\n if self.outOfPixmap(pos):\r\n pos = self.intersectionPoint(point, pos)\r\n shape.moveVertexBy(index, pos - point)\r\n\r\n def boundedMoveShapes(self, shapes, pos):\r\n if self.outOfPixmap(pos):\r\n return False # No need to move\r\n o1 = pos + self.offsets[0]\r\n if self.outOfPixmap(o1):\r\n pos -= QtCore.QPointF(min(0, o1.x()), min(0, o1.y()))\r\n o2 = pos + self.offsets[1]\r\n if self.outOfPixmap(o2):\r\n pos += QtCore.QPointF(\r\n min(0, self.pixmap.width() - o2.x()),\r\n min(0, self.pixmap.height() - o2.y()),\r\n )\r\n # XXX: The next line tracks the new position of the cursor\r\n # relative to the shape, but also results in making it\r\n # a bit \"shaky\" when nearing the border and allows it to\r\n # go outside of the shape's area for some reason.\r\n # self.calculateOffsets(self.selectedShapes, pos)\r\n dp = pos - self.prevPoint\r\n if dp:\r\n for shape in shapes:\r\n shape.moveBy(dp)\r\n self.prevPoint = pos\r\n return True\r\n return False\r\n\r\n def deSelectShape(self):\r\n if self.selectedShapes:\r\n self.setHiding(False)\r\n self.selectionChanged.emit([])\r\n self.hShapeIsSelected = False\r\n self.update()\r\n\r\n"} +{"file_name": "fe1290d8-0902-4780-a556-1a80c91a8b0f.png", "code": " def deleteSelected(self):\r\n deleted_shapes = []\r\n if self.selectedShapes:\r\n for shape in self.selectedShapes:\r\n self.shapes.remove(shape)\r\n deleted_shapes.append(shape)\r\n self.storeShapes()\r\n self.selectedShapes = []\r\n self.update()\r\n return deleted_shapes\r\n\r\n def deleteShape(self, shape):\r\n if shape in self.selectedShapes:\r\n self.selectedShapes.remove(shape)\r\n if shape in self.shapes:\r\n self.shapes.remove(shape)\r\n self.storeShapes()\r\n self.update()\r\n\r\n def duplicateSelectedShapes(self):\r\n if self.selectedShapes:\r\n self.selectedShapesCopy = [s.copy() for s in self.selectedShapes]\r\n self.boundedShiftShapes(self.selectedShapesCopy)\r\n self.endMove(copy=True)\r\n return self.selectedShapes\r\n\r\n def boundedShiftShapes(self, shapes):\r\n # Try to move in one direction, and if it fails in another.\r\n # Give up if both fail.\r\n point = shapes[0][0]\r\n offset = QtCore.QPointF(2.0, 2.0)\r\n self.offsets = QtCore.QPoint(), QtCore.QPoint()\r\n self.prevPoint = point\r\n if not self.boundedMoveShapes(shapes, point - offset):\r\n self.boundedMoveShapes(shapes, point + offset)\r\n\r\n def paintEvent(self, event):\r\n if not self.pixmap:\r\n return super(Canvas, self).paintEvent(event)\r\n\r\n"} +{"file_name": "837e28d8-5b8a-4e97-96b8-bf849f28aa42.png", "code": " p = self._painter\r\n p.begin(self)\r\n p.setRenderHint(QtGui.QPainter.Antialiasing)\r\n p.setRenderHint(QtGui.QPainter.HighQualityAntialiasing)\r\n p.setRenderHint(QtGui.QPainter.SmoothPixmapTransform)\r\n\r\n p.scale(self.scale, self.scale)\r\n p.translate(self.offsetToCenter())\r\n\r\n p.drawPixmap(0, 0, self.pixmap)\r\n\r\n # draw crosshair\r\n if (\r\n self._crosshair[self._createMode]\r\n and self.drawing()\r\n and self.prevMovePoint\r\n and not self.outOfPixmap(self.prevMovePoint)\r\n ):\r\n p.setPen(QtGui.QColor(0, 0, 0))\r\n p.drawLine(\r\n 0,\r\n int(self.prevMovePoint.y()),\r\n self.width() - 1,\r\n int(self.prevMovePoint.y()),\r\n )\r\n p.drawLine(\r\n int(self.prevMovePoint.x()),\r\n 0,\r\n int(self.prevMovePoint.x()),\r\n self.height() - 1,\r\n )\r\n\r\n Shape.scale = self.scale\r\n for shape in self.shapes:\r\n if (shape.selected or not self._hideBackround) and self.isVisible(shape):\r\n shape.fill = shape.selected or shape == self.hShape\r\n shape.paint(p)\r\n if self.current:\r\n self.current.paint(p)\r\n assert len(self.line.points) == len(self.line.point_labels)\r\n"} +{"file_name": "6336d3ce-1bef-41cb-b33e-55033ef2d26a.png", "code": " self.line.paint(p)\r\n if self.selectedShapesCopy:\r\n for s in self.selectedShapesCopy:\r\n s.paint(p)\r\n\r\n if (\r\n self.fillDrawing()\r\n and self.createMode == \"polygon\"\r\n and self.current is not None\r\n and len(self.current.points) >= 2\r\n ):\r\n drawing_shape = self.current.copy()\r\n if drawing_shape.fill_color.getRgb()[3] == 0:\r\n logger.warning(\r\n \"fill_drawing=true, but fill_color is transparent,\"\r\n \" so forcing to be opaque.\"\r\n )\r\n drawing_shape.fill_color.setAlpha(64)\r\n drawing_shape.addPoint(self.line[1])\r\n drawing_shape.fill = True\r\n drawing_shape.paint(p)\r\n elif self.createMode == \"ai_polygon\" and self.current is not None:\r\n drawing_shape = self.current.copy()\r\n drawing_shape.addPoint(\r\n point=self.line.points[1],\r\n label=self.line.point_labels[1],\r\n )\r\n points = self._ai_model.predict_polygon_from_points(\r\n points=[[point.x(), point.y()] for point in drawing_shape.points],\r\n point_labels=drawing_shape.point_labels,\r\n )\r\n if len(points) > 2:\r\n drawing_shape.setShapeRefined(\r\n shape_type=\"polygon\",\r\n points=[QtCore.QPointF(point[0], point[1]) for point in points],\r\n point_labels=[1] * len(points),\r\n )\r\n drawing_shape.fill = self.fillDrawing()\r\n drawing_shape.selected = True\r\n drawing_shape.paint(p)\r\n"} +{"file_name": "7c63e9d5-3477-420b-86f5-6058c3f5917a.png", "code": " elif self.createMode == \"ai_mask\" and self.current is not None:\r\n drawing_shape = self.current.copy()\r\n drawing_shape.addPoint(\r\n point=self.line.points[1],\r\n label=self.line.point_labels[1],\r\n )\r\n mask = self._ai_model.predict_mask_from_points(\r\n points=[[point.x(), point.y()] for point in drawing_shape.points],\r\n point_labels=drawing_shape.point_labels,\r\n )\r\n y1, x1, y2, x2 = imgviz.instances.masks_to_bboxes([mask])[0].astype(int)\r\n drawing_shape.setShapeRefined(\r\n shape_type=\"mask\",\r\n points=[QtCore.QPointF(x1, y1), QtCore.QPointF(x2, y2)],\r\n point_labels=[1, 1],\r\n mask=mask[y1 : y2 + 1, x1 : x2 + 1],\r\n )\r\n drawing_shape.selected = True\r\n drawing_shape.paint(p)\r\n\r\n p.end()\r\n\r\n def transformPos(self, point):\r\n \"\"\"Convert from widget-logical coordinates to painter-logical ones.\"\"\"\r\n return point / self.scale - self.offsetToCenter()\r\n\r\n def offsetToCenter(self):\r\n s = self.scale\r\n area = super(Canvas, self).size()\r\n w, h = self.pixmap.width() * s, self.pixmap.height() * s\r\n aw, ah = area.width(), area.height()\r\n x = (aw - w) / (2 * s) if aw > w else 0\r\n y = (ah - h) / (2 * s) if ah > h else 0\r\n return QtCore.QPointF(x, y)\r\n\r\n def outOfPixmap(self, p):\r\n w, h = self.pixmap.width(), self.pixmap.height()\r\n return not (0 <= p.x() <= w - 1 and 0 <= p.y() <= h - 1)\r\n\r\n def finalise(self):\r\n"} +{"file_name": "c47df6ce-556b-45ce-9a05-88418a4a7717.png", "code": " assert self.current\r\n if self.createMode == \"ai_polygon\":\r\n # convert points to polygon by an AI model\r\n assert self.current.shape_type == \"points\"\r\n points = self._ai_model.predict_polygon_from_points(\r\n points=[[point.x(), point.y()] for point in self.current.points],\r\n point_labels=self.current.point_labels,\r\n )\r\n self.current.setShapeRefined(\r\n points=[QtCore.QPointF(point[0], point[1]) for point in points],\r\n point_labels=[1] * len(points),\r\n shape_type=\"polygon\",\r\n )\r\n elif self.createMode == \"ai_mask\":\r\n # convert points to mask by an AI model\r\n assert self.current.shape_type == \"points\"\r\n mask = self._ai_model.predict_mask_from_points(\r\n points=[[point.x(), point.y()] for point in self.current.points],\r\n point_labels=self.current.point_labels,\r\n )\r\n y1, x1, y2, x2 = imgviz.instances.masks_to_bboxes([mask])[0].astype(int)\r\n self.current.setShapeRefined(\r\n shape_type=\"mask\",\r\n points=[QtCore.QPointF(x1, y1), QtCore.QPointF(x2, y2)],\r\n point_labels=[1, 1],\r\n mask=mask[y1 : y2 + 1, x1 : x2 + 1],\r\n )\r\n self.current.close()\r\n\r\n self.shapes.append(self.current)\r\n self.storeShapes()\r\n self.current = None\r\n self.setHiding(False)\r\n self.newShape.emit()\r\n self.update()\r\n\r\n def closeEnough(self, p1, p2):\r\n # d = distance(p1 - p2)\r\n # m = (p1-p2).manhattanLength()\r\n # print \"d %.2f, m %d, %.2f\" % (d, m, d - m)\r\n"} +{"file_name": "66e5c4e9-f5d6-4871-8e5c-7d5a8fd17860.png", "code": " # divide by scale to allow more precision when zoomed in\r\n return labelme.utils.distance(p1 - p2) < (self.epsilon / self.scale)\r\n\r\n def intersectionPoint(self, p1, p2):\r\n # Cycle through each image edge in clockwise fashion,\r\n # and find the one intersecting the current line segment.\r\n # http://paulbourke.net/geometry/lineline2d/\r\n size = self.pixmap.size()\r\n points = [\r\n (0, 0),\r\n (size.width() - 1, 0),\r\n (size.width() - 1, size.height() - 1),\r\n (0, size.height() - 1),\r\n ]\r\n # x1, y1 should be in the pixmap, x2, y2 should be out of the pixmap\r\n x1 = min(max(p1.x(), 0), size.width() - 1)\r\n y1 = min(max(p1.y(), 0), size.height() - 1)\r\n x2, y2 = p2.x(), p2.y()\r\n d, i, (x, y) = min(self.intersectingEdges((x1, y1), (x2, y2), points))\r\n x3, y3 = points[i]\r\n x4, y4 = points[(i + 1) % 4]\r\n if (x, y) == (x1, y1):\r\n # Handle cases where previous point is on one of the edges.\r\n if x3 == x4:\r\n return QtCore.QPointF(x3, min(max(0, y2), max(y3, y4)))\r\n else: # y3 == y4\r\n return QtCore.QPointF(min(max(0, x2), max(x3, x4)), y3)\r\n return QtCore.QPointF(x, y)\r\n\r\n def intersectingEdges(self, point1, point2, points):\r\n \"\"\"Find intersecting edges.\r\n\r\n For each edge formed by `points', yield the intersection\r\n with the line segment `(x1,y1) - (x2,y2)`, if it exists.\r\n Also return the distance of `(x2,y2)' to the middle of the\r\n edge along with its index, so that the one closest can be chosen.\r\n \"\"\"\r\n (x1, y1) = point1\r\n (x2, y2) = point2\r\n for i in range(4):\r\n"} +{"file_name": "84da6044-92ca-49c9-a909-0b1eed61fd63.png", "code": " x3, y3 = points[i]\r\n x4, y4 = points[(i + 1) % 4]\r\n denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1)\r\n nua = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)\r\n nub = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)\r\n if denom == 0:\r\n # This covers two cases:\r\n # nua == nub == 0: Coincident\r\n # otherwise: Parallel\r\n continue\r\n ua, ub = nua / denom, nub / denom\r\n if 0 <= ua <= 1 and 0 <= ub <= 1:\r\n x = x1 + ua * (x2 - x1)\r\n y = y1 + ua * (y2 - y1)\r\n m = QtCore.QPointF((x3 + x4) / 2, (y3 + y4) / 2)\r\n d = labelme.utils.distance(m - QtCore.QPointF(x2, y2))\r\n yield d, i, (x, y)\r\n\r\n # These two, along with a call to adjustSize are required for the\r\n # scroll area.\r\n def sizeHint(self):\r\n return self.minimumSizeHint()\r\n\r\n def minimumSizeHint(self):\r\n if self.pixmap:\r\n return self.scale * self.pixmap.size()\r\n return super(Canvas, self).minimumSizeHint()\r\n\r\n def wheelEvent(self, ev):\r\n if QT5:\r\n mods = ev.modifiers()\r\n delta = ev.angleDelta()\r\n if QtCore.Qt.ControlModifier == int(mods):\r\n # with Ctrl/Command key\r\n # zoom\r\n self.zoomRequest.emit(delta.y(), ev.pos())\r\n else:\r\n # scroll\r\n self.scrollRequest.emit(delta.x(), QtCore.Qt.Horizontal)\r\n self.scrollRequest.emit(delta.y(), QtCore.Qt.Vertical)\r\n"} +{"file_name": "479274b0-ff1b-4372-8cff-e2bc35ecb61d.png", "code": " else:\r\n if ev.orientation() == QtCore.Qt.Vertical:\r\n mods = ev.modifiers()\r\n if QtCore.Qt.ControlModifier == int(mods):\r\n # with Ctrl/Command key\r\n self.zoomRequest.emit(ev.delta(), ev.pos())\r\n else:\r\n self.scrollRequest.emit(\r\n ev.delta(),\r\n QtCore.Qt.Horizontal\r\n if (QtCore.Qt.ShiftModifier == int(mods))\r\n else QtCore.Qt.Vertical,\r\n )\r\n else:\r\n self.scrollRequest.emit(ev.delta(), QtCore.Qt.Horizontal)\r\n ev.accept()\r\n\r\n def moveByKeyboard(self, offset):\r\n if self.selectedShapes:\r\n self.boundedMoveShapes(self.selectedShapes, self.prevPoint + offset)\r\n self.repaint()\r\n self.movingShape = True\r\n\r\n def keyPressEvent(self, ev):\r\n modifiers = ev.modifiers()\r\n key = ev.key()\r\n if self.drawing():\r\n if key == QtCore.Qt.Key_Escape and self.current:\r\n self.current = None\r\n self.drawingPolygon.emit(False)\r\n self.update()\r\n elif key == QtCore.Qt.Key_Return and self.canCloseShape():\r\n self.finalise()\r\n elif modifiers == QtCore.Qt.AltModifier:\r\n self.snapping = False\r\n elif self.editing():\r\n if key == QtCore.Qt.Key_Up:\r\n self.moveByKeyboard(QtCore.QPointF(0.0, -MOVE_SPEED))\r\n elif key == QtCore.Qt.Key_Down:\r\n self.moveByKeyboard(QtCore.QPointF(0.0, MOVE_SPEED))\r\n"} +{"file_name": "2bdb19b3-c6c3-4902-beb0-78c48a9e642e.png", "code": " elif key == QtCore.Qt.Key_Left:\r\n self.moveByKeyboard(QtCore.QPointF(-MOVE_SPEED, 0.0))\r\n elif key == QtCore.Qt.Key_Right:\r\n self.moveByKeyboard(QtCore.QPointF(MOVE_SPEED, 0.0))\r\n\r\n def keyReleaseEvent(self, ev):\r\n modifiers = ev.modifiers()\r\n if self.drawing():\r\n if int(modifiers) == 0:\r\n self.snapping = True\r\n elif self.editing():\r\n if self.movingShape and self.selectedShapes:\r\n index = self.shapes.index(self.selectedShapes[0])\r\n if self.shapesBackups[-1][index].points != self.shapes[index].points:\r\n self.storeShapes()\r\n self.shapeMoved.emit()\r\n\r\n self.movingShape = False\r\n\r\n def setLastLabel(self, text, flags):\r\n assert text\r\n self.shapes[-1].label = text\r\n self.shapes[-1].flags = flags\r\n self.shapesBackups.pop()\r\n self.storeShapes()\r\n return self.shapes[-1]\r\n\r\n def undoLastLine(self):\r\n assert self.shapes\r\n self.current = self.shapes.pop()\r\n self.current.setOpen()\r\n self.current.restoreShapeRaw()\r\n if self.createMode in [\"polygon\", \"linestrip\"]:\r\n self.line.points = [self.current[-1], self.current[0]]\r\n elif self.createMode in [\"rectangle\", \"line\", \"circle\"]:\r\n self.current.points = self.current.points[0:1]\r\n elif self.createMode == \"point\":\r\n self.current = None\r\n self.drawingPolygon.emit(True)\r\n\r\n"} +{"file_name": "d7f1b69f-7657-4de0-bf3e-ae1eeea01126.png", "code": " def undoLastPoint(self):\r\n if not self.current or self.current.isClosed():\r\n return\r\n self.current.popPoint()\r\n if len(self.current) > 0:\r\n self.line[0] = self.current[-1]\r\n else:\r\n self.current = None\r\n self.drawingPolygon.emit(False)\r\n self.update()\r\n\r\n def loadPixmap(self, pixmap, clear_shapes=True):\r\n self.pixmap = pixmap\r\n if self._ai_model:\r\n self._ai_model.set_image(\r\n image=labelme.utils.img_qt_to_arr(self.pixmap.toImage())\r\n )\r\n if clear_shapes:\r\n self.shapes = []\r\n self.update()\r\n\r\n def loadShapes(self, shapes, replace=True):\r\n if replace:\r\n self.shapes = list(shapes)\r\n else:\r\n self.shapes.extend(shapes)\r\n self.storeShapes()\r\n self.current = None\r\n self.hShape = None\r\n self.hVertex = None\r\n self.hEdge = None\r\n self.update()\r\n\r\n def setShapeVisible(self, shape, value):\r\n self.visible[shape] = value\r\n self.update()\r\n\r\n def overrideCursor(self, cursor):\r\n self.restoreCursor()\r\n self._cursor = cursor\r\n"} +{"file_name": "b7616a6e-eb27-4851-9c9c-baef12e9bb4a.png", "code": " QtWidgets.QApplication.setOverrideCursor(cursor)\r\n\r\n def restoreCursor(self):\r\n QtWidgets.QApplication.restoreOverrideCursor()\r\n\r\n def resetState(self):\r\n self.restoreCursor()\r\n self.pixmap = None\r\n self.shapesBackups = []\r\n self.update()\r\n"} +{"file_name": "9f15aa76-e3ed-425b-ae16-a23588e77f0f.png", "code": "import json\r\n\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\n\r\n\r\nclass ScrollAreaPreview(QtWidgets.QScrollArea):\r\n def __init__(self, *args, **kwargs):\r\n super(ScrollAreaPreview, self).__init__(*args, **kwargs)\r\n\r\n self.setWidgetResizable(True)\r\n\r\n content = QtWidgets.QWidget(self)\r\n self.setWidget(content)\r\n\r\n lay = QtWidgets.QVBoxLayout(content)\r\n\r\n self.label = QtWidgets.QLabel(content)\r\n self.label.setWordWrap(True)\r\n\r\n lay.addWidget(self.label)\r\n\r\n def setText(self, text):\r\n self.label.setText(text)\r\n\r\n def setPixmap(self, pixmap):\r\n self.label.setPixmap(pixmap)\r\n\r\n def clear(self):\r\n self.label.clear()\r\n\r\n\r\nclass FileDialogPreview(QtWidgets.QFileDialog):\r\n def __init__(self, *args, **kwargs):\r\n super(FileDialogPreview, self).__init__(*args, **kwargs)\r\n self.setOption(self.DontUseNativeDialog, True)\r\n\r\n self.labelPreview = ScrollAreaPreview(self)\r\n self.labelPreview.setFixedSize(300, 300)\r\n"} +{"file_name": "8b2ad263-a02a-400b-9ab6-e856cb6d97ca.png", "code": " self.labelPreview.setHidden(True)\r\n\r\n box = QtWidgets.QVBoxLayout()\r\n box.addWidget(self.labelPreview)\r\n box.addStretch()\r\n\r\n self.setFixedSize(self.width() + 300, self.height())\r\n self.layout().addLayout(box, 1, 3, 1, 1)\r\n self.currentChanged.connect(self.onChange)\r\n\r\n def onChange(self, path):\r\n if path.lower().endswith(\".json\"):\r\n with open(path, \"r\") as f:\r\n data = json.load(f)\r\n self.labelPreview.setText(json.dumps(data, indent=4, sort_keys=False))\r\n self.labelPreview.label.setAlignment(\r\n QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop\r\n )\r\n self.labelPreview.setHidden(False)\r\n else:\r\n pixmap = QtGui.QPixmap(path)\r\n if pixmap.isNull():\r\n self.labelPreview.clear()\r\n self.labelPreview.setHidden(True)\r\n else:\r\n self.labelPreview.setPixmap(\r\n pixmap.scaled(\r\n self.labelPreview.width() - 30,\r\n self.labelPreview.height() - 30,\r\n QtCore.Qt.KeepAspectRatio,\r\n QtCore.Qt.SmoothTransformation,\r\n )\r\n )\r\n self.labelPreview.label.setAlignment(QtCore.Qt.AlignCenter)\r\n self.labelPreview.setHidden(False)\r\n"} +{"file_name": "abcd58ad-46ef-46bb-9759-49800ea10e8b.png", "code": "from qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\n\r\n\r\nclass ZoomWidget(QtWidgets.QSpinBox):\r\n def __init__(self, value=100):\r\n super(ZoomWidget, self).__init__()\r\n self.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)\r\n self.setRange(1, 1000)\r\n self.setSuffix(\" %\")\r\n self.setValue(value)\r\n self.setToolTip(\"Zoom Level\")\r\n self.setStatusTip(self.toolTip())\r\n self.setAlignment(QtCore.Qt.AlignCenter)\r\n\r\n def minimumSizeHint(self):\r\n height = super(ZoomWidget, self).minimumSizeHint().height()\r\n fm = QtGui.QFontMetrics(self.font())\r\n width = fm.width(str(self.maximum()))\r\n return QtCore.QSize(width, height)\r\n"} +{"file_name": "b6984636-68a5-41df-8ca2-7244bfb180e5.png", "code": "import PIL.Image\r\nimport PIL.ImageEnhance\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\nfrom qtpy.QtCore import Qt\r\n\r\nfrom .. import utils\r\n\r\n\r\nclass BrightnessContrastDialog(QtWidgets.QDialog):\r\n def __init__(self, img, callback, parent=None):\r\n super(BrightnessContrastDialog, self).__init__(parent)\r\n self.setModal(True)\r\n self.setWindowTitle(\"Brightness/Contrast\")\r\n\r\n self.slider_brightness = self._create_slider()\r\n self.slider_contrast = self._create_slider()\r\n\r\n formLayout = QtWidgets.QFormLayout()\r\n formLayout.addRow(self.tr(\"Brightness\"), self.slider_brightness)\r\n formLayout.addRow(self.tr(\"Contrast\"), self.slider_contrast)\r\n self.setLayout(formLayout)\r\n\r\n assert isinstance(img, PIL.Image.Image)\r\n self.img = img\r\n self.callback = callback\r\n\r\n def onNewValue(self, value):\r\n brightness = self.slider_brightness.value() / 50.0\r\n contrast = self.slider_contrast.value() / 50.0\r\n\r\n img = self.img\r\n img = PIL.ImageEnhance.Brightness(img).enhance(brightness)\r\n img = PIL.ImageEnhance.Contrast(img).enhance(contrast)\r\n\r\n img_data = utils.img_pil_to_data(img)\r\n qimage = QtGui.QImage.fromData(img_data)\r\n self.callback(qimage)\r\n\r\n def _create_slider(self):\r\n"} +{"file_name": "7d9c271b-064f-4f53-9533-68898d70c173.png", "code": " slider = QtWidgets.QSlider(Qt.Horizontal)\r\n slider.setRange(0, 150)\r\n slider.setValue(50)\r\n slider.valueChanged.connect(self.onNewValue)\r\n return slider\r\n"} +{"file_name": "becd87f9-259e-441a-8fee-c0feb090d36d.png", "code": "from qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\nfrom qtpy.QtCore import Qt\r\nfrom qtpy.QtGui import QPalette\r\nfrom qtpy.QtWidgets import QStyle\r\n\r\n\r\n# https://stackoverflow.com/a/2039745/4158863\r\nclass HTMLDelegate(QtWidgets.QStyledItemDelegate):\r\n def __init__(self, parent=None):\r\n super(HTMLDelegate, self).__init__()\r\n self.doc = QtGui.QTextDocument(self)\r\n\r\n def paint(self, painter, option, index):\r\n painter.save()\r\n\r\n options = QtWidgets.QStyleOptionViewItem(option)\r\n\r\n self.initStyleOption(options, index)\r\n self.doc.setHtml(options.text)\r\n options.text = \"\"\r\n\r\n style = (\r\n QtWidgets.QApplication.style()\r\n if options.widget is None\r\n else options.widget.style()\r\n )\r\n style.drawControl(QStyle.CE_ItemViewItem, options, painter)\r\n\r\n ctx = QtGui.QAbstractTextDocumentLayout.PaintContext()\r\n\r\n if option.state & QStyle.State_Selected:\r\n ctx.palette.setColor(\r\n QPalette.Text,\r\n option.palette.color(QPalette.Active, QPalette.HighlightedText),\r\n )\r\n else:\r\n ctx.palette.setColor(\r\n QPalette.Text,\r\n"} +{"file_name": "b38fba95-0bf1-40a9-b0db-63a4abf634ab.png", "code": " option.palette.color(QPalette.Active, QPalette.Text),\r\n )\r\n\r\n textRect = style.subElementRect(QStyle.SE_ItemViewItemText, options)\r\n\r\n if index.column() != 0:\r\n textRect.adjust(5, 0, 0, 0)\r\n\r\n thefuckyourshitup_constant = 4\r\n margin = (option.rect.height() - options.fontMetrics.height()) // 2\r\n margin = margin - thefuckyourshitup_constant\r\n textRect.setTop(textRect.top() + margin)\r\n\r\n painter.translate(textRect.topLeft())\r\n painter.setClipRect(textRect.translated(-textRect.topLeft()))\r\n self.doc.documentLayout().draw(painter, ctx)\r\n\r\n painter.restore()\r\n\r\n def sizeHint(self, option, index):\r\n thefuckyourshitup_constant = 4\r\n return QtCore.QSize(\r\n int(self.doc.idealWidth()),\r\n int(self.doc.size().height() - thefuckyourshitup_constant),\r\n )\r\n\r\n\r\nclass LabelListWidgetItem(QtGui.QStandardItem):\r\n def __init__(self, text=None, shape=None):\r\n super(LabelListWidgetItem, self).__init__()\r\n self.setText(text or \"\")\r\n self.setShape(shape)\r\n\r\n self.setCheckable(True)\r\n self.setCheckState(Qt.Checked)\r\n self.setEditable(False)\r\n self.setTextAlignment(Qt.AlignBottom)\r\n\r\n def clone(self):\r\n return LabelListWidgetItem(self.text(), self.shape())\r\n"} +{"file_name": "0fec92f9-7c3d-4489-883e-9193a890acc5.png", "code": "\r\n def setShape(self, shape):\r\n self.setData(shape, Qt.UserRole)\r\n\r\n def shape(self):\r\n return self.data(Qt.UserRole)\r\n\r\n def __hash__(self):\r\n return id(self)\r\n\r\n def __repr__(self):\r\n return '{}(\"{}\")'.format(self.__class__.__name__, self.text())\r\n\r\n\r\nclass StandardItemModel(QtGui.QStandardItemModel):\r\n itemDropped = QtCore.Signal()\r\n\r\n def removeRows(self, *args, **kwargs):\r\n ret = super().removeRows(*args, **kwargs)\r\n self.itemDropped.emit()\r\n return ret\r\n\r\n\r\nclass LabelListWidget(QtWidgets.QListView):\r\n itemDoubleClicked = QtCore.Signal(LabelListWidgetItem)\r\n itemSelectionChanged = QtCore.Signal(list, list)\r\n\r\n def __init__(self):\r\n super(LabelListWidget, self).__init__()\r\n self._selectedItems = []\r\n\r\n self.setWindowFlags(Qt.Window)\r\n self.setModel(StandardItemModel())\r\n self.model().setItemPrototype(LabelListWidgetItem())\r\n self.setItemDelegate(HTMLDelegate())\r\n self.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)\r\n self.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)\r\n self.setDefaultDropAction(Qt.MoveAction)\r\n\r\n self.doubleClicked.connect(self.itemDoubleClickedEvent)\r\n"} +{"file_name": "549355db-20ff-470e-bd20-939db2561634.png", "code": " self.selectionModel().selectionChanged.connect(self.itemSelectionChangedEvent)\r\n\r\n def __len__(self):\r\n return self.model().rowCount()\r\n\r\n def __getitem__(self, i):\r\n return self.model().item(i)\r\n\r\n def __iter__(self):\r\n for i in range(len(self)):\r\n yield self[i]\r\n\r\n @property\r\n def itemDropped(self):\r\n return self.model().itemDropped\r\n\r\n @property\r\n def itemChanged(self):\r\n return self.model().itemChanged\r\n\r\n def itemSelectionChangedEvent(self, selected, deselected):\r\n selected = [self.model().itemFromIndex(i) for i in selected.indexes()]\r\n deselected = [self.model().itemFromIndex(i) for i in deselected.indexes()]\r\n self.itemSelectionChanged.emit(selected, deselected)\r\n\r\n def itemDoubleClickedEvent(self, index):\r\n self.itemDoubleClicked.emit(self.model().itemFromIndex(index))\r\n\r\n def selectedItems(self):\r\n return [self.model().itemFromIndex(i) for i in self.selectedIndexes()]\r\n\r\n def scrollToItem(self, item):\r\n self.scrollTo(self.model().indexFromItem(item))\r\n\r\n def addItem(self, item):\r\n if not isinstance(item, LabelListWidgetItem):\r\n raise TypeError(\"item must be LabelListWidgetItem\")\r\n self.model().setItem(self.model().rowCount(), 0, item)\r\n item.setSizeHint(self.itemDelegate().sizeHint(None, None))\r\n\r\n"} +{"file_name": "c7b19afa-21e1-4bf2-a6ad-58154e50c430.png", "code": " def removeItem(self, item):\r\n index = self.model().indexFromItem(item)\r\n self.model().removeRows(index.row(), 1)\r\n\r\n def selectItem(self, item):\r\n index = self.model().indexFromItem(item)\r\n self.selectionModel().select(index, QtCore.QItemSelectionModel.Select)\r\n\r\n def findItemByShape(self, shape):\r\n for row in range(self.model().rowCount()):\r\n item = self.model().item(row, 0)\r\n if item.shape() == shape:\r\n return item\r\n raise ValueError(\"cannot find shape: {}\".format(shape))\r\n\r\n def clear(self):\r\n self.model().clear()\r\n"} +{"file_name": "10198bf8-fcbe-4f28-92a7-c708781346bd.png", "code": "from qtpy import QtWidgets\r\n\r\n\r\nclass ColorDialog(QtWidgets.QColorDialog):\r\n def __init__(self, parent=None):\r\n super(ColorDialog, self).__init__(parent)\r\n self.setOption(QtWidgets.QColorDialog.ShowAlphaChannel)\r\n # The Mac native dialog does not support our restore button.\r\n self.setOption(QtWidgets.QColorDialog.DontUseNativeDialog)\r\n # Add a restore defaults button.\r\n # The default is set at invocation time, so that it\r\n # works across dialogs for different elements.\r\n self.default = None\r\n self.bb = self.layout().itemAt(1).widget()\r\n self.bb.addButton(QtWidgets.QDialogButtonBox.RestoreDefaults)\r\n self.bb.clicked.connect(self.checkRestore)\r\n\r\n def getColor(self, value=None, title=None, default=None):\r\n self.default = default\r\n if title:\r\n self.setWindowTitle(title)\r\n if value:\r\n self.setCurrentColor(value)\r\n return self.currentColor() if self.exec_() else None\r\n\r\n def checkRestore(self, button):\r\n if (\r\n self.bb.buttonRole(button) & QtWidgets.QDialogButtonBox.ResetRole\r\n and self.default\r\n ):\r\n self.setCurrentColor(self.default)\r\n"} +{"file_name": "66f4ec78-d4aa-443c-a622-7cad22c985cb.png", "code": "#!/usr/bin/env python\r\n\r\nfrom __future__ import print_function\r\n\r\nimport argparse\r\nimport distutils.spawn\r\nimport json\r\nimport os\r\nimport os.path as osp\r\nimport platform\r\nimport shlex\r\nimport subprocess\r\nimport sys\r\n\r\n\r\ndef get_ip():\r\n dist = platform.platform().split(\"-\")[0]\r\n if dist == \"Linux\":\r\n return \"\"\r\n elif dist == \"Darwin\":\r\n cmd = \"ifconfig en0\"\r\n output = subprocess.check_output(shlex.split(cmd))\r\n if str != bytes: # Python3\r\n output = output.decode(\"utf-8\")\r\n for row in output.splitlines():\r\n cols = row.strip().split(\" \")\r\n if cols[0] == \"inet\":\r\n ip = cols[1]\r\n return ip\r\n else:\r\n raise RuntimeError(\"No ip is found.\")\r\n else:\r\n raise RuntimeError(\"Unsupported platform.\")\r\n\r\n\r\ndef labelme_on_docker(in_file, out_file):\r\n ip = get_ip()\r\n cmd = \"xhost + %s\" % ip\r\n subprocess.check_output(shlex.split(cmd))\r\n\r\n"} +{"file_name": "01fd7ff1-3eb3-49a8-bd42-8eb95127d0d4.png", "code": " if out_file:\r\n out_file = osp.abspath(out_file)\r\n if osp.exists(out_file):\r\n raise RuntimeError(\"File exists: %s\" % out_file)\r\n else:\r\n open(osp.abspath(out_file), \"w\")\r\n\r\n cmd = (\r\n \"docker run -it --rm\"\r\n \" -e DISPLAY={0}:0\"\r\n \" -e QT_X11_NO_MITSHM=1\"\r\n \" -v /tmp/.X11-unix:/tmp/.X11-unix\"\r\n \" -v {1}:{2}\"\r\n \" -w /home/developer\"\r\n )\r\n in_file_a = osp.abspath(in_file)\r\n in_file_b = osp.join(\"/home/developer\", osp.basename(in_file))\r\n cmd = cmd.format(\r\n ip,\r\n in_file_a,\r\n in_file_b,\r\n )\r\n if out_file:\r\n out_file_a = osp.abspath(out_file)\r\n out_file_b = osp.join(\"/home/developer\", osp.basename(out_file))\r\n cmd += \" -v {0}:{1}\".format(out_file_a, out_file_b)\r\n cmd += \" wkentaro/labelme labelme {0}\".format(in_file_b)\r\n if out_file:\r\n cmd += \" -O {0}\".format(out_file_b)\r\n subprocess.call(shlex.split(cmd))\r\n\r\n if out_file:\r\n try:\r\n json.load(open(out_file))\r\n return out_file\r\n except Exception:\r\n if open(out_file).read() == \"\":\r\n os.remove(out_file)\r\n raise RuntimeError(\"Annotation is cancelled.\")\r\n\r\n"} +{"file_name": "727001a2-1727-4fc8-b41f-af39ce620bbb.png", "code": "\r\ndef main():\r\n parser = argparse.ArgumentParser()\r\n parser.add_argument(\"in_file\", help=\"Input file or directory.\")\r\n parser.add_argument(\"-O\", \"--output\")\r\n args = parser.parse_args()\r\n\r\n if not distutils.spawn.find_executable(\"docker\"):\r\n print(\"Please install docker\", file=sys.stderr)\r\n sys.exit(1)\r\n\r\n try:\r\n out_file = labelme_on_docker(args.in_file, args.output)\r\n if out_file:\r\n print(\"Saved to: %s\" % out_file)\r\n except RuntimeError as e:\r\n sys.stderr.write(e.__str__() + \"\\n\")\r\n sys.exit(1)\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "bc19bb45-a161-4a46-b61f-89ce519f1e80.png", "code": "import argparse\r\nimport base64\r\nimport json\r\nimport os\r\nimport os.path as osp\r\n\r\nimport imgviz\r\nimport PIL.Image\r\n\r\nfrom labelme import utils\r\nfrom labelme.logger import logger\r\n\r\n\r\ndef main():\r\n logger.warning(\r\n \"DEPRECATED: This script will be removed in the near future. \"\r\n \"Please use `labelme_export_json` instead.\"\r\n )\r\n logger.warning(\r\n \"NOTE: This script is aimed to demonstrate how to convert a JSON file \"\r\n \"to a single image dataset. so it won't handle multiple JSON files to \"\r\n \"generate a real-use dataset.\"\r\n )\r\n\r\n parser = argparse.ArgumentParser()\r\n parser.add_argument(\"json_file\")\r\n parser.add_argument(\"-o\", \"--out\", default=None)\r\n args = parser.parse_args()\r\n\r\n json_file = args.json_file\r\n\r\n if args.out is None:\r\n out_dir = osp.basename(json_file).replace(\".\", \"_\")\r\n out_dir = osp.join(osp.dirname(json_file), out_dir)\r\n else:\r\n out_dir = args.out\r\n if not osp.exists(out_dir):\r\n os.mkdir(out_dir)\r\n\r\n data = json.load(open(json_file))\r\n"} +{"file_name": "262db83a-e4d9-4f07-b82a-7a9ac8636134.png", "code": " imageData = data.get(\"imageData\")\r\n\r\n if not imageData:\r\n imagePath = os.path.join(os.path.dirname(json_file), data[\"imagePath\"])\r\n with open(imagePath, \"rb\") as f:\r\n imageData = f.read()\r\n imageData = base64.b64encode(imageData).decode(\"utf-8\")\r\n img = utils.img_b64_to_arr(imageData)\r\n\r\n label_name_to_value = {\"_background_\": 0}\r\n for shape in sorted(data[\"shapes\"], key=lambda x: x[\"label\"]):\r\n label_name = shape[\"label\"]\r\n if label_name in label_name_to_value:\r\n label_value = label_name_to_value[label_name]\r\n else:\r\n label_value = len(label_name_to_value)\r\n label_name_to_value[label_name] = label_value\r\n lbl, _ = utils.shapes_to_label(img.shape, data[\"shapes\"], label_name_to_value)\r\n\r\n label_names = [None] * (max(label_name_to_value.values()) + 1)\r\n for name, value in label_name_to_value.items():\r\n label_names[value] = name\r\n\r\n lbl_viz = imgviz.label2rgb(\r\n lbl, imgviz.asgray(img), label_names=label_names, loc=\"rb\"\r\n )\r\n\r\n PIL.Image.fromarray(img).save(osp.join(out_dir, \"img.png\"))\r\n utils.lblsave(osp.join(out_dir, \"label.png\"), lbl)\r\n PIL.Image.fromarray(lbl_viz).save(osp.join(out_dir, \"label_viz.png\"))\r\n\r\n with open(osp.join(out_dir, \"label_names.txt\"), \"w\") as f:\r\n for lbl_name in label_names:\r\n f.write(lbl_name + \"\\n\")\r\n\r\n logger.info(\"Saved to: {}\".format(out_dir))\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "957ffab1-239d-4b56-bf18-bea50e9cf962.png", "code": "#!/usr/bin/env python\r\n\r\nimport argparse\r\nimport sys\r\n\r\nimport imgviz\r\nimport matplotlib.pyplot as plt\r\n\r\nfrom labelme import utils\r\nfrom labelme.label_file import LabelFile\r\n\r\nPY2 = sys.version_info[0] == 2\r\n\r\n\r\ndef main():\r\n parser = argparse.ArgumentParser()\r\n parser.add_argument(\"json_file\")\r\n args = parser.parse_args()\r\n\r\n label_file = LabelFile(args.json_file)\r\n img = utils.img_data_to_arr(label_file.imageData)\r\n\r\n label_name_to_value = {\"_background_\": 0}\r\n for shape in sorted(label_file.shapes, key=lambda x: x[\"label\"]):\r\n label_name = shape[\"label\"]\r\n if label_name in label_name_to_value:\r\n label_value = label_name_to_value[label_name]\r\n else:\r\n label_value = len(label_name_to_value)\r\n label_name_to_value[label_name] = label_value\r\n lbl, _ = utils.shapes_to_label(img.shape, label_file.shapes, label_name_to_value)\r\n\r\n label_names = [None] * (max(label_name_to_value.values()) + 1)\r\n for name, value in label_name_to_value.items():\r\n label_names[value] = name\r\n lbl_viz = imgviz.label2rgb(\r\n lbl,\r\n imgviz.asgray(img),\r\n label_names=label_names,\r\n font_size=30,\r\n"} +{"file_name": "79231ace-6e62-49e5-86de-e835ae0d255d.png", "code": " loc=\"rb\",\r\n )\r\n\r\n plt.subplot(121)\r\n plt.imshow(img)\r\n plt.subplot(122)\r\n plt.imshow(lbl_viz)\r\n plt.show()\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "02e60170-9115-44e4-88f6-fb95ca967686.png", "code": "# flake8: noqa\r\n\r\nfrom . import draw_json\r\nfrom . import draw_label_png\r\nfrom . import export_json\r\nfrom . import on_docker\r\n"} +{"file_name": "4dbd307e-8156-4448-a518-0e6fb4792e66.png", "code": "import argparse\r\nimport os\r\n\r\nimport imgviz\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nfrom labelme.logger import logger\r\n\r\n\r\ndef main():\r\n parser = argparse.ArgumentParser(\r\n formatter_class=argparse.ArgumentDefaultsHelpFormatter\r\n )\r\n parser.add_argument(\"label_png\", help=\"label PNG file\")\r\n parser.add_argument(\r\n \"--labels\",\r\n help=\"labels list (comma separated text or file)\",\r\n default=None,\r\n )\r\n parser.add_argument(\"--image\", help=\"image file\", default=None)\r\n args = parser.parse_args()\r\n\r\n if args.labels is not None:\r\n if os.path.exists(args.labels):\r\n with open(args.labels) as f:\r\n label_names = [label.strip() for label in f]\r\n else:\r\n label_names = args.labels.split(\",\")\r\n else:\r\n label_names = None\r\n\r\n if args.image is not None:\r\n image = imgviz.io.imread(args.image)\r\n else:\r\n image = None\r\n\r\n label = imgviz.io.imread(args.label_png)\r\n label = label.astype(np.int32)\r\n label[label == 255] = -1\r\n"} +{"file_name": "c0926412-5a47-47b1-95fe-d1a10174f1e5.png", "code": "\r\n unique_label_values = np.unique(label)\r\n\r\n logger.info(\"Label image shape: {}\".format(label.shape))\r\n logger.info(\"Label values: {}\".format(unique_label_values.tolist()))\r\n if label_names is not None:\r\n logger.info(\r\n \"Label names: {}\".format(\r\n [\r\n \"{}:{}\".format(label_value, label_names[label_value])\r\n for label_value in unique_label_values\r\n ]\r\n )\r\n )\r\n\r\n if args.image:\r\n num_cols = 2\r\n else:\r\n num_cols = 1\r\n\r\n plt.figure(figsize=(num_cols * 6, 5))\r\n\r\n plt.subplot(1, num_cols, 1)\r\n plt.title(args.label_png)\r\n label_viz = imgviz.label2rgb(\r\n label=label, label_names=label_names, font_size=label.shape[1] // 30\r\n )\r\n plt.imshow(label_viz)\r\n\r\n if image is not None:\r\n plt.subplot(1, num_cols, 2)\r\n label_viz_with_overlay = imgviz.label2rgb(\r\n label=label,\r\n image=image,\r\n label_names=label_names,\r\n font_size=label.shape[1] // 30,\r\n )\r\n plt.title(\"{}\\n{}\".format(args.label_png, args.image))\r\n plt.imshow(label_viz_with_overlay)\r\n\r\n"} +{"file_name": "a486c97f-6264-47e1-9a71-f65a09e23b7e.png", "code": " plt.tight_layout()\r\n plt.show()\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "6e637a12-e477-4239-9d3c-9c5b0ccac859.png", "code": "import argparse\r\nimport base64\r\nimport json\r\nimport os\r\nimport os.path as osp\r\n\r\nimport imgviz\r\nimport PIL.Image\r\n\r\nfrom labelme import utils\r\nfrom labelme.logger import logger\r\n\r\n\r\ndef main():\r\n parser = argparse.ArgumentParser()\r\n parser.add_argument(\"json_file\")\r\n parser.add_argument(\"-o\", \"--out\", default=None)\r\n args = parser.parse_args()\r\n\r\n json_file = args.json_file\r\n\r\n if args.out is None:\r\n out_dir = osp.splitext(osp.basename(json_file))[0]\r\n out_dir = osp.join(osp.dirname(json_file), out_dir)\r\n else:\r\n out_dir = args.out\r\n if not osp.exists(out_dir):\r\n os.mkdir(out_dir)\r\n\r\n data = json.load(open(json_file))\r\n imageData = data.get(\"imageData\")\r\n\r\n if not imageData:\r\n imagePath = os.path.join(os.path.dirname(json_file), data[\"imagePath\"])\r\n with open(imagePath, \"rb\") as f:\r\n imageData = f.read()\r\n imageData = base64.b64encode(imageData).decode(\"utf-8\")\r\n img = utils.img_b64_to_arr(imageData)\r\n\r\n label_name_to_value = {\"_background_\": 0}\r\n"} +{"file_name": "1bee7386-12ff-40b8-be21-700fe2aa9a28.png", "code": " for shape in sorted(data[\"shapes\"], key=lambda x: x[\"label\"]):\r\n label_name = shape[\"label\"]\r\n if label_name in label_name_to_value:\r\n label_value = label_name_to_value[label_name]\r\n else:\r\n label_value = len(label_name_to_value)\r\n label_name_to_value[label_name] = label_value\r\n lbl, _ = utils.shapes_to_label(img.shape, data[\"shapes\"], label_name_to_value)\r\n\r\n label_names = [None] * (max(label_name_to_value.values()) + 1)\r\n for name, value in label_name_to_value.items():\r\n label_names[value] = name\r\n\r\n lbl_viz = imgviz.label2rgb(\r\n lbl, imgviz.asgray(img), label_names=label_names, loc=\"rb\"\r\n )\r\n\r\n PIL.Image.fromarray(img).save(osp.join(out_dir, \"img.png\"))\r\n utils.lblsave(osp.join(out_dir, \"label.png\"), lbl)\r\n PIL.Image.fromarray(lbl_viz).save(osp.join(out_dir, \"label_viz.png\"))\r\n\r\n with open(osp.join(out_dir, \"label_names.txt\"), \"w\") as f:\r\n for lbl_name in label_names:\r\n f.write(lbl_name + \"\\n\")\r\n\r\n logger.info(\"Saved to: {}\".format(out_dir))\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()\r\n"} +{"file_name": "61bf6d9b-ce18-4e0a-83d4-c51e19b0eaf6.png", "code": "# MIT License\r\n# Copyright (c) Kentaro Wada\r\n\r\nimport os.path as osp\r\n\r\nimport numpy as np\r\nimport PIL.Image\r\n\r\n\r\ndef lblsave(filename, lbl):\r\n import imgviz\r\n\r\n if osp.splitext(filename)[1] != \".png\":\r\n filename += \".png\"\r\n # Assume label ranses [-1, 254] for int32,\r\n # and [0, 255] for uint8 as VOC.\r\n if lbl.min() >= -1 and lbl.max() < 255:\r\n lbl_pil = PIL.Image.fromarray(lbl.astype(np.uint8), mode=\"P\")\r\n colormap = imgviz.label_colormap()\r\n lbl_pil.putpalette(colormap.flatten())\r\n lbl_pil.save(filename)\r\n else:\r\n raise ValueError(\r\n \"[%s] Cannot save the pixel-wise class label as PNG. \"\r\n \"Please consider using the .npy format.\" % filename\r\n )\r\n"} +{"file_name": "4fcd4bcd-c2b4-4f93-b92b-9e0864427c37.png", "code": "# flake8: noqa\r\n\r\nfrom ._io import lblsave\r\n\r\nfrom .image import apply_exif_orientation\r\nfrom .image import img_arr_to_b64\r\nfrom .image import img_arr_to_data\r\nfrom .image import img_b64_to_arr\r\nfrom .image import img_data_to_arr\r\nfrom .image import img_data_to_pil\r\nfrom .image import img_data_to_png_data\r\nfrom .image import img_pil_to_data\r\nfrom .image import img_qt_to_arr\r\n\r\nfrom .shape import labelme_shapes_to_label\r\nfrom .shape import masks_to_bboxes\r\nfrom .shape import polygons_to_mask\r\nfrom .shape import shape_to_mask\r\nfrom .shape import shapes_to_label\r\n\r\nfrom .qt import newIcon\r\nfrom .qt import newButton\r\nfrom .qt import newAction\r\nfrom .qt import addActions\r\nfrom .qt import labelValidator\r\nfrom .qt import struct\r\nfrom .qt import distance\r\nfrom .qt import distancetoline\r\nfrom .qt import fmtShortcut\r\n"} +{"file_name": "5af455e3-091c-46e0-8f40-aa9f38f865b9.png", "code": "# MIT License\r\n# Copyright (c) Kentaro Wada\r\n\r\nimport math\r\nimport uuid\r\n\r\nimport numpy as np\r\nimport PIL.Image\r\nimport PIL.ImageDraw\r\n\r\nfrom labelme.logger import logger\r\n\r\n\r\ndef polygons_to_mask(img_shape, polygons, shape_type=None):\r\n logger.warning(\r\n \"The 'polygons_to_mask' function is deprecated, \" \"use 'shape_to_mask' instead.\"\r\n )\r\n return shape_to_mask(img_shape, points=polygons, shape_type=shape_type)\r\n\r\n\r\ndef shape_to_mask(img_shape, points, shape_type=None, line_width=10, point_size=5):\r\n mask = np.zeros(img_shape[:2], dtype=np.uint8)\r\n mask = PIL.Image.fromarray(mask)\r\n draw = PIL.ImageDraw.Draw(mask)\r\n xy = [tuple(point) for point in points]\r\n if shape_type == \"circle\":\r\n assert len(xy) == 2, \"Shape of shape_type=circle must have 2 points\"\r\n (cx, cy), (px, py) = xy\r\n d = math.sqrt((cx - px) ** 2 + (cy - py) ** 2)\r\n draw.ellipse([cx - d, cy - d, cx + d, cy + d], outline=1, fill=1)\r\n elif shape_type == \"rectangle\":\r\n assert len(xy) == 2, \"Shape of shape_type=rectangle must have 2 points\"\r\n draw.rectangle(xy, outline=1, fill=1)\r\n elif shape_type == \"line\":\r\n assert len(xy) == 2, \"Shape of shape_type=line must have 2 points\"\r\n draw.line(xy=xy, fill=1, width=line_width)\r\n elif shape_type == \"linestrip\":\r\n draw.line(xy=xy, fill=1, width=line_width)\r\n elif shape_type == \"point\":\r\n assert len(xy) == 1, \"Shape of shape_type=point must have 1 points\"\r\n"} +{"file_name": "ece01833-a1a0-4d74-8ecb-a558cbb6a633.png", "code": " cx, cy = xy[0]\r\n r = point_size\r\n draw.ellipse([cx - r, cy - r, cx + r, cy + r], outline=1, fill=1)\r\n else:\r\n assert len(xy) > 2, \"Polygon must have points more than 2\"\r\n draw.polygon(xy=xy, outline=1, fill=1)\r\n mask = np.array(mask, dtype=bool)\r\n return mask\r\n\r\n\r\ndef shapes_to_label(img_shape, shapes, label_name_to_value):\r\n cls = np.zeros(img_shape[:2], dtype=np.int32)\r\n ins = np.zeros_like(cls)\r\n instances = []\r\n for shape in shapes:\r\n points = shape[\"points\"]\r\n label = shape[\"label\"]\r\n group_id = shape.get(\"group_id\")\r\n if group_id is None:\r\n group_id = uuid.uuid1()\r\n shape_type = shape.get(\"shape_type\", None)\r\n\r\n cls_name = label\r\n instance = (cls_name, group_id)\r\n\r\n if instance not in instances:\r\n instances.append(instance)\r\n ins_id = instances.index(instance) + 1\r\n cls_id = label_name_to_value[cls_name]\r\n\r\n mask = shape_to_mask(img_shape[:2], points, shape_type)\r\n cls[mask] = cls_id\r\n ins[mask] = ins_id\r\n\r\n return cls, ins\r\n\r\n\r\ndef labelme_shapes_to_label(img_shape, shapes):\r\n logger.warn(\r\n \"labelme_shapes_to_label is deprecated, so please use \" \"shapes_to_label.\"\r\n"} +{"file_name": "cada8d53-32fc-4b11-945b-e1b3f89798e9.png", "code": " )\r\n\r\n label_name_to_value = {\"_background_\": 0}\r\n for shape in shapes:\r\n label_name = shape[\"label\"]\r\n if label_name in label_name_to_value:\r\n label_value = label_name_to_value[label_name]\r\n else:\r\n label_value = len(label_name_to_value)\r\n label_name_to_value[label_name] = label_value\r\n\r\n lbl, _ = shapes_to_label(img_shape, shapes, label_name_to_value)\r\n return lbl, label_name_to_value\r\n\r\n\r\ndef masks_to_bboxes(masks):\r\n if masks.ndim != 3:\r\n raise ValueError(\"masks.ndim must be 3, but it is {}\".format(masks.ndim))\r\n if masks.dtype != bool:\r\n raise ValueError(\r\n \"masks.dtype must be bool type, but it is {}\".format(masks.dtype)\r\n )\r\n bboxes = []\r\n for mask in masks:\r\n where = np.argwhere(mask)\r\n (y1, x1), (y2, x2) = where.min(0), where.max(0) + 1\r\n bboxes.append((y1, x1, y2, x2))\r\n bboxes = np.asarray(bboxes, dtype=np.float32)\r\n return bboxes\r\n"} +{"file_name": "97863a42-39b2-4438-9aba-58774dafa832.png", "code": "# MIT License\r\n# Copyright (c) Kentaro Wada\r\n\r\nimport base64\r\nimport io\r\n\r\nimport numpy as np\r\nimport PIL.ExifTags\r\nimport PIL.Image\r\nimport PIL.ImageOps\r\n\r\n\r\ndef img_data_to_pil(img_data):\r\n f = io.BytesIO()\r\n f.write(img_data)\r\n img_pil = PIL.Image.open(f)\r\n return img_pil\r\n\r\n\r\ndef img_data_to_arr(img_data):\r\n img_pil = img_data_to_pil(img_data)\r\n img_arr = np.array(img_pil)\r\n return img_arr\r\n\r\n\r\ndef img_b64_to_arr(img_b64):\r\n img_data = base64.b64decode(img_b64)\r\n img_arr = img_data_to_arr(img_data)\r\n return img_arr\r\n\r\n\r\ndef img_pil_to_data(img_pil):\r\n f = io.BytesIO()\r\n img_pil.save(f, format=\"PNG\")\r\n img_data = f.getvalue()\r\n return img_data\r\n\r\n\r\ndef img_arr_to_b64(img_arr):\r\n img_data = img_arr_to_data(img_arr)\r\n"} +{"file_name": "fd5d859b-41cf-4c2e-a911-384a4cded15c.png", "code": " img_b64 = base64.b64encode(img_data).decode(\"utf-8\")\r\n return img_b64\r\n\r\n\r\ndef img_arr_to_data(img_arr):\r\n img_pil = PIL.Image.fromarray(img_arr)\r\n img_data = img_pil_to_data(img_pil)\r\n return img_data\r\n\r\n\r\ndef img_data_to_png_data(img_data):\r\n with io.BytesIO() as f:\r\n f.write(img_data)\r\n img = PIL.Image.open(f)\r\n\r\n with io.BytesIO() as f:\r\n img.save(f, \"PNG\")\r\n f.seek(0)\r\n return f.read()\r\n\r\n\r\ndef img_qt_to_arr(img_qt):\r\n w, h, d = img_qt.size().width(), img_qt.size().height(), img_qt.depth()\r\n bytes_ = img_qt.bits().asstring(w * h * d // 8)\r\n img_arr = np.frombuffer(bytes_, dtype=np.uint8).reshape((h, w, d // 8))\r\n return img_arr\r\n\r\n\r\ndef apply_exif_orientation(image):\r\n try:\r\n exif = image._getexif()\r\n except AttributeError:\r\n exif = None\r\n\r\n if exif is None:\r\n return image\r\n\r\n exif = {PIL.ExifTags.TAGS[k]: v for k, v in exif.items() if k in PIL.ExifTags.TAGS}\r\n\r\n orientation = exif.get(\"Orientation\", None)\r\n"} +{"file_name": "c02467d4-f8e7-45d8-b5e2-7024e4c383db.png", "code": "\r\n if orientation == 1:\r\n # do nothing\r\n return image\r\n elif orientation == 2:\r\n # left-to-right mirror\r\n return PIL.ImageOps.mirror(image)\r\n elif orientation == 3:\r\n # rotate 180\r\n return image.transpose(PIL.Image.ROTATE_180)\r\n elif orientation == 4:\r\n # top-to-bottom mirror\r\n return PIL.ImageOps.flip(image)\r\n elif orientation == 5:\r\n # top-to-left mirror\r\n return PIL.ImageOps.mirror(image.transpose(PIL.Image.ROTATE_270))\r\n elif orientation == 6:\r\n # rotate 270\r\n return image.transpose(PIL.Image.ROTATE_270)\r\n elif orientation == 7:\r\n # top-to-right mirror\r\n return PIL.ImageOps.mirror(image.transpose(PIL.Image.ROTATE_90))\r\n elif orientation == 8:\r\n # rotate 90\r\n return image.transpose(PIL.Image.ROTATE_90)\r\n else:\r\n return image\r\n"} +{"file_name": "1c37d4d8-ece1-4320-b80e-667331a50201.png", "code": "import os.path as osp\r\nfrom math import sqrt\r\n\r\nimport numpy as np\r\nfrom qtpy import QtCore\r\nfrom qtpy import QtGui\r\nfrom qtpy import QtWidgets\r\n\r\nhere = osp.dirname(osp.abspath(__file__))\r\n\r\n\r\ndef newIcon(icon):\r\n icons_dir = osp.join(here, \"../icons\")\r\n return QtGui.QIcon(osp.join(\":/\", icons_dir, \"%s.png\" % icon))\r\n\r\n\r\ndef newButton(text, icon=None, slot=None):\r\n b = QtWidgets.QPushButton(text)\r\n if icon is not None:\r\n b.setIcon(newIcon(icon))\r\n if slot is not None:\r\n b.clicked.connect(slot)\r\n return b\r\n\r\n\r\ndef newAction(\r\n parent,\r\n text,\r\n slot=None,\r\n shortcut=None,\r\n icon=None,\r\n tip=None,\r\n checkable=False,\r\n enabled=True,\r\n checked=False,\r\n):\r\n \"\"\"Create a new action and assign callbacks, shortcuts, etc.\"\"\"\r\n a = QtWidgets.QAction(text, parent)\r\n if icon is not None:\r\n a.setIconText(text.replace(\" \", \"\\n\"))\r\n"} +{"file_name": "dc467cf4-9146-4050-a0f6-2a377e0adb61.png", "code": " a.setIcon(newIcon(icon))\r\n if shortcut is not None:\r\n if isinstance(shortcut, (list, tuple)):\r\n a.setShortcuts(shortcut)\r\n else:\r\n a.setShortcut(shortcut)\r\n if tip is not None:\r\n a.setToolTip(tip)\r\n a.setStatusTip(tip)\r\n if slot is not None:\r\n a.triggered.connect(slot)\r\n if checkable:\r\n a.setCheckable(True)\r\n a.setEnabled(enabled)\r\n a.setChecked(checked)\r\n return a\r\n\r\n\r\ndef addActions(widget, actions):\r\n for action in actions:\r\n if action is None:\r\n widget.addSeparator()\r\n elif isinstance(action, QtWidgets.QMenu):\r\n widget.addMenu(action)\r\n else:\r\n widget.addAction(action)\r\n\r\n\r\ndef labelValidator():\r\n return QtGui.QRegExpValidator(QtCore.QRegExp(r\"^[^ \\t].+\"), None)\r\n\r\n\r\nclass struct(object):\r\n def __init__(self, **kwargs):\r\n self.__dict__.update(kwargs)\r\n\r\n\r\ndef distance(p):\r\n return sqrt(p.x() * p.x() + p.y() * p.y())\r\n\r\n"} +{"file_name": "5457afce-29ae-4e71-a942-a2422718e1b4.png", "code": "\r\ndef distancetoline(point, line):\r\n p1, p2 = line\r\n p1 = np.array([p1.x(), p1.y()])\r\n p2 = np.array([p2.x(), p2.y()])\r\n p3 = np.array([point.x(), point.y()])\r\n if np.dot((p3 - p1), (p2 - p1)) < 0:\r\n return np.linalg.norm(p3 - p1)\r\n if np.dot((p3 - p2), (p1 - p2)) < 0:\r\n return np.linalg.norm(p3 - p2)\r\n if np.linalg.norm(p2 - p1) == 0:\r\n return np.linalg.norm(p3 - p1)\r\n return np.linalg.norm(np.cross(p2 - p1, p1 - p3)) / np.linalg.norm(p2 - p1)\r\n\r\n\r\ndef fmtShortcut(text):\r\n mod, key = text.split(\"+\", 1)\r\n return \"%s+%s\" % (mod, key)\r\n"} +{"file_name": "ef2809c9-be74-4daf-8b81-a9f0ab528292.png", "code": "import os.path as osp\r\nimport shutil\r\nimport tempfile\r\n\r\nimport pytest\r\n\r\nimport labelme.app\r\nimport labelme.config\r\nimport labelme.testing\r\n\r\nhere = osp.dirname(osp.abspath(__file__))\r\ndata_dir = osp.join(here, \"data\")\r\n\r\n\r\ndef _win_show_and_wait_imageData(qtbot, win):\r\n win.show()\r\n\r\n def check_imageData():\r\n assert hasattr(win, \"imageData\")\r\n assert win.imageData is not None\r\n\r\n qtbot.waitUntil(check_imageData) # wait for loadFile\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_MainWindow_open(qtbot):\r\n win = labelme.app.MainWindow()\r\n qtbot.addWidget(win)\r\n win.show()\r\n win.close()\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_MainWindow_open_img(qtbot):\r\n img_file = osp.join(data_dir, \"raw/2011_000003.jpg\")\r\n win = labelme.app.MainWindow(filename=img_file)\r\n qtbot.addWidget(win)\r\n _win_show_and_wait_imageData(qtbot, win)\r\n win.close()\r\n\r\n"} +{"file_name": "dece4684-6476-4f57-ae2e-542c016c7fb2.png", "code": "\r\n@pytest.mark.gui\r\ndef test_MainWindow_open_json(qtbot):\r\n json_files = [\r\n osp.join(data_dir, \"annotated_with_data/apc2016_obj3.json\"),\r\n osp.join(data_dir, \"annotated/2011_000003.json\"),\r\n ]\r\n for json_file in json_files:\r\n labelme.testing.assert_labelfile_sanity(json_file)\r\n\r\n win = labelme.app.MainWindow(filename=json_file)\r\n qtbot.addWidget(win)\r\n _win_show_and_wait_imageData(qtbot, win)\r\n win.close()\r\n\r\n\r\ndef create_MainWindow_with_directory(qtbot):\r\n directory = osp.join(data_dir, \"raw\")\r\n win = labelme.app.MainWindow(filename=directory)\r\n qtbot.addWidget(win)\r\n _win_show_and_wait_imageData(qtbot, win)\r\n return win\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_MainWindow_openNextImg(qtbot):\r\n win = create_MainWindow_with_directory(qtbot)\r\n win.openNextImg()\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_MainWindow_openPrevImg(qtbot):\r\n win = create_MainWindow_with_directory(qtbot)\r\n win.openNextImg()\r\n\r\n\r\n@pytest.mark.gui\r\ndef test_MainWindow_annotate_jpg(qtbot):\r\n tmp_dir = tempfile.mkdtemp()\r\n input_file = osp.join(data_dir, \"raw/2011_000003.jpg\")\r\n"} +{"file_name": "e246e3a3-c85c-4bf8-ac8a-fecb3425fc39.png", "code": " out_file = osp.join(tmp_dir, \"2011_000003.json\")\r\n\r\n config = labelme.config.get_default_config()\r\n win = labelme.app.MainWindow(\r\n config=config,\r\n filename=input_file,\r\n output_file=out_file,\r\n )\r\n qtbot.addWidget(win)\r\n _win_show_and_wait_imageData(qtbot, win)\r\n\r\n label = \"whole\"\r\n points = [\r\n (100, 100),\r\n (100, 238),\r\n (400, 238),\r\n (400, 100),\r\n ]\r\n shapes = [\r\n dict(\r\n label=label,\r\n group_id=None,\r\n points=points,\r\n shape_type=\"polygon\",\r\n mask=None,\r\n flags={},\r\n other_data={},\r\n )\r\n ]\r\n win.loadLabels(shapes)\r\n win.saveFile()\r\n\r\n labelme.testing.assert_labelfile_sanity(out_file)\r\n shutil.rmtree(tmp_dir)\r\n"} +{"file_name": "5d4badfd-27bc-4fb3-a52f-eb62d4015fe7.png", "code": "#!/usr/bin/env python\r\n\r\nimport argparse\r\nimport collections\r\nimport datetime\r\nimport glob\r\nimport json\r\nimport os\r\nimport os.path as osp\r\nimport sys\r\nimport uuid\r\n\r\nimport imgviz\r\nimport numpy as np\r\n\r\nimport labelme\r\n\r\ntry:\r\n import pycocotools.mask\r\nexcept ImportError:\r\n print(\"Please install pycocotools:\\n\\n pip install pycocotools\\n\")\r\n sys.exit(1)\r\n\r\n\r\ndef main():\r\n parser = argparse.ArgumentParser(\r\n formatter_class=argparse.ArgumentDefaultsHelpFormatter\r\n )\r\n parser.add_argument(\"input_dir\", help=\"input annotated directory\")\r\n parser.add_argument(\"output_dir\", help=\"output dataset directory\")\r\n parser.add_argument(\"--labels\", help=\"labels file\", required=True)\r\n parser.add_argument(\"--noviz\", help=\"no visualization\", action=\"store_true\")\r\n args = parser.parse_args()\r\n\r\n if osp.exists(args.output_dir):\r\n print(\"Output directory already exists:\", args.output_dir)\r\n sys.exit(1)\r\n os.makedirs(args.output_dir)\r\n os.makedirs(osp.join(args.output_dir, \"JPEGImages\"))\r\n if not args.noviz:\r\n"} +{"file_name": "85a7268b-68f3-4cc0-8af9-38bc0d26d05c.png", "code": " os.makedirs(osp.join(args.output_dir, \"Visualization\"))\r\n print(\"Creating dataset:\", args.output_dir)\r\n\r\n now = datetime.datetime.now()\r\n\r\n data = dict(\r\n info=dict(\r\n description=None,\r\n url=None,\r\n version=None,\r\n year=now.year,\r\n contributor=None,\r\n date_created=now.strftime(\"%Y-%m-%d %H:%M:%S.%f\"),\r\n ),\r\n licenses=[\r\n dict(\r\n url=None,\r\n id=0,\r\n name=None,\r\n )\r\n ],\r\n images=[\r\n # license, url, file_name, height, width, date_captured, id\r\n ],\r\n type=\"instances\",\r\n annotations=[\r\n # segmentation, area, iscrowd, image_id, bbox, category_id, id\r\n ],\r\n categories=[\r\n # supercategory, id, name\r\n ],\r\n )\r\n\r\n class_name_to_id = {}\r\n for i, line in enumerate(open(args.labels).readlines()):\r\n class_id = i - 1 # starts with -1\r\n class_name = line.strip()\r\n if class_id == -1:\r\n assert class_name == \"__ignore__\"\r\n continue\r\n"} +{"file_name": "8fb2be33-f218-4544-a3f9-880758c3e9db.png", "code": " class_name_to_id[class_name] = class_id\r\n data[\"categories\"].append(\r\n dict(\r\n supercategory=None,\r\n id=class_id,\r\n name=class_name,\r\n )\r\n )\r\n\r\n out_ann_file = osp.join(args.output_dir, \"annotations.json\")\r\n label_files = glob.glob(osp.join(args.input_dir, \"*.json\"))\r\n for image_id, filename in enumerate(label_files):\r\n print(\"Generating dataset from:\", filename)\r\n\r\n label_file = labelme.LabelFile(filename=filename)\r\n\r\n base = osp.splitext(osp.basename(filename))[0]\r\n out_img_file = osp.join(args.output_dir, \"JPEGImages\", base + \".jpg\")\r\n\r\n img = labelme.utils.img_data_to_arr(label_file.imageData)\r\n imgviz.io.imsave(out_img_file, img)\r\n data[\"images\"].append(\r\n dict(\r\n license=0,\r\n url=None,\r\n file_name=osp.relpath(out_img_file, osp.dirname(out_ann_file)),\r\n height=img.shape[0],\r\n width=img.shape[1],\r\n date_captured=None,\r\n id=image_id,\r\n )\r\n )\r\n\r\n masks = {} # for area\r\n segmentations = collections.defaultdict(list) # for segmentation\r\n for shape in label_file.shapes:\r\n points = shape[\"points\"]\r\n label = shape[\"label\"]\r\n group_id = shape.get(\"group_id\")\r\n shape_type = shape.get(\"shape_type\", \"polygon\")\r\n"} +{"file_name": "1d5ec8ca-f46b-42fb-b2d4-651276e4909b.png", "code": " mask = labelme.utils.shape_to_mask(img.shape[:2], points, shape_type)\r\n\r\n if group_id is None:\r\n group_id = uuid.uuid1()\r\n\r\n instance = (label, group_id)\r\n\r\n if instance in masks:\r\n masks[instance] = masks[instance] | mask\r\n else:\r\n masks[instance] = mask\r\n\r\n if shape_type == \"rectangle\":\r\n (x1, y1), (x2, y2) = points\r\n x1, x2 = sorted([x1, x2])\r\n y1, y2 = sorted([y1, y2])\r\n points = [x1, y1, x2, y1, x2, y2, x1, y2]\r\n if shape_type == \"circle\":\r\n (x1, y1), (x2, y2) = points\r\n r = np.linalg.norm([x2 - x1, y2 - y1])\r\n # r(1-cos(a/2))