aosokin / os2d

OS2D: One-Stage One-Shot Object Detection by Matching Anchor Features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need for OrderedDict

saswat0 opened this issue · comments

Hey @aosokin

Large datasets (~1.7M target images) take forever to be read (loaded into memory) via the _read_dataset_images function, and I was looking for a way to parallelize it with multiprocessing. But your implementation uses OrderedDict in many places, which isn't sharable across threads. Is there any particular reason for using this data structure, or can a normal dict serve the same purpose here?