- Download and install Docker: MacOS | Windows | Linux
- Clone the ml4music-workshop repo
git clone https://github.com/brannondorsey/ml4music-workshop
- Attach to the workshop docker container
cd ml4music-workshop
# Copyright (c) 2017 Brannon Dorsey | |
# 2017 Branger Briz, Inc | |
# | |
# 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 | |
# furnished to do so, subject to the following conditions: | |
# |
git clone https://github.com/brannondorsey/ml4music-workshop
cd ml4music-workshop
// copy and paste the following snippet into the developer's console | |
function getSelected() { | |
query_selector = '.label.style-scope.vz-projector-inspector-panel.style' | |
+ '-scope.vz-projector-inspector-panel.style-scope.vz-projector' | |
+ '-inspector-panel.style-scope.vz-projector-inspector-panel' | |
items = document.querySelectorAll(query_selector) | |
names = [] | |
items.forEach(item => { | |
if (item.childNodes[0].textContent) { |
Notes from Tambet Mattisen's Demistifying Deep Reinforcement Learning article.
First create an image sequence from a video with:
ffmpeg -i path/to/video.mp4 -r 30 path/to/output/folder/%06d.png
Where -r
specifies the frequency to save an image (in Hz
, i.e. 30
== 30fps
) and %06d.png
creates a zero-padded filename with 6 zeros.
Next images must be scaled and cropped. For my original case, I need to generate new images based on 512x512 input images, so I will crop a greedy (720x720
) square out of a 1280x720
video in the direct center and then scale to 512x512
. mogrify
, unlike convert
, edits images in place without creating copies :)
Notes from arXiv:1611.07004v1 [cs.CV] 21 Nov 2016
x
and random noise vector z
to y
: y = f(x, z)
G
is trained to produce outputs that cannot be distinguished from "real" images by an adversarially trained discrimintor, D
which is trained to do as well as possible at detecting the generator's "fakes".D
, learns to classify between real and synthesized pairs. The generator learns to fool the discriminator.I hereby claim:
To claim this, I am signing this object:
Use GitHub API to batch download .sch
files.
https://api.github.com/search/repositories?q=language:kicad&per_page=100&page=1
https://api.github.com/search/repositories?q=language:eagle&per_page=100&page=1
#Making Persistent Live USBs is Harder Than it Should Be 9/14/2016
What used to be easy with Ubuntu's Starup Disk Creator (usb-creator-common
+ usb-creator-gtk
)
is now a lot harder than it should be on UEFI systems. Some version before v0.2.66 have a bug that allows you to specify
live usb persistence, however it doesn't actually work. Versions > 0.3 have removed this functionality completely (wtf!).
An alternative that worked for me was using mkusb
from an installed Ubuntu distro (I could not get this to work creating live USBs from live USBs).
Steps on Ubuntu 16.06 include:
########################### | |
# ignore generated binaries | |
# but not the data folder | |
########################### | |
*/bin/* | |
!*/bin/data/ | |
######### | |
# general |