{"id":18386249,"url":"https://github.com/bethropolis/myia","last_synced_at":"2025-04-07T00:33:03.230Z","repository":{"id":213689706,"uuid":"734090771","full_name":"bethropolis/myia","owner":"bethropolis","description":"An Image classifier model and builder for binary image classification.","archived":false,"fork":false,"pushed_at":"2024-05-14T09:20:21.000Z","size":72519,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-14T10:35:47.567Z","etag":null,"topics":["ai-model","image-classification","model","model-training-and-evaluation"],"latest_commit_sha":null,"homepage":"https://bethropolis.github.io/myia/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bethropolis.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-20T21:04:12.000Z","updated_at":"2024-05-14T09:20:26.000Z","dependencies_parsed_at":"2024-01-21T01:45:11.443Z","dependency_job_id":"9228f2e2-5c3b-49a7-9aae-5e5a576c5721","html_url":"https://github.com/bethropolis/myia","commit_stats":null,"previous_names":["bethropolis/simple-image-classifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Fmyia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Fmyia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Fmyia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bethropolis%2Fmyia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bethropolis","download_url":"https://codeload.github.com/bethropolis/myia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223267719,"owners_count":17116697,"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":["ai-model","image-classification","model","model-training-and-evaluation"],"created_at":"2024-11-06T01:21:11.884Z","updated_at":"2025-04-07T00:33:03.215Z","avatar_url":"https://github.com/bethropolis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MYIA\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbethropolis%2Fmyia.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbethropolis%2Fmyia?ref=badge_shield)\n\nthis is a nocode platform for training, testing, evaluating, and building image classifier models \n\n\n\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Screenshots](#screenshots)\n- [packages used](#packages-used)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n\n\n## Features\n- model training\n- model testing\n- model evaluation\n- file explorer\n- bulk image upload\n- screenshot script (go)\n- image crawler/scrapper (go)\n- graph generation\n- dark/light mode\n\n\n  \n---\n\n## Installation\n\n1. Clone the repository.\n    ```\n        git clone https://github.com/bethropolis/myia.git\n    ```\n\n2. Install the dependencies by running the following command:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n\n3. Setup project:\n    ```sh\n    python setup.py \n    ```\n\n4. create a virtual environment (optional):\n    ```sh\n    python -m venv myenv\n    ```\n    \u003e activate the virtual environment\n    ```bash\n    # windows\n    myenv\\Scripts\\activate\n\n    # linux / mac\n    source myenv/bin/activate\n    ```\n5. run the app:\n    ```sh\n     python app.py\n    ```\n    \u003e open your browser and go to http://localhost:5000\n\n\n---\n## Usage \n\n1. Upload images to the app\n\n    - upload images to the `training directory`\n    - head to `http://localhost:5000/directory?path=training/train` and upload your images\n\n\n2. label the images\n\n    - Open the `train` page (`http://localhost:5000/train`)\n\n    - label the images either as good or bad by clicking the `thumbs up` or `thumbs down` button.\n\n    - the app can only generate binary classification models so you can only label the images as `good` or `bad`\n\n        - `thumbs up` for `good` which could represent classification `A`\n        - `thumbs down` for `bad` which could represent classification `B`\n\n\n    \u003e currently the app only supports two labels `good` and `bad` \n\n3. build the model\n\n     - To build the model, head to the `home` page (`http://localhost:5000/`) and click the `build model` button\n     \n     - In the next page you will have to input:\n        `No of epochs` - the number of times the model will be trained (default is 15) \n        `No of layers` - the number of layers the model will have (default is 3)\n        `Model name` - the name of the model (default is `myia_image_classifier`)\n\n    - click the `build model` button to start building the model\n\n    The model will be saved in the `model/image_model` directory as a `keras` model\n\n    \u003e Note: The higher the number of epochs the longer it will take to build the model \n    \n\n\n4. test the model\n        - To test the model, open the `test` page (`http://localhost:5000/test`) and upload an image to test the model with\n           or test with images in the `test` directory (`http://localhost:5000/directory?path=training/test`)\n\n\n5. evaluate the model\n    - To evaluate the model, open the `evaluate` page (`http://localhost:5000/evaluate`) and upload an image to evaluate the model with\n        or evaluate with images in the `evaluate` directory (`http://localhost:5000/directory?path=model/evaluation`)\n\n    - The evaluation results will be saved in the `model` directory as a `json` file and a graph will be generated and saved in the `static` directory as a `png` file\n\n\n---\n\n## Screenshots\n\n| Image                                                                                                 | Description                                   |\n| ----------------------------------------------------------------------------------------------------- | --------------------------------------------- |\n| \u003cimg src=\".githubasserts/sXaWmI.png\" alt=\"A screenshot of the Home page\" width=\"50%\"\u003e                 | A screenshot of the Home page                 |\n| \u003cimg src=\".githubasserts/MDXRag.png\" alt=\"A screenshot of the Training page\" width=\"50%\"\u003e             | A screenshot of the Training page             |\n| \u003cimg src=\".githubasserts/K7FsFs.png\" alt=\"A screenshot of the Testing page\" width=\"50%\"\u003e              | A screenshot of the Testing page              |\n| \u003cimg src=\".githubasserts/kYC2IV.png\" alt=\"A screenshot of the Evaluation page\" width=\"50%\"\u003e           | A screenshot of the Evaluation page           |\n| \u003cimg src=\".githubasserts/WrkCxS.png\" alt=\"A screenshot of a directory\" width=\"50%\"\u003e                   | A screenshot of a directory                   |\n| \u003cimg src=\".githubasserts/ZU56Ln.png\" alt=\"A screenshot of a directory\" width=\"50%\"\u003e                   | A screenshot of a directory                   |\n| \u003cimg src=\".githubasserts/y8nSeH.png\" alt=\"A screenshot of the page for building a model\" width=\"50%\"\u003e | A screenshot of the page for building a model |\n\n\n---\n## packages used\n- [Flask](https://flask.palletsprojects.com/)\n- [Pillow](https://pillow.readthedocs.io/en/stable/)\n- [Tensorflow](https://www.tensorflow.org/)\n- [Keras](https://keras.io/)\n- [Numpy](https://numpy.org/doc/stable/user/whatisnumpy.html)\n- [matplotlib](https://matplotlib.org/)\n- [chromedp](https://github.com/chromedp/chromedp)\n- [goquery](https://github.com/PuerkitoBio/goquery)\n\n\n---\n\n## Contributing\nFeel free to ping me a pull requests if you want to contribute.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n\nhappy coding 💜\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fbethropolis%2Fmyia.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbethropolis%2Fmyia?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethropolis%2Fmyia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbethropolis%2Fmyia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbethropolis%2Fmyia/lists"}