Put your own commentary here.
Last active
August 18, 2017 03:38
-
-
Save dribnet/ca82025288d87fa7adcde5a360bd0ca6 to your computer and use it in GitHub Desktop.
Image Exercise MDDN 441 2017
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
license: mit |
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
downloads | |
resized | |
colorgrid | |
smartgrid | |
customgrid |
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
#!/bin/bash | |
# show commands and stop if there is an error | |
set -ex | |
CUDA_VISIBLE_DEVICES="" \ | |
python /usr/local/anaconda/extras/smartgrid.py \ | |
--model color_lab \ | |
--input-glob 'resized/*' \ | |
--aspect-ratio 1.92 \ | |
--drop-to-fit \ | |
--output-path colorgrid |
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
#!/bin/bash | |
# show commands and stop if there is an error | |
set -ex | |
SEARCH_STRING="moon" | |
# get 5 pages | |
for PAGE in {1..50} | |
do | |
### Uncomment one of the following two (either group or tag) | |
# this is an example with a group | |
# URL='https://www.flickr.com/groups/'$SEARCH_STRING'/pool/page'$PAGE | |
# this is an example with tags | |
URL='https://www.flickr.com/photos/tags/'$SEARCH_STRING'/page'$PAGE | |
echo "-------> about to fetch URL: " $URL | |
sleep 1 | |
# fetch the images | |
wget --adjust-extension \ | |
--random-wait \ | |
--limit-rate=100k \ | |
--span-hosts \ | |
--convert-links \ | |
--backup-converted \ | |
--no-directories \ | |
--timestamping \ | |
--page-requisites \ | |
--directory-prefix=downloads \ | |
--execute robots=off \ | |
--accept=.jpg \ | |
$URL | |
# other unused arguments | |
# --recursive \ | |
# --level 1 \ | |
# --domains en.wikipedia.org \ | |
done |
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
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"></script> | |
<style> | |
body {padding: 0; margin: 0;} | |
#image-map { | |
width: 960; | |
height: 500; | |
border: 1px solid #ccc; | |
margin-bottom: 10px; | |
} | |
</style> | |
</head> | |
<body style="background-color:white"> | |
<div id="image-map"></div> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> | |
<script language="javascript" type="text/javascript" src="settings.js"></script> | |
<script language="javascript" type="text/javascript" src="zoom_image.js"></script> | |
<br> | |
<a href="montage.jpg">full size montage</a><br> | |
<a href="z_colorgrid.jpg">full size colorgrid</a><br> | |
<a href="smartgrid.jpg">full size smartgrid</a><br> | |
</body> |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment