This repository contains the code for the visual quality control demonstrator, which uses an AI (two combined YOLO models) to check whether a product is faulty. This demosntrator was developed as part of the Green-AI Hub Initiative, funded by the German Federal Ministry for the Environment, Nature Conservation, Nuclear Safety and Consumer Protection.
Clone this repository, navigate with your terminal into this repository and execute the following steps.
This is an example of how to list things you need to use the software and how to install them.
pip install -r requirements.txt
To use the environment, you have to install this repository as a pip package. Alternativly you can open a branch of this repository and implement changes directly in this repo.
- Navigate to the repository with your terminal.
- Install the repository as a pip package
pip install .
- Check whether the installation was successful
To train your own yolo detection models, refer to the yolo_error_detect.ipynb notebook. Afterwards your trained models have to be copied to the models folder and the paths inside of app.py have to be updated accordingly.
If you want to use the web interface to use the models. Follow the following steps:
- Navigate to the repository with your terminal
- Ensure that you have all libraries installed
- Start the web interface with the following command:
python3 app.py
Important: By executing these steps, you start the web app with the debugging server of flask. This is not safe for production. Please refer to the official flask documentation for deployments.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Green-AI Hub Mittelstand - info@green-ai-hub.de
Project Link: https://github.com/Green-AI-Hub-Mittelstand/repository_name
Get in touch »