Skip to content

Instantly share code, notes, and snippets.

View vishal2612200's full-sized avatar
🎯
Focusing

vishal sharma vishal2612200

🎯
Focusing
View GitHub Profile
@ashokpant
ashokpant / image_crawler.py
Created April 17, 2018 05:11
Simplest google image crawler using icrawler
#!/usr/bin/python
import argparse
import os
import numpy as np
from icrawler.builtin import GoogleImageCrawler
def get_files(directory, extensions=None, shuffle=False):
@dnlglsn
dnlglsn / export_inference_graph_unfrozen.py
Created September 14, 2017 22:21
Export a checkpointed object_detection model for serving with TensorFlow Serving
"""
References:
https://github.com/tensorflow/models/blob/master/object_detection/g3doc/exporting_models.md
https://github.com/tensorflow/models/issues/1988
Unfortunately, the tutorial for saving a model for inference "freezes" the
variables in place and makes them unservable by tensorflow_serving.
export_inference_graph.py exports an empty "variables" directory, which needs to
be populated.
@alexalemi
alexalemi / emailme.py
Last active June 12, 2024 00:16
Python Gmail Email notification sender, with SMS and docopt.
#! /usr/bin/env python
""" Email Me.
Usage:
emailme <message>
emailme [-s] <message>
emailme [-s] <subject> <message>
emailme <toaddr> <subject> <message>
emailme <toaddr> <fromaddr> <subject> <message>
emailme -h | --help
@gregplaysguitar
gregplaysguitar / upgrade_user_admin.py
Last active December 4, 2021 13:37
Enhance the django user admin with enforced unique emails, better filters and list items, and user profiles editable inline.
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django.forms.models import inlineformset_factory
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
def upgrade_user_admin(UserProfile=None, unique_email=False,
list_display=None):