当前位置:网站首页>Quickly upload data sets and other files to Google colab ------ solve the problem of slow uploading colab files
Quickly upload data sets and other files to Google colab ------ solve the problem of slow uploading colab files
2022-06-26 07:53:00 【moluggg】
Method :
Can use github perhaps gitee Indirectly upload batch datasets to colab
If you want to quickly upload files to google drive , You can also try this way , Treat the data set mentioned below as the file you want to upload .
Because if directly from github/gitee If the platform uploads data sets , There is a limit on the number of files uploaded at one time . Here, local api Upload , With the help of git To upload .
Be careful gitee A single warehouse is the largest 500M, Single file is the largest 200M;github A single warehouse is the largest 5G, Please select the appropriate one according to the data set size .
Recommend to use gitee, The server is in China , Upload faster , With gitee For example , Explain the process :
1, stay gitee New warehouse .

2. Set to public

3. download git And install ( Jump to the next step )
Official website :https://git-scm.com/

4. Set the folder to upload to git Warehouse
4.1 git bash here

4.2 Configure user name and mailbox
git config --global user.name "xxx"
git config --global user.email "xxx"
4.3 Turn the project into a project that can be git Managed warehouse , Add all files under the project
git init
git add .
4.4 Add files to the warehouse
git commit -m ' This is the dataset '
4.5 Associate a local code base with a remote code base
git remote add origin https://gitee.com/moluggg/datasets
The format is :git remote add origin https://gitee.com/gitee user name / Warehouse,
4.6 Force the remote warehouse to update to the current branch
ps: If the warehouse is empty, you can skip this step
git pull --rebase origin master
4.7 Push the local code to the specified remote repository
git push -u origin master

5. stay google colab upload
from google.colab import drive
drive.mount('/content/drive')
colab Mounted on google drive, And select the location you will upload to :
!ls
%cd /content/drive/MyDrive/XX
upload gitee Warehouse dataset

!git clone https://gitee.com/moluggg/datasets.git

边栏推荐
- The first multi platform webcast of 2021ccf award ceremony pays tribute to the winners! CCF outstanding engineer
- Yyds dry inventory Druid connection pool usage
- Listview control
- 我想造SQL数据(存储结构)
- What is Wi Fi 6 (802.11ax)? Why is Wi Fi 6 important?
- Solution to the problem of multi application routing using thinkphp6.0
- Power apps application practice | easily develop employee leave attendance management applet with power apps
- [UVM practice] Chapter 3: UVM Fundamentals (3) field automation mechanism
- Deeply analyze storage costs and find cost reduction solutions
- [North Asia data recovery] a server data recovery method in which the partitions in the RAID5 array are formatted due to the misoperation of the NTFS file system
猜你喜欢

Important reference indicators for data center disaster recovery: RTO and RPO

Data governance: from top project to data culture!

Exploration and practice of incremental data Lake in station B

Opencv mouse event + interface interaction drawing rectangle polygon selection ROI

Multisensor fusion sensing

B站增量数据湖探索与实践

Web technology sharing | webrtc recording video stream

WiFi-802.11 2.4G频段 5G频段 信道频率分配表

Hand drawn style chart library chart Implementation principle of xkcd

What is the five levels of cultivation of MES management system
随机推荐
[NLP] vector retrieval model landing: Bottleneck and solution!
Jemter 压力测试 -基础请求-【教学篇】
Use intent to shuttle between activities -- use explicit intent
45. jumping game II dynamic planning DP
What is the five levels of cultivation of MES management system
4 best practices for wireless (OTA) updates
Listview control
Google Earth engine (GEE) 01- the prompt shortcut ctrl+space cannot be used
Project management learning
解决 psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
buuresevewp
记一次开发 pgadmin 时执行 Building the Web Assets 遇到的依赖安装问题
How to quickly merge multiple PDF files?
What is the difference between bone conduction earphones and ordinary earphones? Advantages of bone conduction earphones
Flutter (III) - master the usage of dart language in an article
Arrangement and insertion structure
Install the local Google plug-in and watch the free video through the oil monkey script
Click the button to call the system browser to open Baidu home page
Automatic backup of MySQL database in the early morning with Linux
Machine learning - Iris Flower classification