I hereby claim:
- I am jakecowton on github.
- I am jakecowton (https://keybase.io/jakecowton) on keybase.
- I have a public key ASDSrQnAhj_6k_EwHwZ6KjwjuU09WZTY5Euy2nDe7yoCZQo
To claim this, I am signing this object:
def find_dict_containing_key(d, key): | |
""" | |
:param d: dict | |
:param key: the key to look for | |
:returns: the nested dict containing key | |
""" | |
if isinstance(d, list): | |
for i in d: | |
if isinstance(i, dict) or isinstance(i, list): | |
item = find_dict_containing_key(i, key) |
def is_sublist(a: list, b: list): | |
return any( | |
[v == a[0] and b[i:i + len(a)] == a for i, v in enumerate(b)] | |
) |
I hereby claim:
To claim this, I am signing this object:
# git clone git@github.com:supervisely/supervisely.git | |
# cd supervisely | |
# pip install -e . | |
# cd supervisely_lib | |
from export.pascal_voc import save_project_as_pascal_voc_detection | |
from project.project import OpenMode, Project | |
save_project_as_pascal_voc_detection("/path/to/empty/output/folder", | |
Project("/path/to/root/of/downloaded/supervisely/folder", |