Windows compatibility
This commit is contained in:
@@ -13,6 +13,7 @@ matplotlib.use('Agg')
|
||||
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
import annotating
|
||||
import utils
|
||||
from annotating import MARGIN_LEFT, ANNOT_WIDTH
|
||||
|
||||
# Global lock for Matplotlib/Latex rendering to prevent race conditions
|
||||
@@ -230,6 +231,9 @@ if __name__ == "__main__":
|
||||
else:
|
||||
root_dir = input_path
|
||||
|
||||
if os.path.exists(os.path.join(root_dir, "labels")):
|
||||
utils.read_all_labels(root_dir)
|
||||
|
||||
if not args.refaire:
|
||||
results = annotating.make_dictionary(root_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user