name: CaffeNet fine-tuned on the Oxford 102 category flower dataset
caffemodel: oxford102.caffemodel
caffemodel_url: https://s3.amazonaws.com/jgoode/oxford102.caffemodel
gist_id: 0179e52305ca768a601f
license: BSD-3
// original ofca/$.3.js | |
// based on https://gist.github.com/Potfur/5576225 & https://github.com/james2doyle/saltjs | |
// more info: https://plus.google.com/109231487156400680487/posts/63eZzzrBSb6 | |
// 2 bytes less than original ;) | |
// V1 - 160b | |
window.$ = function(s,c) { | |
c = { | |
'#': 'ById', |
#!/bin/bash | |
# | |
# Bash script to clean up stray branches that have no "upstream" branch | |
# | |
# USE AT OWN RISK | |
# | |
# gitclean [--no-interactive] | |
# | |
# - no-interactive: Automatically deletes the branch, without showing the diff | |
# and asking for confirmation |
import tensorflow as tf | |
def transformer(U, theta, downsample_factor=1, name='SpatialTransformer', **kwargs): | |
"""Spatial Transformer Layer | |
Implements a spatial transformer layer as described in [1]_. | |
Based on [2]_ and edited by David Dao for Tensorflow. | |
Parameters | |
---------- |
""" Some description. | |
""" | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
import sys | |
import json | |
import tqdm |
/* | |
* Copyright (C) 2013 Square, Inc. | |
* | |
* 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
ImageView imageView = (ImageView) findViewById(R.id.card_thumbnail_image); | |
Bitmap mBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.rose); | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){ | |
//Default | |
imageView.setBackgroundResource(R.drawable.rose); | |
} else { | |
//RoundCorners | |
RoundCornersDrawable round = new RoundCornersDrawable(mBitmap, | |
getResources().getDimension(R.dimen.cardview_default_radius), 0); //or your custom radius |
from math import sqrt | |
def put_kernels_on_grid (kernel, pad = 1): | |
'''Visualize conv. filters as an image (mostly for the 1st layer). | |
Arranges filters into a grid, with some paddings between adjacent filters. | |
Args: | |
kernel: tensor of shape [Y, X, NumChannels, NumKernels] | |
pad: number of black pixels around each filter (between them) |
name: CaffeNet fine-tuned on the Oxford 102 category flower dataset
caffemodel: oxford102.caffemodel
caffemodel_url: https://s3.amazonaws.com/jgoode/oxford102.caffemodel
gist_id: 0179e52305ca768a601f
license: BSD-3
You can use this class to realize a simple sectioned grid RecyclerView.Adapter
without changing your code.
The RecyclerView
has to use a GridLayoutManager
.
This is a porting of the class SimpleSectionedListAdapter
provided by Google
If you are looking for a sectioned list RecyclerView.Adapter
you can take a look here
/* | |
* Copyright 2014 Chris Banes | |
* | |
* 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |