Primary competition visual

CGIAR Wheat Growth Stage Challenge by CGIAR Platform for Big Data in Agriculture

Helping India
$3 000 USD
Completed (~6 years ago)
Classification
Computer Vision
594 joined
203 active
Starti
28 Aug 20
Closei
04 Oct 20
Reveali
04 Oct 20
User avatar
Great lakes institute of Management
anyone help with data preparation
Connect · 19 Sep 2020, 16:16 · 8

images are in a single folder

Discussion 8 answers
User avatar

import os

import pandas as pd

from tqdm import tqdm

from shutil import copy,move

os.mkdir('Train')

os.mkdir('Train/1')

os.mkdir('Train/2')

os.mkdir('Train/3')

os.mkdir('Train/4')

os.mkdir('Train/5')

os.mkdir('Train/6')

os.mkdir('Train/7')

Data = pd.read_csv('Train.csv')

a = Data['UID']

name = Data['growth_stage']

for i in tqdm.tqdm(range(len(a))):

val_folds = os.path.join('Images/',str(a[i]) + '.jpeg')

copy(val_folds,os.path.join('Train',str(name[i])))

Upvotes 0
User avatar

thanks for your code but this code for i in tqdm.tqdm(range(len(a))): getting an error there is no attribute tqdm.tqdm

Upvotes 0
User avatar

Why did you create a separate folder for each growth stage?

Upvotes 0
User avatar

just replace from tqdm import tqdm with import tqdm

Upvotes 0
User avatar

I did it because by doing thaat i can see that the images are not properly labelled or not

Upvotes 0
User avatar

and i want to ask one thing more that if anyone want to team up with me we can team up and approach towards this problem

Upvotes 0
User avatar

I am interested in teaming up with you.

Upvotes 0
User avatar

the most irriatating data which i have ever found beacuse the images are not properly labelled

Upvotes 0