Commit 699c00cd authored by timo's avatar timo
Browse files

added missing files

parent 64b62517
def assert_object_type(object, required_type, context=''):
if type(required_type) not in {list, tuple, set}:
required_type = set([required_type])
if len(context) != 0:
context += ': '
msg = context + 'Object type must one of {}. Actual type: {}'
msg = msg.format(', '.join([t.__name__ for t in required_type]), type(object).__name__)
assert type(object) in required_type, msg
def assert_equal_shape(tuple_a, tuple_b, context=''):
if len(context) != 0:
context += ': '
assert tuple_a == tuple_b, context + 'shapes are not equal. Actual sizes: ' + str(tuple_a) + ' and ' + str(tuple_b)
log_important = print
log_info = print
log_detail = lambda *x: None
log_warning = print
\ No newline at end of file
from .intersection_over_union import *
from .mean_average_precision import *
no object;1;0.00000
aarm panel;0;0.00000
abacus;1;0.00000
accordion, piano accordion, squeeze box;1;0.00000
acropolis;11;0.00000
ad, advertisement, advertizement, advertising, advertizing, advert;71;0.00000
adding machine;0;0.00000
advertisement board;0;0.00000
aerial;0;1.00000
air conditioner, air conditioning;582;0.00000
air hockey table;0;0.00000
air machine;0;0.00000
aircraft carrier;0;0.00000
airplane, aeroplane, plane;317;0.00000
airport cart;1;0.00000
alarm;0;0.00000
alarm clock;0;0.00000
alembic;4;0.00000
alga;0;0.00000
algae;0;0.00000
altar, communion table, Lord's table;0;0.00000
altarpiece;0;0.00000
amphitheater;0;0.00000
amphora;1;0.00000
anchor;0;0.00000
andiron;0;0.00000
andirons;0;0.00000
animal toy;0;0.00000
animal, animate being, beast, brute, creature, fauna;533;0.00000
animals;0;0.00000
antenna;0;1.00000
antenna, aerial, transmitting aerial;179;0.00000
antler;8;0.00000
antlers;0;1.00000
anvil;1;0.00000
aperture;0;1.00000
apparatus;0;0.00000
apparel, wearing apparel, dress, clothes;466;0.00000
apple;2;0.00000
apples;0;0.00000
appliance;0;0.00000
apron;4;0.99627
aquarium;0;0.00000
aqueduct;22;0.00000
arbor;0;0.00000
arcade;0;0.00000
arcade machine;247;0.00000
arcade machines;9;0.00000
arcade, colonnade;80;0.00000
arcades;0;1.00000
arch;0;1.00000
arch, archway;59;0.00000
arches;0;0.00000
arm;0;1.00000
arm panel;0;1.00000
arm support;0;1.00000
armchair;2320;0.00000
armor;0;0.00000
armrest;0;1.00000
art;0;0.00000
art mannequin;1;0.00000
articulated lamp;0;0.00000
artificial golf green;35;0.00000
ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel, trash bin;950;0.00000
ashtray;91;0.00000
asymmetric bars;1;0.00000
athletic field;0;0.00000
athletics track;0;0.00000
atm;0;0.00000
autoclave;0;0.00000
autopsy table;2;0.00000
auxiliary trolley;6;0.00000
aviary;1;0.00000
avocados;1;0.00000
award;5;0.00000
awards;1;0.00000
awning, sunshade, sunblind;1024;0.00000
ax;3;0.00000
baby buggy, baby carriage, carriage, perambulator, pram, stroller, go-cart, pushchair, pusher;58;0.00000
baby chair;3;0.00000
baby walker;2;0.00000
baby weighs;1;0.00000
back;0;1.00000
back control;0;1.00000
back cushion;0;1.00000
back pillow;0;1.00000
backdrop;8;0.00000
backdrops;1;0.00000
background;3;0.25000
backpack, back pack, knapsack, packsack, rucksack, haversack;206;0.00000
backpacks;2;0.00000
backplate;0;1.00000
badge;21;0.00000
badlands;12;0.00000
bag;1170;0.00085
bag, handbag, pocketbook, purse;329;0.00000
bag, traveling bag, travelling bag, grip, suitcase;276;0.00000
baggage;0;0.00000
baggage carts;7;0.00000
bagpipes;1;0.00000
balcony;28;0.98693
balcony covered;1;0.00000
ball;733;0.00000
ball rack;5;0.00000
ball stands;1;0.00000
ball storage;0;1.00000
ball, globe, orb;32;0.00000
balloon;57;0.00000
balloons;3;0.00000
ballots;1;0.00000
balls rack;1;0.00000
balustrade;0;1.00000
bamboo;60;0.00000
bamboo canes;2;0.00000
bananas;2;0.00000
bandstand;19;0.00000
banjo;3;0.00000
banner, streamer;223;0.00000
banners;1;0.00000
bannister, banister, balustrade, balusters, handrail;785;0.00000
baptismal font;10;0.00000
baptistry;1;0.00000
bar;229;0.00000
bar lift;8;0.00000
barbecue;14;0.00000
barbed wire;7;0.00000
barbell;3;0.00000
barn;4;0.00000
barrack buildings;2;0.00000
barrel rack;19;0.00000
barrel, cask;322;0.00000
barrels;37;0.00000
barricade;14;0.00000
barrier;41;0.00000
bars;0;1.00000
base;23;0.98621
base, pedestal, stand;767;0.00000
baseball;4;0.00000
baseball glove;3;0.00000
baseboard;0;1.00000
baseboard, mopboard, skirting board;55;0.00000
baseboards;2;0.00000
basin;4;0.00000
basket;0;1.00000
basket, basketball hoop, hoop;59;0.00000
basket, handbasket;1141;0.00000
basketball;2;0.00000
basketball court;5;0.00000
baskets;14;0.00000
bass drum;1;0.00000
bassinet;2;0.00000
bat;12;0.00000
bath sponge;1;0.00000
bathrobe;14;0.00000
bathtub, bathing tub, bath, tub;443;0.00000
batting cage;4;0.00000
battlement;0;1.00000
battlements;0;1.00000
beach wrap;1;0.00000
beacon, lighthouse, beacon light, pharos;56;0.00000
beam;351;0.36182
beams;6;0.00000
bear;2;0.00000
bear cutout;2;0.00000
bed;2418;0.04086
bed column;0;1.00000
bed side;0;1.00000
bed trolley;2;0.00000
bedpost;0;1.00000
beds;2;0.00000
bedspread;4;0.00000
bedspring;0;1.00000
beer machine;14;0.00000
beer pump;3;0.00000
bell;57;0.40625
bell tower;0;1.00000
belt;11;0.00000
belt loader;2;0.00000
belt rack;1;0.00000
belts;4;0.00000
bench;1352;0.00295
berth;39;0.00000
bib;1;0.00000
bicycle path;0;1.00000
bicycle rack;10;0.00000
bicycle racks;6;0.00000
bicycle, bike, wheel, cycle;621;0.00000
bidet;34;0.00000
bidon;6;0.00000
big top;12;0.00000
big wheel;4;0.00000
bilding;0;0.00000
bildings;1;0.00000
billboard, hoarding;87;0.00000
bin;1;0.00000
binder, ring-binder;152;0.00000
binoculars;4;0.00000
bird;228;0.00000
birdcage;6;0.00000
birds;1;0.00000
bitch;1;0.00000
blackboard, chalkboard;65;0.00000
blade;0;1.00000
blade, vane;4;0.00000
blades;0;1.00000
blanket, cover;278;0.00000
blankets;7;0.00000
blast furnace;4;0.00000
bleachers;9;0.00000
blender;29;0.00000
blind;0;1.00000
blind, screen;700;0.00000
blinds;31;0.11429
block;82;0.00000
blocks;2;0.00000
blouse;6;0.00000
blusher brush;6;0.00000
boar;0;0.00000
board game;1;0.00000
board, plank;327;0.00000
boards;17;0.00000
boardwalk;2;0.00000
boat;804;0.00000
boat stop;1;0.00000
body;1;0.97368
bog water;1;0.00000
boiler;5;0.00000
boillers;1;0.00000
bollard;7;0.00000
bolt;1;0.00000
bomb;3;0.00000
bone;4;0.00000
bones;5;0.00000
bonfire;3;0.00000
bonnet;1;0.00000
book;5083;0.00000
book rack;1;0.00000
book stand;19;0.00000
bookcase;529;0.00000
bookend;10;0.00000
bookends;1;0.00000
booklet, brochure, folder, leaflet, pamphlet;262;0.00000
bookstall;3;0.00000
boomerang;1;0.00000
boot;145;0.00000
booth;22;0.00000
booth, cubicle, stall, kiosk;164;0.00000
booths;2;0.00000
bottle;3643;0.00082
bottle pack;5;0.00000
bottle rack;24;0.20000
bottom rail;0;1.00000
bough;1;0.00000
boulder;1;0.00000
bounce seat;1;0.00000
bouquet, corsage, posy, nosegay;102;0.00000
bow;6;0.00000
bow window;2;0.00000
bowl;938;0.28178
bowling alley;31;0.00000
bowling alleys;3;0.00000
bowling ball return;7;0.00000
bowling pin;6;0.00000
bowling pins;22;0.00000
bowls;29;0.00000
box;4358;0.00092
box jury;1;0.00000
box office, ticket office, ticket booth;10;0.00000
box spring;0;1.00000
box stands;1;0.00000
box-file;1;0.00000
boxing gloves;4;0.00000
bracelet;13;0.00000
bracelets;2;0.00000
bracket;1;0.00000
brake pedal;3;0.00000
branch;18;0.68421
branches;6;0.60000
bread basket;7;0.00000
bread box;10;0.00000
bread lift;0;1.00000
bread roll;15;0.00000
bread rolls;28;0.00000
bread slot;0;1.00000
bread tray;1;0.00000
bread, breadstuff, staff of life;137;0.00000
breadbasket;1;0.00000
breads;30;0.00000
breaker box;1;0.00000
breakwater;3;0.00000
brewery;1;0.00000
brick;19;0.00000
bricks;4;0.00000
bridge, span;318;0.00000
bridges;1;0.00000
briefcase;63;0.00000
brochure;26;0.00000
brochures rack;1;0.00000
broom;28;0.00000
brush;60;0.00000
brushes;36;0.00000
bucket;0;1.00000
bucket, pail;503;0.00000
buckets;6;0.00000
bud;7;0.00000
buds;1;0.00000
buffet;6;0.00000
buffet, counter, sideboard;140;0.00000
buggy;1;0.00000
building arena;1;0.00000
building materials;5;0.00000
building, edifice;18850;0.00000
bulb;0;1.00000
bulbs;11;0.00000
bull;6;0.00000
bull skull;1;0.00000
bulldozer;20;0.00000
bulletin board, notice board;308;0.00000
bullring;10;0.00000
bumper;1;0.99852
bunch;3;0.00000
buoy;5;0.00000
buoys;2;0.00000
burner;3;0.98993
bus station;2;0.00000
bus stop;59;0.00000
bus, autobus, coach, charabanc, double-decker, jitney, motorbus, motorcoach, omnibus, passenger vehicle;477;0.00000
buses;6;0.00000
bushes;0;1.00000
business card;1;0.00000
business cards;5;0.00000
butane gas cylinder;4;0.00000
butcher shop;0;0.00000
butchery;1;0.00000
butter;1;0.00000
butter dish;1;0.00000
butterfly;2;0.00000
buttocks;0;1.00000
button;0;1.00000
button box;2;0.00000
button panel;0;1.00000
buttons;0;1.00000
buttons panel;0;1.00000
buttress;11;0.00000
buzzer;1;0.00000
bycicle carriage;1;0.00000
caar;0;0.00000
cabbages;1;0.00000
cabin;32;0.00000
cabinet;7417;0.00616
cabins;1;0.00000
cable;23;0.00000
cable car;3;0.00000
cable railway;1;0.00000
cables;8;0.00000
cactus;56;0.00000
cage;27;0.00000
cages;10;0.00000
cake mold;1;0.00000
calculator;9;0.00000
calendar;42;0.00000
call buttons;2;0.00000
camcorder;7;0.00000
camel;8;0.00000
camels;1;0.00000
camera, photographic camera;63;0.00000
camouflage;1;0.00000
camping stove;1;0.00000
can;0;1.00000
can opener;2;0.00000
can, tin, tin can;556;0.00000
canal;9;0.00000
candelabrum, candelabra;116;0.00000
candies;37;0.00000
candle;0;1.00000
candle, taper, wax light;326;0.00000
candles;12;0.00000
candlestick, candle holder;775;0.00000
candy bag;15;0.00000
candy bags;2;0.00000
candy track;1;0.00000
candy, confect;49;0.00000
cane;31;0.00000
canes;6;0.00000
canister, cannister, tin;142;0.00000
canlendar;1;0.00000
cannon;43;0.00000
canoe;5;0.00000
canopy;76;0.82284
canvas;24;0.00000
canvases;1;0.00000
canyon;5;0.00000
canyons;1;0.00000
cap;127;0.22086
cape;9;0.00000
capital;0;1.00000
caps;10;0.00000
car scrapping;30;0.00000
car wash;3;0.00000
car wreck;4;0.00000
car, auto, automobile, machine, motorcar;14977;0.00000
caravan;31;0.00000
caravans;1;0.00000
card;29;0.00000
card display;2;0.00000
card table;10;0.00000
cardboard;7;0.00000
cards;0;0.00000
cargo;16;0.00000
carousel;25;0.00000
carousel horse;3;0.00000
carp;1;0.00000
carpets;1;0.00000
carport;26;0.00000
carriage;6;0.00000
cars scraping;1;0.00000
cars scrapping;3;0.00000
cart;131;0.00758
carts;3;0.00000
case, display case, showcase, vitrine;249;0.00000
cases;3;0.00000
cash register, register;58;0.00000
casing;0;1.00000
casing interior;1;0.83333
casket;1;0.00000
casserole;49;0.00000
cassette;8;0.00000
cassettes;5;0.00000
castle;4;0.00000
cat;18;0.00000
catch;2;0.00000
catwalk;12;0.00000
cauldron;1;0.00000
cave;9;0.00000
cave entrance;6;0.00000
cavern;1;0.00000
cd;5;0.00000
cd box;2;0.00000
cd player;1;0.00000
cd rack;1;0.00000
cd shelf;1;0.00000
cd stack;1;0.00000
cd stand;1;0.00000
cds;29;0.09375
cds box;3;0.00000
ceiing;0;0.00000
ceiling;8516;0.00035
ceiling controls;1;0.00000
ceiling decor;2;0.00000
ceiling piece;1;0.00000
ceiling recessed light;0;1.00000
cell;3;0.00000
cell door;2;0.00000
cello;1;0.00000
cello cover;1;0.00000
cells;17;0.00000
cellular telephone, cellular phone, cellphone, cell, mobile phone;30;0.00000
cement;1;0.00000
centerpiece;10;0.00000
central processing unit, CPU, C P U , central processor, processor, mainframe;0;0.00000
central reservation;281;0.00000
centrifuge;1;0.00000
ceramic box;29;0.00000
ceramic pot;23;0.00000
ceramic ware;1;0.00000
ceramics box;1;0.00000
certificate;1;0.00000
chain;44;0.78744
chains;1;0.00000
chainsaw;1;0.00000
chair;13766;0.00015
chair desk;11;0.00000
chair lift;3;0.00000
chairs desk;1;0.00000
chairs lift;3;0.00000
chaise lounge;6;0.00000
chalk;9;0.00000
champagne bucket;2;0.00000
champagne stand;1;0.00000
chandelier, pendant, pendent;811;0.00000
change machine;1;0.00000
check-in-desk;25;0.00000
check-in-desks;4;0.00000
checkers pieces;1;0.00000
checkers table;1;0.00000
checkpoint;1;0.00000
cheese;2;0.00000
cheese dish;2;0.00000
chess;19;0.00000
chest;130;0.00000
chest of drawers, chest, bureau, dresser;663;0.00000
chick;4;0.00000
chicken;21;0.00000
chicks;1;0.00000
chimney;89;0.86536
chimneys;2;0.00000
chinese lantern;2;0.00000
chip;14;0.00000
chippings;4;0.00000
chips;21;0.00000
chocolate;22;0.00000
chocolates;1;0.00000
chopping board, cutting board;41;0.00000
chopstick;1;0.00000
chorizo;1;0.00000
chorizos;1;0.00000
christmas lights;1;0.00000
christmas tree;3;0.00000
church;2;0.00000
chute;1;0.00000
cigar box;12;0.00000
cigarette;3;0.00000
cigarette packet;2;0.00000
cigarettes;1;0.00000
ciment mixer;1;0.00000
circular saw;1;0.00000
circus;0;1.00000
cistern;0;1.00000
cistern, water tank;7;0.00000
city;5;0.00000
clamp;0;1.00000
clamp lamp;3;0.00000
clams;1;0.00000
cliff, drop, drop-off;65;0.00000
cliffs;0;0.00000
climbing frame;2;0.00000
clip;1;0.00000
clipboard;10;0.00000
cloak;1;0.00000
clock;947;0.00421
clock face;0;1.00000
clock radio;3;0.00000
closet;38;0.00000
closet rod;19;0.00000
closure;0;1.00000
cloth material;1;0.00000
clothes hanging;37;0.00000
clothes horse;1;0.00000
clothes stand;1;0.00000
clothespin;15;0.00000
clothing;11;0.00000
clothing rack;2;0.00000
cloud;0;1.00000
clouds;0;1.00000
club;18;0.00000
clubs;1;0.00000
clutch pedal;3;0.00000
coar of arms;0;0.00000
coaster;12;0.00000
coasters;1;0.00000
coastline;1;0.00000
coat;33;0.00000
coat of arms;7;0.00000
coat rack;5;0.00000
coat stand;1;0.00000
coats;3;0.00000
cobbles;1;0.00000
cock;2;0.00000
cockpit;3;0.92105
cockpot;1;0.00000
cocktail shaker;1;0.00000
coconut;6;0.00000
coconuts;1;0.00000
coffee;1;0.00000
coffee cup;71;0.00000
coffee cup rack;1;0.00000
coffee cups;1;0.00000
coffee grinder;3;0.00000
coffee maker;215;0.00000
coffee pot;9;0.00000
coffee table, cocktail table;935;0.00000
coffin;10;0.00000
colander;1;0.00000
cold storage;48;0.00000
cold storage door;1;0.00000
cold store;2;0.00000
colour board;3;0.00000
columbarium;1;0.00000
columbarium niche;7;0.00000
column;0;1.00000
column, pillar;2009;0.00000
columns;0;1.00000
comb;1;0.00000
comforter;7;0.00000
comic strip;2;0.00000
compact discs;1;0.00000
compartment;1;0.00000
compas;1;0.00000
computer case;0;1.00000
computer console;1;0.00000
computer, computing machine, computing device, data processor, electronic computer, information processing system;555;0.00000
confessional booth;8;0.00000
console;6;0.00000
console table, console;112;0.00000
construction equipment;3;0.00000
contact lens case;1;0.00000
container;354;0.00000
containers;13;0.00000
contrabass;6;0.00000
control;0;1.00000
control cabinet;2;0.00000
control panel;10;0.09091
control panel, instrument panel, control board, board, panel;3;0.00000
control panels;1;0.00000
control room;2;0.00000
control table;9;0.00000
control tower;21;0.04545
controls;39;0.00000
conveyer belt, conveyor belt, conveyer, conveyor, transporter;83;0.00000
cooker;29;0.00000
cookie;8;0.00000
cookies;31;0.00000
cool box;5;0.00000
cooler;5;0.00000
coop;4;0.00000
copier;1;0.00000
coral;9;0.00000
cord;0;1.00000
cords;1;0.00000
cork;1;0.00000
cork stopper;1;0.00000
corkscrew;3;0.00000
corn field;0;0.00000
corner;0;0.00000
corner pocket;0;1.00000
cornice;2;0.60000
counter;467;0.00000
counters;8;0.00000
countertop;381;0.00262
counterweight;1;0.00000
court;59;0.00000