完成训练模块的转移
This commit is contained in:
13
deep_sort/utils/asserts.py
Normal file
13
deep_sort/utils/asserts.py
Normal file
@ -0,0 +1,13 @@
|
||||
from os import environ
|
||||
|
||||
|
||||
def assert_in(file, files_to_check):
|
||||
if file not in files_to_check:
|
||||
raise AssertionError("{} does not exist in the list".format(str(file)))
|
||||
return True
|
||||
|
||||
|
||||
def assert_in_env(check_list: list):
|
||||
for item in check_list:
|
||||
assert_in(item, environ.keys())
|
||||
return True
|
Reference in New Issue
Block a user