{"id":31667863,"url":"https://github.com/trongkhanh083/virtual-try-on-ring","last_synced_at":"2026-04-15T15:32:23.774Z","repository":{"id":318288263,"uuid":"1066960142","full_name":"trongkhanh083/virtual-try-on-ring","owner":"trongkhanh083","description":"Virtual Ring Try-On using AI","archived":false,"fork":false,"pushed_at":"2025-10-06T08:50:35.000Z","size":4971,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T10:35:31.753Z","etag":null,"topics":["computer-vision","controlnet","mediapipe","realesrgan","segment-anything","stable-diffusion","virtual-try-on"],"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/trongkhanh083.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-30T07:35:09.000Z","updated_at":"2025-10-06T08:50:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a232387-303b-4c12-9f4c-494ad834c626","html_url":"https://github.com/trongkhanh083/virtual-try-on-ring","commit_stats":null,"previous_names":["trongkhanh083/virtual-try-on-ring"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/trongkhanh083/virtual-try-on-ring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trongkhanh083%2Fvirtual-try-on-ring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trongkhanh083%2Fvirtual-try-on-ring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trongkhanh083%2Fvirtual-try-on-ring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trongkhanh083%2Fvirtual-try-on-ring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trongkhanh083","download_url":"https://codeload.github.com/trongkhanh083/virtual-try-on-ring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trongkhanh083%2Fvirtual-try-on-ring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278872155,"owners_count":26060525,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["computer-vision","controlnet","mediapipe","realesrgan","segment-anything","stable-diffusion","virtual-try-on"],"created_at":"2025-10-08T00:48:39.828Z","updated_at":"2025-10-08T00:48:40.757Z","avatar_url":"https://github.com/trongkhanh083.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003e💍 Virtual Ring Try-On\u003c/h2\u003e\n\nAn AI-powered Virtual Ring Try-On system that lets users visualize how a ring looks on their hand.\nThe pipeline combines computer vision and generative AI techniques:\n\n\u003ch4\u003eMediapipe Hand Detection – detect and localize hand.\u003c/h4\u003e\n\n\u003ch4\u003eSegment Anything (SAM) – isolate the ring region.\u003c/h4\u003e\n\n\u003ch4\u003eTraditional Compositing – place the ring onto bare hand templates.\u003c/h4\u003e\n\n\u003ch4\u003eStable Diffusion 1.5 + ControlNet (Inpainting) – refine compositing with realistic shadows, reflections, and lighting.\u003c/h4\u003e\n\n\u003ch4\u003eReal-ESRGAN – upscale the final output for sharp, high-quality results.\u003c/h4\u003e\n\n\u003ch3\u003e✨ Features\u003c/h3\u003e\n\n\u003cul\u003e\n  \u003cli\u003eUpload a hand wearing a ring → the system extracts the ring and transfers it to a bare hand.\u003c/li\u003e\n\n  \u003cli\u003eUsers can upload their own bare hand for try-on.\u003c/li\u003e\n\n  \u003cli\u003eOutputs high-resolution, photo-realistic results thanks to ESRGAN enhancement.\u003c/li\u003e\n\n  \u003cli\u003eGradio-powered interactive web UI.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003e🖼️ Demo\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e \u003cimg src=\"assets/4.jpg\" width=\"300\"/\u003e \u003cimg src=\"target/right.jpg\" width=\"200\"/\u003e \u003cimg src=\"final/4_out.jpg\" width=\"200\"/\u003e \u003c/p\u003e\n\n\u003cp align=\"center\"\u003e \u003cimg src=\"assets/10.jpg\" width=\"300\"/\u003e \u003cimg src=\"target/right.jpg\" width=\"200\"/\u003e \u003cimg src=\"final/10_out.jpg\" width=\"200\"/\u003e \u003c/p\u003e\n\n\u003ch3\u003e🚀 Installation\u003c/h3\u003e\n\n\u003ch4\u003eClone this repo:\u003c/h4\u003e\n\n```\ngit clone https://github.com/trongkhanh083/virtual-try-on-ring.git\ncd virtual-try-on-ring\n```\n\n\u003ch4\u003eCreate a conda or venv environment:\u003c/h4\u003e\n\n```\nconda create -n ringvton python=3.10 -y\nconda activate ringvton\n```\n\n\u003ch4\u003eInstall dependencies:\u003c/h4\u003e\n\n```\npip install -r requirements.txt\n```\n\n\u003ch4\u003eDownload Real-ESRGAN checkpoint\u003c/h4\u003e\n\n```\ngit clone https://github.com/xinntao/Real-ESRGAN.git\nwget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P Real-ESRGAN/weights\n```\n\n\u003ch3\u003e⚙️ Usage\u003c/h3\u003e\n\u003ch4\u003eRun the Gradio app\u003c/h4\u003e\n\n```\npython app.py\n```\n\n\u003ch3\u003e🖥️ Hardware Requirements\u003c/h3\u003e\n\nGPU strongly recommended\n\nAt least 8GB VRAM for Stable Diffusion + Controlnet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrongkhanh083%2Fvirtual-try-on-ring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrongkhanh083%2Fvirtual-try-on-ring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrongkhanh083%2Fvirtual-try-on-ring/lists"}