OSError: SavedModel file dors not exist at: ./AstBert_bert - save

I was working on colab I saved my machine learning model and checked that it was well saved before closing the notebook I come back to open the notebook I can't find my model anymore I'm looking in my drive I still can't find it. Where can it be?

Related

ROI selection cv2.selectROI not working in Google Colab

I’m learning opencv for object detection and trying to do all the coding using google colab. And so far it has been working well: I can mount the gdrive and upload file and read the video file just fine.
The selecting ROI by passing video frame into cv2.selectROI() crashed the Colab. The runtime log complained about a plugin xcb not initialising. Further reading reveals the plug in require to be run on local machine, so I wonder if there is a way to run cv2.selectROI or equivalent on colab?

Datasets in the Google Colab

I would like to load my own data set with images in order to test my CNN algorithm. I've got two folders, one for training and another one for validation. I have loaded that folders into the Google Drive. I would like to ask how to download folders from Drive into the Colab ? Or maybe there are another better ways to do that ? I look forward to hearing from You soon. Best wishes!
Since you already have the folder in drive , go to google colab and run the following:
#Mounting your Google Drive in the runtime's virtual machine
from google.colab import drive
drive.mount('/content/drive/')
On running the above code you will find a URL from where you can obtain the authorisation code. Paste the code in the space provided and click enter
If you are able to access Google Drive, your google drive files should be all under:
You can then copy the path and move to the directory using :
%cd /content/drive/MyDrive/foldername

finding path in google colab

I am learning to work on google colab. For some reason, I did cd enter.
Now when I do !pwd
output : /root
when I do: ls!
output: googleplay
This is a file I was supposed to create in another folder.
Now I am not able to figure out how to get into the folder that I have in colab.
I am trying to go to the folder called tutorial that I have in colab.
I don't know how to get to this location
This is the tree structure of my directory
-Sample_data
-tutorial
tutorial
I know these files are stored in the content folder. But how should I find path to this
%cd <directoryname>
This is a magic function to change the directory.
I believe this question was already answered here: Changing directory in Google colab (breaking out of the python interpreter)
As the thread suggests, use:
%cd DIRECTORY_NAME
I hope this will help.

How do you display a Neo4j graph in Jupyter lab or notebook?

Someone pointed me to this link:
http://nicolewhite.github.io/neo4j-jupyter/hello-world.html
It looks like it used to work before, but something got updated in py2neo or neo4j...
The repo is at:
https://github.com/nicolewhite/neo4j-jupyter
Does anyone have this working?
I've encountered 2 problems:
The methods called are removed from the API (I've tried installing py2neo 3 (an older release) - but it would mess up something in jupyter.
I've tried changing the script itself to use hard coded strings, but the jupyter lab notebook refuses to serve up the vis.css and .js resources (returning 403 forbidden). Maybe I didn't put those files in the right folder?
In the meantime, I guess I'll have to make do pasting a screenshot from the neo4j web interface into the notebook.
Will keep you posted if I make any progress on this.
Perhaps it's not suitable for you, but i hope my Hack will barely measure up to your problem.
stop Neo4j.
Download
7zip
Javinder
jbe (Java Bytecode Editor)
Search for two entries using Javinder.
Content-Security-Policy: frame-ancestors 'none'
X-Frame-Options: DENY
Open .jar with 7zip, extract and delete the corresponding file.
Open the extracted file with jbe and delete the corresponding entry (please note that the operation will be reflected immediately).
Write the modified file to .jar using 7zip.
start Neo4j
Open jupyter notebook with chrome.
Open Neo4j with iframe tag.
Do your work.
right click and print.
smpl file.
https://gist.github.com/nibuiro/bb7d14a6e6b87133ed74e04b4fd1403a

Importing a single large Google Drive archive into a shared Google Colab project

I am working on a class project where we're working with a large dataset in Google Colabs. Notably, the file is not saved if the runtime disconnects. I thus downloaded the dataset to my personal drive, but am struggling to get it accessible to the Colabs project. I also can't just mount my drive because there are other people working on this.
Is there some way to download a link-sharing=on drive file in Colabs?
A way to save the trained model would also be useful, but the same issue of sharing it and the saved files still applies.
There are 2 ways that I know.
If you only want to share with your friends, not making it public, you can share via google drive. Each friend will need to auth.authenticate_user() and then use pydrive to load the file given its FILE_ID.
If you can make it public, it's even easier. Anyone can download the file with
!gdown --id xxxxxxxxx
Where xxxxxxx is the FILE_ID.

Resources