{"id":15649700,"url":"https://github.com/chunml/annomachine","last_synced_at":"2025-04-30T13:51:59.821Z","repository":{"id":35592730,"uuid":"216519561","full_name":"ChunML/AnnoMachine","owner":"ChunML","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T10:25:16.000Z","size":1476,"stargazers_count":39,"open_issues_count":36,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T16:45:39.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChunML.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-21T08:44:22.000Z","updated_at":"2024-02-26T22:30:04.000Z","dependencies_parsed_at":"2023-01-16T00:31:26.649Z","dependency_job_id":null,"html_url":"https://github.com/ChunML/AnnoMachine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChunML%2FAnnoMachine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChunML%2FAnnoMachine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChunML%2FAnnoMachine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChunML%2FAnnoMachine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChunML","download_url":"https://codeload.github.com/ChunML/AnnoMachine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251714939,"owners_count":21631806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:31:07.187Z","updated_at":"2025-04-30T13:51:59.794Z","avatar_url":"https://github.com/ChunML.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AnnoMachine\n\n[![Build Status](https://travis-ci.org/ChunML/AnnoMachine.svg?branch=master)](https://travis-ci.org/ChunML/AnnoMachine)\n\n[![CircleCI](https://circleci.com/gh/ChunML/AnnoMachine.svg?style=svg)](https://circleci.com/gh/ChunML/AnnoMachine)\n\n### What is AnnoMachine?\nAnnoMachine is an application that aims to provide a user-friendly way to visualize and interact with object detection results.\n\nAnnoMachine fulfills that mission by:\n- Running a deep learning model under the hood to get a rough estimation of the annotation\n\n\u003cp align=\"center\" style=\"width: 100%;\"\u003e\n  \u003cimg src=\"https://github.com/ChunML/ChunML.github.io/blob/master/images/projects/annomachine/objectdetection.gif\" /\u003e\n\u003c/p\u003e\n\n- Providing a user-friendly interface which user can easily visualize and interactively update the annotation\n\n\u003cp align=\"center\" style=\"width: 100%;\"\u003e\n  \u003cimg src=\"https://github.com/ChunML/ChunML.github.io/blob/master/images/projects/annomachine/image.gif\" /\u003e\n\u003c/p\u003e\n\n### Development Tools:\nStack:\n- Object detection model: SSD (implemented on Tensorflow 2)\n- Backend: Flask\n- Frontend: ReactJS (SVG for displaying image and drawing bounding boxes)\n- Database: PostgreSQL\n- Web server: Nginx\n\nUnit test:\n- Backend: Flask-Testing\n- Frontend: Jest + Enzyme\n\nDeployment:\n- docker\n- docker-compose\n- docker-machine\n\n### Preparation\nClone the repo:\n```\ngit clone https://github.chunml/annomachine\ncd annomachine\n```\n\nDownload the pretrained weights (trained on VOC07+12 for 120 epochs):\n[weights](https://drive.google.com/file/d/1atYMDyYvofuTjv_Q6QZQ8E0bRdL1exS-/view?usp=sharing)\n\nSave the weights to ./services/backend/ssd_tf2/models:\n```\nmkdir -p ./services/backend/ssd_tf2/models\nmv ssd_epoch_120.h5 ./services/backend/ssd_tf2/models\n```\n\nMake sure the unit tests are passed:\n```\n./test.sh\n```\n\n### Local deployment\nWhat we need to do is to run the command below:\n```\ndocker-compose up -d --build\n```\n\nHead to `localhost` and see the result!\n\n### AWS deployment\n- Create your own *Access Key ID* and *Secret Access Key* from AWS\n- Create a new file called ~/.aws/credentials (a file, not a folder)\n- Paste the below content (replace with your keys):\n```\n[default]\naws_access_key_id=\u003cyour_access_key_id\u003e\naws_secret_access_key=\u003cyour_secret_access_key\u003e\n```\n- Create a new machine via `docker-machine`\n```\ndocker-machine create --driver amazonec2 --amazonec2-open-port 80 \u003cyour_machine_name\u003e\n```\nThis will take a while. After that, a new EC2 instance is created on AWS, using the credentials you created above.\n- Check if the new machine is created properly:\n```\ndocker-machine ls\n```\n- Activate the AWS machine:\n```\neval $(docker-machine env \u003cyour_machine_name\u003e)\n```\nIt means that from now on, we are inside the environment of the AWS machine! What we're gonna see/do all happens within that environment.\n- Check if we are actually in AWS machine's environment:\n```\ndocker-machine ls\n```\nWe should see an *asterisk* next to the machine's name. Let's take note the IP address.\n- Make sure that there is nothing on there yet:\n```\ndocker image ls\n```\n- Deploy onto the AWS machine\n```\ndocker-compose -f docker-compose-prod.yml up -d --build\n```\n- Confirm that the deployment is successful:\nHead to `\u003cyour_machine_IP\u003e` and enjoy the result!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunml%2Fannomachine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchunml%2Fannomachine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunml%2Fannomachine/lists"}