{"id":20618710,"url":"https://github.com/notjoemartinez/apdl_quality_control","last_synced_at":"2026-04-20T00:03:37.556Z","repository":{"id":148358671,"uuid":"332900156","full_name":"NotJoeMartinez/APDL_Quality_Control","owner":"NotJoeMartinez","description":"Computer Vision Quality control for the Advanced Particle Detector Laboratory at Texas Tech University","archived":false,"fork":false,"pushed_at":"2024-01-24T01:48:59.000Z","size":731201,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-26T11:30:50.527Z","etag":null,"topics":[],"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/NotJoeMartinez.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,"roadmap":null,"authors":null}},"created_at":"2021-01-25T22:20:10.000Z","updated_at":"2023-05-20T08:00:52.000Z","dependencies_parsed_at":"2023-05-19T21:00:17.646Z","dependency_job_id":null,"html_url":"https://github.com/NotJoeMartinez/APDL_Quality_Control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NotJoeMartinez/APDL_Quality_Control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJoeMartinez%2FAPDL_Quality_Control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJoeMartinez%2FAPDL_Quality_Control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJoeMartinez%2FAPDL_Quality_Control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJoeMartinez%2FAPDL_Quality_Control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotJoeMartinez","download_url":"https://codeload.github.com/NotJoeMartinez/APDL_Quality_Control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotJoeMartinez%2FAPDL_Quality_Control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32027236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-16T12:09:18.972Z","updated_at":"2026-04-20T00:03:37.542Z","avatar_url":"https://github.com/NotJoeMartinez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# APDL_Quality_Control\n\nDeep learning applications for quality control in particle detector construction: \n\nhttps://arxiv.org/abs/2203.08969\n\n### Radom Samples\n![](docs/imgs/rand_samples.png)\n\n### Installation \nIt's important to specify this version of python as Tenserflow has not been working on the latest release \n```bash\ngit clone https://github.com/NotJoeMartinez/APDL_Quality_Control\ncd APDL_Quality_Control \nvirtualenv env --python=python3.9.2\nsource env/bin/activate \npip install -r requirements.txt\n```\n\nIf you still get an error installing tenserflow deactivate and remove\n```bash\npip install --upgrade tensorflow\n```\n\n### augment_imgs.py\n- Augments the original data\n- Handles splitting the dataset up into training and testing. \n- Randomly applies a rotation function to data  \n\n### train_model.py\n- Trains model on the augmented dataset \n- Creates a plot of the training history \n- Writes some metadata to a csv\n\n### test_model.py\n- Tests trained models against the testing dataset\n- Plots data into confusion matrix along with ac couple other visualizations\n- Creates a markdown file with impeded plots and other metadata\n\n### transfer_learning.py \n- Trains model using transfer learning model \"mobilenet_v3_small_100_224\"\n- Not fully tested to current workflow (Mon Sep 27 07:37:26 CDT 2021)\n\n# APDL_QC_API \nFlask based API for interacting with the Tenserflow models \n\n### Usage\n```\ncurl -X POST -F 'image=@imgs/[PATH/TO/IMAGE].jpg' http://127.0.0.1:5000/get-labels\n{\n  \"All Predictions\": {\n    \"Broken Wire\": \"42%\", \n    \"Glue\": \" 1%\", \n    \"Good\": \"12%\", \n    \"No Wires\": \" 0%\", \n    \"One Third Wire\": \"37%\", \n    \"Two Third Wires\": \" 5%\", \n    \"Unknown Debris\": \" 3%\"\n  }, \n  \"Image Size\": [\n    640, \n    480\n  ], \n  \"Predicted Label\": \"Broken Wire\", \n  \"Prediction Confidence\": \"42%\"\n}\n```\n\n### Installation \n```bash\npip install -r requirements.txt\nexport FLASK_APP=APDL_QC_API/__init__.py\nexport FLASK_ENV=development\nflask run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjoemartinez%2Fapdl_quality_control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotjoemartinez%2Fapdl_quality_control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotjoemartinez%2Fapdl_quality_control/lists"}