8000 Final Project with ML pipeline integrated for Face Classification by code93 · Pull Request #9 · code93/trantor-bootcamp · GitHub
[go: up one dir, main page]

Skip to content

Final Project with ML pipeline integrated for Face Classification #9

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

Merged
merged 5 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Face Recognition Pipeline
Finished Making the pipeline for face recognition and classification, it is working and is able to detect male from female based on top 50 (highest sd) face features.
  • Loading branch information
code93 committed Jul 7, 2021
commit 09c990eacd76f865738eeaf52e27fccb701667af
14,751 changes: 14,751 additions & 0 deletions Project/ML/Face Recognition/Module-2 - Image Croping.ipynb

Large diffs are not rendered by default.

423 changes: 423 additions & 0 deletions Project/ML/Face Recognition/Module-2- Eigen Images.ipynb

Large diffs are not rendered by default.

1,494 changes: 1,494 additions & 0 deletions Project/ML/Face Recognition/Module-2- Structuring Data.ipynb

Large diffs are not rendered by default.

565 changes: 565 additions & 0 deletions Project/ML/Face Recognition/Module-2-Data Preprocessing.ipynb

Large diffs are not rendered by default.

841 changes: 841 additions & 0 deletions Project/ML/Face Recognition/Module-2-Training ML Model.ipynb

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file added Project/ML/Face Recognition/data/male_000281.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Project/ML/Face Recognition/data/sb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Project/ML/Face Recognition/data/sb2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33,314 changes: 33,314 additions & 0 deletions Project/ML/Face Recognition/models/haarcascade_frontalface_default.xml

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file added Project/ML/Face Recognition/models/pca_50.pickle
Binary file not shown.
Binary file modified Project/Website/Final_Project/companyblog/data.sqlite
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions Project/Website/Final_Project/companyblog/static/master.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.navbar {
background-color: white;
border-color: white;
color: black;
}

nav :hover {
color: black;
}

.navbar .navbar-nav .navbar-brand {
text-align: left;
}

a {
color: black;
font: bold;
}

a :hover {
color: black;
background-color: black;
}

45 changes: 26 additions & 19 deletions Project/Website/Final_Project/companyblog/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,40 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.3/socket.io.min.js"></script>
<link rel="icon" href="../static/anonymous logo.jpg" type="image/icon type">
<link rel="stylesheet" href="../static/master.css" >
<title>Cyberspace Gateway</title>
</head>
<body>
<div class="container">
<div class="jumbotron text-center">
<nav class="navbar navbar-inverse navbar-fixed-top">

<nav class="navbar navbar-expand-sm " style="border-bottom: solid grey;">
<a class="navbar-brand " style="font-size: x-large; font-weight: bold;" href="{{ url_for('core.index') }}">Home</a></li>
<div class="container-fluid">
<ul class="nav">
<ul class="navbar-nav ">

<li ><a href="{{ url_for('core.index') }}">Home</a></li>
<li ><a href="{{ url_for('core.info') }}">About Us</a></li>
<!-- <li class="nav-item" ><a class="navbar-brand " style="font-size: x-large; font-weight: bold; font-style: italic;" href="{{ url_for('core.index') }}">Home</a></li> -->
<!-- <li class="nav-item"><a class="nav-link" href="{{ url_for('core.info') }}">About Us</a></li> -->
{% if current_user.is_authenticated %}
<li ><a href="{{ url_for('users.logout') }}">Log Out</a></li>
<li ><a href="{{ url_for('users.account') }}">Account</a></li>
<li ><a href="{{ url_for('blog_posts.create_post') }}">Create Post</a></li>
<li class="nav-item" ><a class="nav-link" href="{{ url_for('users.account') }}">Account</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('blog_posts.create_post') }}">Create-Post</a></li>
<!-- <li class="nav-item"><a class="nav-link" href="{{ url_for('users.logout') }}">Log Out</a></li> -->
{% else %}
<li ><a href="{{ url_for('users.login') }}">Log In</a></li>
<li ><a href="{{ url_for('users.register') }}">Register</a></li>
<!-- <li class="nav-item"><a class="nav-link" href="{{ url_for('users.login') }}">Log In</a></li> -->
<!-- <li class="nav-item"><a class="nav-link" href="{{ url_for('users.register') }}">Register</a></li> -->
{% endif %}

</ul>
</div>
</nav>
{% if current_user.is_authenticated %}
<a class="nav-link" style="font-weight: bold;" href="{{ url_for('users.logout') }}">LOGOUT</a>
{% endif %}

{% if not current_user.is_authenticated %}
<a class="nav-link" style="font-weight: bold;" href="{{ url_for('users.login') }}">LOGIN</a>
{% endif %}
</nav>
<body>
<div class="container">
<div class="jumbotron text-center" style="background-color: white;">
<div class="container">
{% block content %}

Expand All @@ -45,9 +53,8 @@
</div>

</body>
<nav class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container-fluid">
<h3> contact me: shubhambirmi@hotmail.com </h3>
</div>
</nav>
<footer style="border-top: solid grey;">
<a class="nav-link" style="text-align: center; font-weight: bold; font-size: large;" href="{{ url_for('core.info') }}">About Us</a>
</footer>

</html>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends "base.html" %}
{% block content %}
<div class="jumbotron">
<h1>{{ post.title }}</h1>
<h2>Written by: {{post.author.username}}</h2>
<h3>Published: {{ post.date.strftime('%B %d, %Y') }}</h3>
<p>{{post.text}}</p>
<h1 style="font-weight: bold;">{{ post.title }}</h1>
<h4>Written by {{post.author.username}} on {{ post.date.strftime('%B %d, %Y') }}</h4>
<!-- <h3>Published: {{ post.date.strftime('%B %d, %Y') }}</h3> -->
<p style="font-size: 32px; text-align: justify;">{{post.text}}</p>
{% if post.author == current_user %}
<div>
<a class="btn btn-secondary" href="{{ url_for('blog_posts.update', blog_post_id=post.id) }}">Update</a>
Expand Down
14 changes: 5 additions & 9 deletions Project/Website/Final_Project/companyblog/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{% extends "base.html" %}
{% block content %}
<div class="jumbotron">
<h1>Cyberspace Gateway Blogs</h1>
<p>Welcome to the Blog's Page</p>
</div>

<div class="container">

Expand All @@ -15,11 +11,11 @@ <h1>Cyberspace Gateway Blogs</h1>
<div class="card-body">


<h2><a class="card-title" href=" {{ url_for('blog_posts.blog_post', blog_post_id=post.id) }}">{{ post.title }}</a></h2>
<a href="{{ url_for('users.user_posts', username=post.author.username) }}">Written By: {{ post.author.username }}</a>
<p>Published on: {{ post.date.strftime('%Y-%m-%d') }}</p>
<p class="card-text">{{ post.text[:100] }}...</p>
<a href="{{ url_for('blog_posts.blog_post', blog_post_id=post.id) }}" class="btn btn-primary">Read Blog Post</a>
<h2><a class="card-title" href=" {{ url_for('blog_posts.blog_post', blog_post_id=post.id) }}" style="font-weight: bold;">{{ post.title }}</a></h2>
<a href="{{ url_for('users.user_posts', username=post.author.username) }}">written by: {{ post.author.username }}</a>
<p style="font-size: small;">{{ post.date.strftime('%Y-%m-%d') }}</p>
<p class="card-text" style="color: grey;">{{ post.text[:100] }}...</p>
<!-- <a href="{{ url_for('blog_posts.blog_post', blog_post_id=post.id) }}" class="btn btn-primary">Read Blog Post</a> -->
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
{{ form.submit(class="btn btn-default") }}
</div>
</form>
<div class="container-fluid">

<a class="btn btn-default" href="{{ url_for('users.register') }}">New User?</a>

</div>


</div>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h2> Sign Up</h2>
<div class="container pt-3">
<form class="form-horizontal" method="POST">

Expand All @@ -21,6 +22,11 @@
{{ form.submit(class="btn btn-default") }}
</div>
</form>
<div class="container-fluid">

<a class="btn btn-default" href="{{ url_for('users.login') }}">Back to LOGIN</a>

</div>
</div>

{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2><a href="{{ url_for('blog_posts.blog_post', blog_post_id=post.id) }}">{{ pos
Written by: <a href="{{ url_for('users.user_posts', username=post.author.username) }}">{{ post.author.username }}</a>
<p class="text-muted">Published on: {{ post.date.strftime('%Y-%m-%d') }}</p>
<br>
<p>{{post.text}}</p>
<p style="text-align: justify;">{{post.text}}</p>
<br>

{% endfor %}
Expand Down
0