Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an script to generate datasets #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jainaagam96
Copy link

@jainaagam96 jainaagam96 commented Aug 31, 2021

ABOUT

  • This script is used to generate a dataset of bitbirds images.
  • Initially there will be no CSV files. first run the script then CSV files will get generated.
  • you need to tell how many bitbirds images data should be in these csv files. each image will be in form of 24,24,3 and these csv files will store pixels values.
  • example - if we want 1 image in dataset so:
    - 'bitbirds_dataset' file will have 24 rows and 24 columns for this image and each cell will have 3 values for RGB.
    - 'bitbirds_target' file will have one row which is the name of bird
  • Another example - if we want 10 image in dataset so:
    - 'bitbirds_dataset' file will have 240 rows and 24 columns. and first 24 rows will belongs to first image and next 24 rows
    (i.e. 25 to 48) will belongs to second image and so on till 10th image.
    - 'bitbirds_target' file will have ten rows which are the names of respective birds of these 10 images.

How To Run

  • open folder bitbirds_dataset_generator and open python script in any editor. Now Run this script.
  • it will ask for input. enter an number, this number denotes size of datasets or count of sample images.
  • Now open bitbirds_dataset and bitbirds_target .csv files this is data set which got generated.

What is the use?

  • It will be helpful for People who want a bitBirds dataset for analysis.
  • People from different domain who want to work on supervised learning and Machine Leaning things can use this dataset.

in response of open issue #1

#This script is used to generate a dataset of bitbirds images.
#you need to tell how many bitbirds images data should be in these csv files.each image will be in form of 24,24,3.
#example - if we want 1 image in dataset so:
     #'bitbirds_dataset' file will have 24 rows and 24 columns for this image and wach cell will have 3 values for RGB.
     #'bitbirds_target' file will have one row which is the name of bird
#another example - if we want 10 image in dataset so:
     #'bitbirds_dataset' file will have 240 rows and 24 columns. and first 24 rows will belongs to first image and next 24 rows (i.e. 25 to 48) will belongs to second image and so on till 10th image.
     #'bitbirds_target' file will have ten rows which are the names of respective birds of these 10 images
Copy link
Author

@jainaagam96 jainaagam96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hii,
If you find any glitch let me know.

Thanks

@ShengnL
Copy link

ShengnL commented Oct 17, 2021

how do we create this [bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, ol, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, bg, ol, ol, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, hd, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, ew, ew, hd, ew, ew, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, ey, ew, hd, ey, ew, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, hd, hd, hd, ol, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, ol, ol, ol, ol, ol, ol, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, bk, bk, bk, bk, bk, bk, ol, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, bk, bk, bk, bk, bk, bk, ol, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, hd, bk, bk, bk, bk, bk, bk, ol, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, ol, hd, hd, hd, hd, th, ol, ol, ol, ol, ol, ol, ol, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, ol, hd, hd, th, th, th, th, th, ol, bg, bg, ol, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, th, th, th, th, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, th, th, th, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, th, th, th, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, th, th, th, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg],
[bg, bg, bg, bg, bg, bg, bg, bg, ol, hd, th, th, th, ol, bg, bg, bg, bg, bg, bg, bg, bg, bg, bg]
]

@jainaagam96
Copy link
Author

@ShengnL we can do above by explicitly write in the code right now.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants