mixuala / colab_utils Goto Github PK
View Code? Open in Web Editor NEWassorted utils for use with `Colaboratory`
assorted utils for use with `Colaboratory`
Thanks for your dedication, I have successfully run 'tensorboard' on VM.
The next question is can I copy the event file to google drive and download it to local machine ?
I have seen your code for 'GCS bucket', but it seems a little bit opaque to me.
Since I work on GCS only with a file called "tensorboard_x.ipynb".
I save my checkpoint and event file to ./tmp/mnist/ in VM.
Can you specifically point out the name of project and any other things in my case?
code
import os
import colab_utils.tboard
# set paths
ROOT = os.getcwd()
LOG_DIR = os.path.join(ROOT, 'log')
# will install `ngrok`, if necessary
# will create `log_dir` if path does not exist
colab_utils.tboard.launch_tensorboard(bin_dir=ROOT, log_dir=LOG_DIR)
output
calling wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip ...
calling unzip ngrok-stable-linux-amd64.zip ...OSError Traceback (most recent call last)
in ()
8 # will installngrok
, if necessary
9 # will createlog_dir
if path does not exist
---> 10 colab_utils.tboard.launch_tensorboard(bin_dir=ROOT, log_dir=LOG_DIR)/content/drive/RoLab/transfer_learning_tutorial/colab_utils/tboard.py in launch_tensorboard(bin_dir, log_dir, retval)
111
112 """
--> 113 install_ngrok(bin_dir)
114
115 if not tf.gfile.Exists(log_dir): tf.gfile.MakeDirs(log_dir)/content/drive/RoLab/transfer_learning_tutorial/colab_utils/tboard.py in install_ngrok(bin_dir)
79 print("calling unzip ngrok-stable-linux-amd64.zip ...")
80 get_ipython().system_raw( "unzip ngrok-stable-linux-amd64.zip" )
---> 81 os.rename("ngrok", "{}/ngrok".format(TARGET_DIR))
82 os.remove("ngrok-stable-linux-amd64.zip")
83 is_grok_avail = os.path.isfile(os.path.join(TARGET_DIR,'ngrok'))OSError: [Errno 18] Invalid cross-device link: 'ngrok' -> '/content/drive/RoLab/transfer_learning_tutorial/ngrok'
Hi,
I tried the tensorboard script, but got an error saying: ModuleNotFoundError: No module named 'colab_utils'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.