Skip to content

Instantly share code, notes, and snippets.

View floriandotpy's full-sized avatar

Florian D. floriandotpy

View GitHub Profile
@floriandotpy
floriandotpy / optimize.py
Created October 5, 2016 08:46
Hyperopt script for Tensorflow model
#!/usr/bin/python3
from cnn import cnn
import hyperopt
def objective(args):
params = cnn.ExperimentParameters()
@floriandotpy
floriandotpy / Tensorflow + hyperopt memory stacktrace
Created October 5, 2016 08:44
Using hyperopt with Tensorflow eats up my vmemory. Why?
[stat] LOSS: 1.00405
Trying model: C1: 3, filters: 16, C2: 3, filters: 4
I tensorflow/core/common_runtime/gpu/gpu_device.cc:867] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0)
[stat] LOSS: 0.23471
Trying model: C1: 3, filters: 4, C2: 3, filters: 8
I tensorflow/core/common_runtime/gpu/gpu_device.cc:867] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0)
[stat] LOSS: 0.17076
Trying model: C1: 3, filters: 4, C2: 5, filters: 32
I tensorflow/core/common_runtime/gpu/gpu_device.cc:867] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0)
[stat] LOSS: 0.38854
@floriandotpy
floriandotpy / article.html
Last active August 26, 2016 08:21
Some CSS for previewing articles locally
<!doctype html>
<html>
<!-- Some CSS. Prettier when writing local articles in HTML files. Mac fonts only. -->
<style>
body { font: 18px/180% Avenir; color: #333; max-width: 800px; margin: 0 auto; padding: 0 4px; }
h1, h2 { font-family: Didot; color: #000; }
h1 { margin: 72px 0 24px; }
h2 { margin: 48px 0 12px; }
a { color: #0000cc; }
a:hover { color: #0066ff; }
/*!
* vue-intl v0.2.1
* Released under the MIT License.
*/
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
➜ videotagger .
[]
Traceback (most recent call last):
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/gui/setupDialog.py", line 890, in launchVideoTagger
self.videoTagger.submitForm()
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/videoTagger/videoTagger.py", line 740, in submitForm
maxAnnotationSpeed=self.maxAnnotationSpeed
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/videoTagger/videoTagger.py", line 321, in init
currentROI=currentROI)
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/misc/config.py", line 58, in call
~ conda install -c https://conda.anaconda.org/groakat videotagger
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment /Users/flo/anaconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
# packages in environment at /Users/flo/anaconda:
#
alabaster 0.7.7 py27_0
anaconda-client 1.4.0 py27_0
anaconda custom py27_0
anaconda-navigator 1.1.0 py27_0
appnope 0.1.0 py27_0
appscript 1.0.1 py27_0
argcomplete 1.0.0 py27_1
astropy 1.0.4 np19py27_0
## Tweets (3900 Tweets, Deutsch + Englisch gemischt):
I't vich. Uner uns das incWefenks Geaf, hahr "F3�I
Pracke. Flord my aun. Is geicht feuch softrunk Das the e. Fore that ank.
Droumme iect is dion muchcigut wor 3 ontther.
Jemet einzigetce ok, kilt spatiok nel taichn mon that. :) De eut. :)
Oh, min aden sood som oo -Schor the wersed. Abe
## Nanowrimo (50000 Worte, Deutsch):
title : Home
layout: blog/index
===
<!-- Find blog folders 2010, 2011, ... -->
<?php $years = $page->children()->filter(function($p) { return preg_match("/^\d{4}$/", $p->slug()); }); ?>
<!-- Go through all blog folders, collect articles in one single array -->
@floriandotpy
floriandotpy / migrate.sql
Created July 28, 2015 09:48
Wordpress migrate queries
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost/wordpress', 'http://mydomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://localhost/wordpress','http://mydomain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost/wordpress', 'http://mydomain.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://localhost/wordpress','http://mydomain.com');