Skip to content

Commit 24ea8be

Browse files
author
Pierre-Marie.fayette
committed
gig fixed
1 parent 52d5739 commit 24ea8be

2 files changed

Lines changed: 35 additions & 35 deletions

File tree

PyImageLabeling/model/Core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

PyImageLabeling/parameters.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
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
}

0 commit comments

Comments
 (0)