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
61 61 | |
-1.0538868194077929e-226 | |
4.00427173344036e-228 | |
1.4137280056857302e-227 | |
1.6438697740531745e-227 | |
2.944946906701128e-228 | |
0 | |
0 | |
0 | |
1.402160033201652e-227 |
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
#!/usr/bin/env python | |
import tensorflow as tf | |
import tensorflow.contrib.eager as tfe | |
# use 1 CPU | |
conf=tf.ConfigProto( | |
intra_op_parallelism_threads=1, | |
inter_op_parallelism_threads=1) | |
tfe.enable_eager_execution(conf) |
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
# You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/. | |
# Typical usage: The --no-prompt is important (layout is all messed up otherwise). | |
jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/ | |
# By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag. |
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
To make this work you have to | |
a) install rclone https://rclone.org/ | |
b) configure remote google photos (my_gphotos here). to do this: rclone config, new remote, etc: https://rclone.org/googlephotos/ | |
c) same for my_gdrive, my_dropbox if needed | |
d) optionally, configure outgoing mail, to receive email reports: https://raspberry-projects.com/pi/software_utilities/email/ssmtp-to-send-emails | |
e) test that it works from command-line | |
f) add this script to cron, `crontab -e` (see the crontab file) | |
A few things to note: | |
1. It recommended to create your own client id (see here: https://rclone.org/drive/#making-your-own-client-id ). |