{"id":22831224,"url":"https://github.com/nidhishrathod/exercisecounter","last_synced_at":"2026-04-30T06:40:16.212Z","repository":{"id":262414453,"uuid":"887181634","full_name":"NidhishRathod/ExerciseCounter","owner":"NidhishRathod","description":"Exercise Counter for bicep curls, pushups and squats using media pipe pose detection","archived":false,"fork":false,"pushed_at":"2025-01-26T14:58:26.000Z","size":41571,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T11:08:58.062Z","etag":null,"topics":["ai","fitness","gpt2tokenizer","mediapipe","pose-detection"],"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/NidhishRathod.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,"zenodo":null}},"created_at":"2024-11-12T10:00:50.000Z","updated_at":"2025-01-26T14:58:29.000Z","dependencies_parsed_at":"2025-02-06T07:10:47.313Z","dependency_job_id":"be0af529-c46e-46be-861c-3c1e7015c9b2","html_url":"https://github.com/NidhishRathod/ExerciseCounter","commit_stats":null,"previous_names":["nidhishrathod/exercisecounter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NidhishRathod/ExerciseCounter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NidhishRathod%2FExerciseCounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NidhishRathod%2FExerciseCounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NidhishRathod%2FExerciseCounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NidhishRathod%2FExerciseCounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NidhishRathod","download_url":"https://codeload.github.com/NidhishRathod/ExerciseCounter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NidhishRathod%2FExerciseCounter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32457110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["ai","fitness","gpt2tokenizer","mediapipe","pose-detection"],"created_at":"2024-12-12T20:19:47.164Z","updated_at":"2026-04-30T06:40:16.195Z","avatar_url":"https://github.com/NidhishRathod.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Powered Workout and Diet Planner\n\nThis project is an AI-powered workout and diet planner that provides personalized fitness plans based on user input. It leverages the GPT-2 model for generating tailored workout and diet plans, integrated with a GUI built using Tkinter for an intuitive user experience. Additionally, the project includes a script for exercise counters using computer vision and Mediapipe.\n\n## Features\n\n- **Personalized Workout and Diet Plan**: Based on the user's goal (e.g., Muscle Gain, Weight Loss, Maintenance), age, weight, height, and dietary preferences, the system generates a detailed workout and diet plan.\n- **BMI Calculation**: Automatically calculates the user's BMI and provides health status (Underweight, Normal weight, Overweight, Obese).\n- **Exercise Counters**: Integrated exercise counter scripts for push-ups, squats, and biceps, utilizing computer vision techniques with Mediapipe.\n- **User Progress Saving**: Saves user details and fitness progress in a text file for future reference.\n- **GUI Interface**: User-friendly interface built with Tkinter for input collection and displaying the generated plans.\n\n## Requirements\n\n- Python 3.6 or later\n- PyTorch\n- transformers\n- Mediapipe\n- OpenCV\n- Tkinter \n\n## Installation\n\n1. Create a virtual environment and activate it:\n    ```\n    python -m venv venv\n    source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n    ```\n\n2. Install the required dependencies:\n    ```\n    pip install torch torchvision torchaudio transformers mediapipe opencv-python\n    ```\n\n4. Download the pre-trained GPT-2 model and tokenizer:\n    ```\n    python -c \"from transformers import GPT2LMHeadModel, GPT2Tokenizer; model = GPT2LMHeadModel.from_pretrained('gpt2'); tokenizer = GPT2Tokenizer.from_pretrained('gpt2')\"\n    ```\n\n5. Run the application:\n    ```\n    python Bot.py\n    ```\n\n## Usage\n\n- **Start the Application**: After running the application, a window will pop up where you can input your details, select your fitness goal, and choose your dietary preferences.\n- **Generate a Plan**: After entering the required details, click \"Generate Plan\" to receive a personalized workout and diet plan.\n- **Exercise Counters**: You can also use the exercise counter feature by selecting a script (Biceps, Push-Up, Squat) and running it.\n\n## Acknowledgements\n\n- GPT-2 model from Hugging Face\n- Mediapipe for pose detection\n- OpenCV for video processing\n- Tkinter for GUI creation\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidhishrathod%2Fexercisecounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnidhishrathod%2Fexercisecounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnidhishrathod%2Fexercisecounter/lists"}