-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Face mask #630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face mask #630
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few modifications before merging:
- Add a section in readme named "Setup Instructions" where describe that extract the dataset.rar and how to run the script.
- Update all the paths in script as shown below in example:
testing_target=data_set('./Face-Mask-Detection/kaggle/input/face-mask-detection/test/')
- Shift all the relevant import statements on top
I have made the necessary changes. Please review it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run the whole script on your system and debug the errors. Push your changes once you are confirmed that the script runs and there is no error from your side. Found some while reviewing only:
from sklearn.metrics import classification_report | ||
import sklearn.metrics as metrics | ||
import itertools | ||
for dirname, _, filenames in os.walk('/kaggle/input'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path also needs modification
data = np.array(data, dtype="float") / 255.0 | ||
target = tf.keras.utils.to_categorical(np.array(target), num_classes=2) | ||
return data, target | ||
training_target=data_set('./Face-Mask-Detection/kaggle/input/face-mask-detection/train/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you want to load here? There is no extension to files. Same for next testing_target and valid_target. Also, where are the testing_data, training_data, and valid_data variables? They are not initialized anywhere but passed into functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaustubhgupta I think he is specifying the file here , I could be wrong as I haven't run this code yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the pylint test gave these errors and when I saw the script, I found these variables are missing but passed in functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaustubhgupta Yup , the linter is giving error because of undefined variables. I am referring to the training_target variable , he is taking directory as argument to data_set function and then appending file name here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you want to load here? There is no extension to files. Same for next testing_target and valid_target. Also, where are the testing_data, training_data, and valid_data variables? They are not initialized anywhere but passed into functions.
extension is not required, because they are folders and they will directly have access to the files within them.
What should I do ? |
all the suggestions are mentioned above |
I have done the changes, please do review |
@antrikshmisri I ran the script but it didn't work. What should we do? |
@kaustubhgupta I am unable to get some dependencies so , couldn't test it. @santushtisharma10 Can you confirm the same |
I need to do something ? |
@antrikshmisri @kaustubhgupta facing following error while running the script |
@sudipg4112001 Can you guide how to fix this? Is the script running on your machine? Can you share any GIF, video as Proof? |
As he has shown this screenshot, should we approve this? @antrikshmisri @santushtisharma10 |
@kaustubhgupta @santushtisharma10 Okay from my side but I think we should refer @avinashkranjan first. |
Yes, that makes sense |
Updates: Conveyed the message to PA, he will respond soon |
I have made the changes.. |
Do review |
@sudipg4112001 Don't Spam the Comments..Will Review it in Sometime.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM..💯🚩
Related Issue
Fixes #510