Giter VIP home page Giter VIP logo

face-mask-detection's Issues

face mask detection perameter

what would be the perameter of this fun
def split_data(SOURCE, TRAINING, TESTING, SPLIT_SIZE):
dataset = []

for unitData in os.listdir(SOURCE):
    data = SOURCE + unitData
    if(os.path.getsize(data) > 0):
        dataset.append(unitData)
    else:
        print('Skipped ' + unitData)
        print('Invalid file i.e zero size')

train_set_length = int(len(dataset) * SPLIT_SIZE)
test_set_length = int(len(dataset) - train_set_length)
shuffled_set = random.sample(dataset, len(dataset))
train_set = dataset[0:train_set_length]
test_set = dataset[-test_set_length:]
   
for unitData in train_set:
    temp_train_set = SOURCE + unitData
    final_train_set = TRAINING + unitData
    copyfile(temp_train_set, final_train_set)

for unitData in test_set:
    temp_test_set = SOURCE + unitData
    final_test_set = TESTING + unitData
    copyfile(temp_test_set, final_test_set)

YES_SOURCE_DIR = "dest_folder/val/yes/"
TRAINING_YES_DIR = "dest_folder/train/yes/"
TESTING_YES_DIR = "dest_folder/test/yes/"
NO_SOURCE_DIR = "dest_folder/val/no/"
TRAINING_NO_DIR = "dest_folder/val/no/"
TESTING_NO_DIR = "dest_folder/test/no/"
split_size = .8
split_data(YES_SOURCE_DIR, TRAINING_YES_DIR, TESTING_YES_DIR, split_size)
split_data(NO_SOURCE_DIR, TRAINING_NO_DIR, TESTING_NO_DIR, split_size)
location of dataset

It cann't identify when I already wear a mask.

Hi Gurucharan
I have a question when I detect facemask.
It only show red rectangle “without_mask” when i don't wear a mask.
It cann't identify when I already wear a mask.
I hope you can give me assistance.
Thank you.

Uploading Dataset

How you had uploaded dataset? Or how can I upload dataset on google colab?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.