Skip to content

Instantly share code, notes, and snippets.

View zilongqiu's full-sized avatar
🐧

Zi-long Qiu zilongqiu

🐧
  • Hong Kong
View GitHub Profile
@zilongqiu
zilongqiu / classifier_from_little_data_script_3.py
Created May 2, 2020 06:29 — forked from fchollet/classifier_from_little_data_script_3.py
Fine-tuning a Keras model. Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
/*
MIT License
Copyright (c) 2016 Henry Chladil
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
@zilongqiu
zilongqiu / NFCHelper.java
Created September 5, 2016 22:19 — forked from henrycjc/NFCHelper.java
Basic helper class for dealing with NFC on Android
/*
MIT License
Copyright (c) 2016 Henry Chladil
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
#!/usr/bin/php
<?php
/**
* .git/hooks/pre-commit
*
* This pre-commit hooks will check for PHP error (lint), and make sure the code
* is PSR compliant.
*
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer)
*