{"id":20841707,"url":"https://github.com/jahongir7174/simplenet","last_synced_at":"2025-06-12T04:08:46.530Z","repository":{"id":178231217,"uuid":"660391523","full_name":"jahongir7174/SimpleNet","owner":"jahongir7174","description":"SimpleNet: A Simple Network for Image Anomaly Detection and Localization","archived":false,"fork":false,"pushed_at":"2023-07-03T07:37:06.000Z","size":129,"stargazers_count":31,"open_issues_count":4,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:46:58.510Z","etag":null,"topics":["anomaly-detection","damage-detection","opencv","python","pytorch"],"latest_commit_sha":null,"homepage":"https://arxiv.org/abs/2303.15140","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/jahongir7174.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-29T22:56:31.000Z","updated_at":"2025-03-20T08:22:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"a77b51ca-6cb6-4b55-b1ba-688b894f3cfe","html_url":"https://github.com/jahongir7174/SimpleNet","commit_stats":null,"previous_names":["jahongir7174/simplenet"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahongir7174%2FSimpleNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahongir7174%2FSimpleNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahongir7174%2FSimpleNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahongir7174%2FSimpleNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jahongir7174","download_url":"https://codeload.github.com/jahongir7174/SimpleNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248231230,"owners_count":21069285,"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":["anomaly-detection","damage-detection","opencv","python","pytorch"],"created_at":"2024-11-18T01:21:25.073Z","updated_at":"2025-04-10T14:04:39.150Z","avatar_url":"https://github.com/jahongir7174.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SimpleNet: A Simple Network for Image Anomaly Detection and Localization\n\n### Note\n\n* The default dataset is `metal_nut` from `MVTec`\n\n### Installation\n\n```\nconda create -n PyTorch python=3.8\nconda activate PyTorch\nconda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-lts\npip install opencv-python==4.5.5.64\npip install scikit-learn\npip install scipy\npip install tqdm\n```\n\n### Train\n\n* Configure your dataset path in `main.py` for training\n* Download pretrained weights and place it under `weights` folder, see `Pretrained weights`\n* Run `python main.py --train` for training\n\n### Test\n\n* Configure your dataset path in `main.py` for testing\n* Run `python main.py --test` for testing\n\n### Results\n\n| Backbone | Epochs | F1 (%) | Accuracy (%) | AUROC (%) |                                                                        Pretrained weights |\n|:--------:|:------:|-------:|-------------:|----------:|------------------------------------------------------------------------------------------:|\n| ResNet18 |  150   |   97.4 |         95.7 |      99.1 |  [model](https://github.com/jahongir7174/SimpleNet/releases/download/v0.0.1/resnet18.pth) |\n| ReNet34  |  150   |   97.4 |         95.7 |      99.3 |  [model](https://github.com/jahongir7174/SimpleNet/releases/download/v0.0.1/resnet34.pth) |\n| ReNet50  |  150   |    100 |          100 |       100 |  [model](https://github.com/jahongir7174/SimpleNet/releases/download/v0.0.1/resnet50.pth) |\n| ReNet101 |  150   |      - |            - |         - | [model](https://github.com/jahongir7174/SimpleNet/releases/download/v0.0.1/resnet101.pth) |\n| ReNet152 |  150   |      - |            - |         - | [model](https://github.com/jahongir7174/SimpleNet/releases/download/v0.0.1/resnet152.pth) |\n\n![Alt Text](./demo/1.jpg)\n![Alt Text](./demo/2.jpg)\n![Alt Text](./demo/3.jpg)\n![Alt Text](./demo/4.jpg)\n\n#### Reference\n\n* https://github.com/DonaldRR/SimpleNet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahongir7174%2Fsimplenet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjahongir7174%2Fsimplenet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahongir7174%2Fsimplenet/lists"}