Replies: 1 comment
-
@eaidova @adrianboguszewski Your thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bringing the topic From #840
Google Colab Support
Several of the notebooks in the Openvino notebooks repository have a dependency on external
data
andutility
functions, which are either contained in corresponding directory, or downloaded on the fly. For instance, some notebooks import data from theutils
anddata
folders, which are not always present in remote environments likeGoogle Colab
(Much more accesible than currently used Binder, I feel).This makes it difficult for users to run the notebooks without manually copying the require directory into the notebook.
Thus, adding support for Google Colab would successfully make the notebooks accessible to an wider range of users, as well as make quick testing and tinkering much easier.
Major Problems
download_file
orread_image
are implemented at a common place, and we import them, but when we open in Colab, the directory is not available.requirements.txt
file, model weights inonnx
orxml
andbin
format, testing images etc.Solution
Simplest solutions are often best. I have tested this idea with 219-knowledge-graphs-conve notebook.
The solution I am thinking is,
Step 1: Clone this repository into the notebook.
Step 2: Change the directory to that corresponding notebook path.[Solves Problem 2 & 3]
Step3: Install the
requirements.txt
file.[Solves Problem 1]Adding these 3 line(which can be turned into a simple code-block, where the only variable will be the notebook name) makes the notebooks Google Colab compatible.
Example
I have tried this approach that specific approach, because is has dependency on current directory files as well as distant relative directory.
You can check the Google Colab version here: 219-knowledge-graphs-conve
Beta Was this translation helpful? Give feedback.
All reactions