-
Notifications
You must be signed in to change notification settings - Fork 1
Home
hky.u edited this page Jun 21, 2020
·
5 revisions
MaskingClothes is an OpenAPI that masks images and classifies upper, lower, whole items using Mask-RCNN(matterport).
<Reference> Smart Coordinator: https://github.com/ChoiHyungKyu/Smart_Coordinator

def __init__(self, img_size=None, threshold=None, gpu_count=None, images_per_gpu=None):
...
- img_size(default: 512)
- threshold(default: 0.7)
- gpu_count(default: 1)
- images_per_gpu(default: 1)
def run(self, IMG_DIR):
...
return img, masked_image, label_type, label, score, complete
- IMG_DIR = directory of image (ex: Images/mask1.jpg)
- img = Original image (Image)
- masked_image = Result Image (list of Image)
- label_type = Upper, Lower, Whole (list)
- label = Specific category name (list)
- complete = Whether model detects items well
MIT License
Copyright (c) 2020 hky.u
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.