File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ def save_labels(self, current_file_path):
712712 labels_dict [label_id ] = label_item .to_dict ()
713713
714714 # Save it
715- if current_file_path is not "" :
715+ if current_file_path != "" :
716716 with open (current_file_path + os .sep + "labels.json" , 'w' ) as fp :
717717 json .dump (labels_dict , fp )
718718
Original file line number Diff line number Diff line change 1- {
2- "contour_filling" : {
3- "tolerance" : 8
4- },
5- "magic_pen" : {
6- "tolerance" : 71 ,
7- "max_pixels" : 408780 ,
8- "method" : " RGB"
9- },
10- "save" : {
11- "path" : " C:/Users/pimfa/Pictures/label"
12- },
13- "load" : {
14- "path" : " C:/Users/pimfa/Pictures" ,
15- "alpha_color" : [
16- 255 ,
17- 255 ,
18- 255
19- ]
20- },
21- "zoom" : {
22- "min_zoom" : 0.5 ,
23- "max_zoom" : 100 ,
24- "plus_zoom_factor" : 1.1 ,
25- "minus_zoom_factor" : 0.9
26- },
27- "paint_brush" : {
28- "size" : 34
29- },
30- "eraser" : {
31- "size" : 86 ,
32- "absolute_mode" : 0
33- },
34- "labeling_opacity" : 45
1+ {
2+ "contour_filling" : {
3+ "tolerance" : 8
4+ },
5+ "magic_pen" : {
6+ "tolerance" : 71 ,
7+ "max_pixels" : 408780 ,
8+ "method" : " RGB"
9+ },
10+ "save" : {
11+ "path" : " C:/Users/pimfa/Pictures/label"
12+ },
13+ "load" : {
14+ "path" : " C:/Users/pimfa/Pictures" ,
15+ "alpha_color" : [
16+ 255 ,
17+ 255 ,
18+ 255
19+ ]
20+ },
21+ "zoom" : {
22+ "min_zoom" : 0.5 ,
23+ "max_zoom" : 100 ,
24+ "plus_zoom_factor" : 1.1 ,
25+ "minus_zoom_factor" : 0.9
26+ },
27+ "paint_brush" : {
28+ "size" : 34
29+ },
30+ "eraser" : {
31+ "size" : 86 ,
32+ "absolute_mode" : 0
33+ },
34+ "labeling_opacity" : 45
3535}
You can’t perform that action at this time.
0 commit comments