This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Processing Code By Nicholas Sbalbi (@nsbalbi) | |
// Twitter post: https://twitter.com/nsbalbi/status/1406696979523047437 | |
// Github gist: https://gist.github.com/nsbalbi/7c09f0101f90c45ecc391e7f64b29c10 | |
// 6-22-2021 | |
// Motion blur via @beesandbombs and inspiration from @etiennejcb | |
/* | |
Copyright (c) 2021 Nicholas Sbalbi | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
what: | |
download all sketches (as .zip) from a given user on p5.js | |
how: | |
python <TARGET> [<OUT_DIR>] | |
who: | |
@13utters | |
""" | |
from sys import argv, exit | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import keras.backend as K | |
from keras.layers import Lambda | |
# | |
# Keras + TensorFlow | |
# Resize 'tensorA' to be of the same size as 'tensorB' using 'tf.image.resize_bilinear' | |
# Very useful for skip-connections and 'Concatenate' layers that might complain about being off by one column | |
# Only works when dimensions are provided since we use ' K.int_shape' that returns the static shape | |
# |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder