Skip to content

Instantly share code, notes, and snippets.

@AaronNBrock
Last active June 28, 2019 08:13
Show Gist options
  • Save AaronNBrock/0dd74c35b5913bb18370cc565ff3e065 to your computer and use it in GitHub Desktop.
Save AaronNBrock/0dd74c35b5913bb18370cc565ff3e065 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<annotations>
<version>1.1</version>
<meta>
<task>
<id>9</id>
<name>hyperloop-test</name>
<size>4936</size>
<mode>interpolation</mode>
<overlap>5</overlap>
<bugtracker></bugtracker>
<created>2019-06-27 09:42:02.145575+03:00</created>
<updated>2019-06-27 10:56:08.123044+03:00</updated>
<start_frame>0</start_frame>
<stop_frame>4935</stop_frame>
<frame_filter></frame_filter>
<labels>
<label>
<name>vehicle</name>
<attributes>
<attribute>
<name>type</name>
<mutable>False</mutable>
<input_type>select</input_type>
<default_value>car</default_value>
<values>car
truck
bus</values>
</attribute>
</attributes>
</label>
<label>
<name>person</name>
<attributes>
</attributes>
</label>
<label>
<name>road</name>
<attributes>
</attributes>
</label>
<label>
<name>lane-line</name>
<attributes>
</attributes>
</label>
</labels>
<segments>
<segment>
<id>8</id>
<start>0</start>
<stop>4935</stop>
<url>http://192.168.98.101:8080/?id=8</url>
</segment>
</segments>
<owner>
<username>admin</username>
<email>admin@example.com</email>
</owner>
<original_size>
<width>1280</width>
<height>320</height>
</original_size>
</task>
<dumped>2019-06-27 12:24:41.127236+03:00</dumped>
<source>/home/django/data/9/.upload/2019-06-02-02-34-55_right.avi</source>
</meta>
<track id="0" label="vehicle">
<polygon frame="5" outside="0" occluded="0" keyframe="1" points="374.90,0.00;408.63,21.90;433.62,48.05;459.18,77.10;459.76,86.39;421.41,128.23;365.64,170.64;338.91,174.13;279.06,159.02;201.79,135.78;141.94,109.63;0.00,43.98;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="6" outside="1" occluded="0" keyframe="1" points="374.90,0.00;408.63,21.90;433.62,48.05;459.18,77.10;459.76,86.39;421.41,128.23;365.64,170.64;338.91,174.13;279.06,159.02;201.79,135.78;141.94,109.63;0.00,43.98;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="1" label="vehicle">
<polygon frame="6" outside="0" occluded="0" keyframe="1" points="381.10,0.00;414.24,22.41;439.22,48.55;464.79,77.60;465.37,86.90;427.02,128.73;371.24,171.15;344.52,174.63;284.67,159.53;207.39,136.29;147.55,110.14;0.00,38.10;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="7" outside="1" occluded="0" keyframe="1" points="381.10,0.00;414.24,22.41;439.22,48.55;464.79,77.60;465.37,86.90;427.02,128.73;371.24,171.15;344.52,174.63;284.67,159.53;207.39,136.29;147.55,110.14;0.00,38.10;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="2" label="vehicle">
<polygon frame="7" outside="0" occluded="0" keyframe="1" points="393.20,0.00;423.00,21.20;447.94,49.71;473.50,78.77;474.09,88.06;435.74,129.90;379.96,172.31;353.23,175.80;293.39,160.69;191.10,125.20;123.70,93.90;0.00,35.20;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="8" outside="1" occluded="0" keyframe="1" points="393.20,0.00;423.00,21.20;447.94,49.71;473.50,78.77;474.09,88.06;435.74,129.90;379.96,172.31;353.23,175.80;293.39,160.69;191.10,125.20;123.70,93.90;0.00,35.20;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="3" label="vehicle">
<polygon frame="8" outside="0" occluded="0" keyframe="1" points="395.00,0.00;428.80,21.20;453.20,48.60;476.40,77.60;477.00,90.40;439.22,131.06;383.45,173.47;356.72,176.96;298.00,159.50;219.60,130.50;132.40,94.50;0.00,32.90;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="9" outside="1" occluded="0" keyframe="1" points="395.00,0.00;428.80,21.20;453.20,48.60;476.40,77.60;477.00,90.40;439.22,131.06;383.45,173.47;356.72,176.96;298.00,159.50;219.60,130.50;132.40,94.50;0.00,32.90;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="4" label="vehicle">
<polygon frame="9" outside="0" occluded="0" keyframe="1" points="404.80,0.00;438.57,20.29;462.97,47.69;486.17,76.69;486.77,89.49;449.00,130.15;393.22,172.56;366.49,176.05;307.77,158.59;229.37,129.59;142.17,93.59;0.00,27.30;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="10" outside="1" occluded="0" keyframe="1" points="404.80,0.00;438.57,20.29;462.97,47.69;486.17,76.69;486.77,89.49;449.00,130.15;393.22,172.56;366.49,176.05;307.77,158.59;229.37,129.59;142.17,93.59;0.00,27.30;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="5" label="vehicle">
<polygon frame="10" outside="0" occluded="0" keyframe="1" points="411.60,0.00;454.50,32.80;467.90,54.26;483.58,72.27;490.56,77.50;490.56,89.71;453.95,134.44;401.08,175.70;374.35,177.44;324.38,162.33;245.94,134.44;179.13,104.81;102.43,77.50;30.96,42.64;0.00,26.95;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="11" outside="1" occluded="0" keyframe="1" points="411.60,0.00;454.50,32.80;467.90,54.26;483.58,72.27;490.56,77.50;490.56,89.71;453.95,134.44;401.08,175.70;374.35,177.44;324.38,162.33;245.94,134.44;179.13,104.81;102.43,77.50;30.96,42.64;0.00,26.95;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="6" label="vehicle">
<polygon frame="0" outside="0" occluded="0" keyframe="1" points="340.30,0.00;425.10,71.20;428.90,82.90;376.00,129.30;320.00,171.30;294.53,172.52;271.94,169.69;215.85,155.17;163.80,139.83;110.94,120.87;0.00,67.61;0.00,0.00" z_order="22">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="1" outside="1" occluded="0" keyframe="1" points="340.30,0.00;425.10,71.20;428.90,82.90;376.00,129.30;320.00,171.30;294.53,172.52;271.94,169.69;215.85,155.17;163.80,139.83;110.94,120.87;0.00,67.61;0.00,0.00" z_order="22">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="7" label="vehicle">
<polygon frame="1" outside="0" occluded="0" keyframe="1" points="349.80,0.00;435.16,71.91;438.96,83.61;386.06,130.01;330.06,172.01;304.59,173.23;282.00,170.40;225.91,155.88;173.86,140.54;121.00,121.58;0.00,58.00;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="2" outside="1" occluded="0" keyframe="1" points="349.80,0.00;435.16,71.91;438.96,83.61;386.06,130.01;330.06,172.01;304.59,173.23;282.00,170.40;225.91,155.88;173.86,140.54;121.00,121.58;0.00,58.00;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="8" label="vehicle">
<polygon frame="2" outside="0" occluded="0" keyframe="1" points="355.30,0.00;439.70,73.80;443.98,84.94;391.08,131.34;335.08,173.34;309.62,174.56;287.02,171.74;230.93,157.21;178.88,141.88;126.03,122.91;0.00,57.80;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="3" outside="1" occluded="0" keyframe="1" points="355.30,0.00;439.70,73.80;443.98,84.94;391.08,131.34;335.08,173.34;309.62,174.56;287.02,171.74;230.93,157.21;178.88,141.88;126.03,122.91;0.00,57.80;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="9" label="vehicle">
<polygon frame="3" outside="0" occluded="0" keyframe="1" points="366.45,0.00;404.61,30.11;444.77,72.28;450.40,86.80;404.50,131.20;348.49,173.25;323.03,174.46;300.43,171.64;244.34,157.11;192.30,141.80;139.44,122.82;0.00,47.00;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="4" outside="1" occluded="0" keyframe="1" points="366.45,0.00;404.61,30.11;444.77,72.28;450.40,86.80;404.50,131.20;348.49,173.25;323.03,174.46;300.43,171.64;244.34,157.11;192.30,141.80;139.44,122.82;0.00,47.00;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
<track id="10" label="vehicle">
<polygon frame="4" outside="0" occluded="0" keyframe="1" points="365.80,0.00;403.58,25.97;422.75,47.46;439.60,64.90;453.55,80.00;451.80,87.56;407.06,132.29;351.28,172.39;331.53,176.45;297.83,171.22;269.94,161.35;200.80,138.69;84.59,94.53;0.00,53.86;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
<polygon frame="5" outside="1" occluded="0" keyframe="1" points="365.80,0.00;403.58,25.97;422.75,47.46;439.60,64.90;453.55,80.00;451.80,87.56;407.06,132.29;351.28,172.39;331.53,176.45;297.83,171.22;269.94,161.35;200.80,138.69;84.59,94.53;0.00,53.86;0.00,0.00" z_order="1">
<attribute name="type">car</attribute>
</polygon>
</track>
</annotations>
python converter.py --cvat-xml ./9_hyperloop-test.xml --output-dir ./out --mask-bitness 24 --label-color vehicle:255,0,0 --background-color 0,0,0
Generate masks: 0it [00:00, ?it/s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment