Skip to content

Instantly share code, notes, and snippets.

David Boho DavidWiesner

Block or report user

Report or block DavidWiesner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DavidWiesner
DavidWiesner / flowers-nasnet.sh
Last active Nov 19, 2018
Performance decrease in TensorFlow 1.9 for large graphs #23847
View flowers-nasnet.sh
#!/usr/bin/env bash
[ ! -d "models" ] && git clone https://github.com/tensorflow/models.git
cd models/research/slim/
MODEL_NAME="nasnet_large"
TRAIN_DIR=/tmp/flowers-models/${MODEL_NAME}
DATASET_DIR=/tmp/flowers
export TF_CUDNN_WORKSPACE_LIMIT_IN_MB=500
export CUDA_DEVICE_ORDER="PCI_BUS_ID"
export CUDA_VISIBLE_DEVICES="0,1"
View train_val.prototxt
name: "CUB_GoogleNet_ST"
layer {
name: "data"
type: "ImageData"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
@DavidWiesner
DavidWiesner / SVLibSVM.java
Created Nov 16, 2015
Access support vector in LibSVM and Weka
View SVLibSVM.java
public class SVLibSVM {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new FileReader("data/diabetes.arff"));
Instances data = new Instances(reader);
reader.close();
data.setClassIndex(data.numAttributes() - 1);
// create Model
LibSVM libsvmModel = new LibSVM();
@DavidWiesner
DavidWiesner / helper.php
Created Mar 18, 2015
Owncloud Upload Max. 0 B
View helper.php
<?php
public static function maxUploadFilesize($dir, $freeSpace = null) {
if (is_null($freeSpace) || $freeSpace < 0){
$freeSpace = self::freeSpace($dir);
}
return $freeSpace === INF ? self::uploadLimit() : min($freeSpace, self::uploadLimit());
}
@DavidWiesner
DavidWiesner / Metabox-Builder.php
Last active Aug 29, 2015
Builder Pattern for Wordpress MetaBox plugin see cpt-persons.php and page-person.php for usage
View Metabox-Builder.php
<?php
/*
* Copyright (C) 2015 David Wiesner
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@DavidWiesner
DavidWiesner / duckduckgo.user.js
Created May 22, 2014
UserScript for opera duckduckgo fix onkeypress not detected
View duckduckgo.user.js
// ==UserScript==
// @name
// @namespace events.script
// @include http://duckduckgo.com/*
// @include https://duckduckgo.com/*
// @match http://duckduckgo.com/*
// @match https://duckduckgo.com/*
// @run-at document-end
// ==/UserScript==
(function () {
View build-cinnamon.sh
#!/bin/bash
function echoError(){
red='\e[0;31m'; NC='\e[0m' # No Color
[ $# -gt 0 ] && echo -e "${red}$1${NC}" >&2
}
function echoInfo(){
COLOR='\e[0;32m'; NC='\e[0m' # No Color
[ $# -gt 0 ] && echo -e "${COLOR}$1${NC}" >&2
You can’t perform that action at this time.