Primary competition visual

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

Helping India
$3 000 USD
Completed (over 5 years ago)
Classification
Computer Vision
563 joined
203 active
Starti
Aug 28, 20
Closei
Oct 04, 20
Reveali
Oct 04, 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

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])))

19 Sep 2020, 18:18
Upvotes 0
User avatar
Great lakes institute of Management

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

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

just replace from tqdm import tqdm with import tqdm

21 Sep 2020, 05:25
Upvotes 0

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

22 Sep 2020, 05:19
Upvotes 0

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

22 Sep 2020, 05:20
Upvotes 0

I am interested in teaming up with you.

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

22 Sep 2020, 05:21
Upvotes 0