Open
Conversation
ls.py,json2instanceImg.py,json2labelImg.py regarding the creation of the labels for the dataset.The changes that were made are:
1. The removal of the part of code related to the PIL package( try and except block for the import of PILLOW_VERSION from PIL)
2. The line of code "results = list(tqdm(pool.imap(process_folder, files), total=len(files)))" was modified to "results = list(tqdm(pool.imap(partial(process_folder, args=args), files), total=len(files)))"
3. The function process_folder was modified to accept the argument args for the purpose of identifying the args.id_type that was passed in the function,which was causing the error "NoneType object has no attribute 'id_type'" when the function was called.
4. The line "sys.path.append("/Users/srimanthdhondy/Programs/public-code/helpers/")" was added to the file json2instanceImg,json2labelImg to import the necessary packages from the helpers folder.
NOTE:Ensure to change the path to the helpers folder to the path in your system,while executing the code i.e., replace the path "/Users/srimanthdhondy/Programs/" with the path to the helpers folder in your system.
NOTE: The changes were made to the files to ensure that the code runs without any errors and the labels are created successfully for the dataset.Refer the README.md file for the instructions to run the code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.