{"id":15897302,"url":"https://github.com/peri044/baml","last_synced_at":"2025-07-12T08:04:43.832Z","repository":{"id":201895629,"uuid":"149704257","full_name":"peri044/BAML","owner":"peri044","description":"Background Aware Metric Learning","archived":false,"fork":false,"pushed_at":"2018-12-25T05:13:04.000Z","size":536,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T09:32:13.606Z","etag":null,"topics":["background-aware-cnn","metric-learning","triplet-loss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peri044.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-09-21T03:23:09.000Z","updated_at":"2019-11-20T14:43:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e37a64a0-87b0-4428-a514-d29cca13d6b2","html_url":"https://github.com/peri044/BAML","commit_stats":null,"previous_names":["peri044/baml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peri044%2FBAML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peri044%2FBAML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peri044%2FBAML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peri044%2FBAML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peri044","download_url":"https://codeload.github.com/peri044/BAML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246875907,"owners_count":20848048,"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":["background-aware-cnn","metric-learning","triplet-loss"],"created_at":"2024-10-06T09:41:48.657Z","updated_at":"2025-04-02T19:11:48.775Z","avatar_url":"https://github.com/peri044.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Background Aware Metric Learning\r\n\r\n# Training\r\n```bash\r\n python train.py --base inception_v1 --batch_size 32\r\n```\r\nCheckout more command line options in `train.py` file. `dnn_library.py` is the interface to use any other base feature extractor.\r\n\r\n# Generate Data\r\nIn the data folder, you can find scripts for generating positive pairs and tf records needed for training\r\n\r\n## To generate text file of positive pairs\r\n```bash\r\npython gen_pos_pairs.py\r\n```\r\nThis will generate two files train_pos_pairs.txt and test_pos_pairs.txt\r\n\r\n## To generate TF records\r\n```bash\r\npython gen_data.py --path \u003cpath_to_train_pos_pairs.txt\u003e -n \u003cNumber of examples in TF record\u003e \r\n```\r\n* `--path` : Path to train_pos_pairs.txt\r\n* `--n` : Number of examples in  TF record (Default: It will write all the examples in train_pos_pairs.txt)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperi044%2Fbaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperi044%2Fbaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperi044%2Fbaml/lists"}