magiclabel 0.1.0
Legitimate Python package
“AI-assisted image annotation CLI for computer vision datasets”
Python local HTTPS proxy markerPython open write mode
SHA-2560d8b85a0cd8f3cd2723c213e1951f7b13cbdb50675df7b05c6b7a72c3b688b57
MaleculeO(Er)H(F)
Evidence
39 (work_dir / "labels" / split).mkdir(parents=True, exist_ok=True)
40 for img in items:
41 shutil.copy(img, work_dir / "images" / split / img.name)
42 shutil.copy(labels_dir / f"{img.stem}.txt",
43 work_dir / "labels" / split / f"{img.stem}.txt")
181 gr.Markdown(
182 "**Drag on the image to draw a new box** for objects the model missed. "
183 "Click a box to move or resize it via its handles, or delete it with the box's remove "
184 "button.\n\n"
185 "**To set a box's class:** double‑click the box to open its editor and **type any class "
212 demo.launch(server_name="127.0.0.1", server_port=7860, share=False)
101 output_json = Path(output_json)
102 output_json.parent.mkdir(parents=True, exist_ok=True)
103 with open(output_json, "w") as f:
104 json.dump(coco, f, indent=2)
67def _save_yolo_boxes(txt_path, boxes, classes, img_w, img_h):
68 with open(txt_path, "w") as f:
69 for box, cls in zip(boxes, classes):
70 x, y, w_box, h_box = box
No evidence locations were recorded for this file. Raw result