'How to mount onedrive to google colaboratory?

I use google colab with google drive in deep-learning training, but although I've 100gb premium account, sometimes it accouring error that find: ‘/content/drive/My Drive/Deep_Learning/Deep_Fashion_Dataset/.../’: Input/output error 0 sometimes.

So I want to mount my onedrive account to google colab, is there any way?



Solution 1:[1]

https://research.google.com/colaboratory/faq.html#drive-timeout explains the likely culprit for the I/O errors you see.

There is no built-in support in colab for onedrive, but maybe https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html is useful (I haven't tried it).

Solution 2:[2]

You can use OneDriveSDK which available for download in the PyPi index.

Solution 3:[3]

It seems that Microsoft has made this possible. Check the following link:

https://github.com/OneDrive/onedrive-sdk-python

Solution 4:[4]

It can be done using rclone.

Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces. Over 40 cloud storage products support including OneDrive.

Rclone is single executable (rclone, or rclone.exe on Windows) that you can simply download as a zip archive and extract into a location of your choosing.

Click here to download the rclone zip folder

Then follow this tutorial on Youtube

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ami F
Solution 2 rio
Solution 3 LD-DS-00
Solution 4 Hasitha Ranasinghe