computervisioneng / train-yolov8-custom-dataset-step-by-step-guide

GNU Affero General Public License v3.0
257 stars 112 forks source link

downloader.py Confusion #6

Open calnick1 opened 1 year ago

calnick1 commented 1 year ago

Hi @computervisioneng ,

Thank you for your tutorial, While I was running step 5 (python downloader.py $IMAGE_LIST_FILE --download_folder=$DOWNLOAD_FOLDER), I got the below error:

usage: downloader.py [-h] [--num_processes NUM_PROCESSES] [--download_folder DOWNLOAD_FOLDER] image_list downloader.py: error: the following arguments are required: image_list

Could you please help me with this, Thanks

mihailmeleca commented 1 year ago

Hi @computervisioneng ,

Thank you for your tutorial, While I was running step 5 (python downloader.py $IMAGE_LIST_FILE --download_folder=$DOWNLOAD_FOLDER), I got the below error:

usage: downloader.py [-h] [--num_processes NUM_PROCESSES] [--download_folder DOWNLOAD_FOLDER] image_list downloader.py: error: the following arguments are required: image_list

You have a file named 'image_list_file' in prepare_data directory, after executing previous steps.

computervisioneng commented 1 year ago

Hello, have you replaced $IMAGE_LIST_FILE by the location of your image list file and $DOWNLOAD_FOLDER by the location of your desired download folder?

DannyDynasty commented 1 year ago

Hello, have you replaced $IMAGE_LIST_FILE by the location of your image list file and $DOWNLOAD_FOLDER by the location of your desired download folder?

Yes, the error cleared but now i get a new error.
(pythonProject1) daniel@MacBook-Air-109 pythonProject1 % python downloader.py /Users/daniel/PycharmProjects/pythonProject1/image_list_file.py --download_folder=/Users/daniel/PycharmProjects/pythonProject1/data/images

ERROR in line 0 of the image list. The following image string is not recognized: "import os". (pythonProject1) daniel@MacBook-Air-109 pythonProject1 %

anticrusader commented 1 year ago

im getting the following error ERROR in line 0 of the image list. The following image string is not recognized: "import os".

anticrusader commented 1 year ago

Hello, have you replaced $IMAGE_LIST_FILE by the location of your image list file and $DOWNLOAD_FOLDER by the location of your desired download folder?

Yes, the error cleared but now i get a new error. (pythonProject1) daniel@MacBook-Air-109 pythonProject1 % python downloader.py /Users/daniel/PycharmProjects/pythonProject1/image_list_file.py --download_folder=/Users/daniel/PycharmProjects/pythonProject1/data/images

ERROR in line 0 of the image list. The following image string is not recognized: "import os". (pythonProject1) daniel@MacBook-Air-109 pythonProject1 %

you are doing it wrong. u need to download the "Train", "Validation", and "Test" files and place them in "Prepare_Data" folder and execute the "create_image_list_file.py" file. it'll generate a new file named "image_list_file". this "image_list_file" is used in the "python downloader.py $IMAGE_LIST_FILE --download_folder=$DOWNLOAD_FOLDER" command you need to replace $IMAGE_LIST_FILE with the path of "image_list_file"

MokshaK commented 8 months ago

i appreciate the content you put together but how this step was put together makes me feel like you aren't too considerate to students who know little and can struggle from following these steps to just to get a hold of material needed to follow the course.

i put the img files to .zip file if someone needs simpler way to get them https://drive.google.com/file/d/12UzbzPu3t1lntaQAeVRJcFPa0FFP0lAd/view?usp=drive_link