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 *
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment