yolo v3 custom data set object detection in colab tutorial with some errors using cloud gpu part-4

preview_player
Показать описание
dataset

/content/drive/My Drive/sakthees-darknet-custom-colab /content

!mv "/content/sakthees-darknet-custom-colab" "/content"

how to move files in colab

Moving files in Google Colab
Ask Question
Asked 1 year, 11 months ago
Active 3 months ago
Viewed 13k times

7

2
I have I bunch of files in a directory, named like this:

I want to move part of them to another directory using this from Colab notebook:

!mv cat.{0..499}.jpg /content/train
I have an error:

mv: cannot stat 'cat.{0..499}.jpg': No such file or directory
Any ideas how to do this and what is the reason?

linux command-line command-line-interface google-colaboratory
share improve this question follow
asked Jun 29 '18 at 22:02

Kate Lyapina
15411 gold badge11 silver badge77 bronze badges
Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. – jww Jun 30 '18 at 0:31
add a comment
4 Answers
Active
Oldest
Votes

7

This also worked for me:

So:

share improve this answer follow
answered Dec 15 '18 at 12:12

Avocano
13111 silver badge88 bronze badges
add a comment

3

Try this

!bash -c 'mv cat.{0..499}.jpg /content/train'
share improve this answer follow
answered Jul 1 '18 at 22:09

Robin Green
28k1212 gold badges8585 silver badges165165 bronze badges
add a comment

2

you have to use "" to make it readable

share improve this answer follow
edited Jan 28 at 21:21

camille
12.8k88 gold badges2525 silver badges4242 bronze badges
answered Jan 28 at 20:44

user12801937
2111 bronze badge
add a comment

0

I have an idea , you don't need to move them to colab because after some hours , Colab will restart automatic and all data will removed , so what's solution for that ? Simply, you can copy them to colab from Drive but How can i do that ? Here's solution for that :

!cp "/content/drive/My Drive/*.jpg" "/content/train"
BUt if you still want to move them not copy , Here's solution for that :

!mv "/content/drive/My Drive/*.jpg" "/content/train"
Conclusion , " cp " for copy and " mv " for move

share improve this answer follow
vector feild analyser best tutorial animated
ppt vectoe feild analyser
differential geometry
Maxwell equations well explained
integral form of Maxwell equations

latest yolo windows problem

in the darknet/ root folder.
Рекомендации по теме
visit shbcf.ru