jsbroks / coco-annotator

:pencil2: Web-based image segmentation tool for object detection, localization, and keypoints
MIT License
2.06k stars 452 forks source link

COCO Annotator Next Generation #617

Open SixK opened 8 months ago

SixK commented 8 months ago

Seem's JsBroks is not active anymore for years now. I can invite you to use my modernized version of COCO Annotator. We can call it COCO Annotator NG.

coco-annotator-ng

Consider this version as a beta version since produced annotations json files are not fully tested yet. Also Note you will have to migrate users password hash type due to Werkzeug 3 Breaking changes (You will find a script to help you in my project, see README.md file)

Features:

what features you will loose or bugs are introduced:

Have a look at README.md file.

Hope some of you will be able to help me to improve and maintain this code.

Regards, SixK

ariefwijaya commented 8 months ago

Abandoned projects make me have trust issues. But anw, really appreciate your ideas. We can try and move it when it's ready.

Question:

  1. Will the database I used previously be lost or can it still be used?
SixK commented 8 months ago

As said in README.md of the project, python werkzeuk3 module introduced a breaking change on password hash type. You will have to migrate each user account one by one using provided python script "change_password_hash_type.py" And you can only do it if you know all users password. Here are variables to modify for each users in file: user="admin" password="admin"

Backup/export json files, backup dataset images and mongo database if you can before migrating

First start mongodb database starting coco-annotator normally: docker-compose up

then you can install necessary packages (yes werkzeug 2.0.3 to migrate, then you can install any version or remove package): pip install werkzeug==2.0.3 pip install pymongo

Then run this script for all users: python change_password_hash_type.py

Another way would be to export all datasets and json files, drop database, create users and import all datasets and json.