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

How to customize the output name? #201

Open
weiminson opened this issue Oct 28, 2019 · 9 comments
Open

How to customize the output name? #201

weiminson opened this issue Oct 28, 2019 · 9 comments

Comments

@weiminson
Copy link

Hi m8,

my input image has a name like: STS.png
the outputted name looks like: label_original_STS.png_asdfasfasdfsdfd-afds-sdfdsfds-sdfsdfsd-sfdsfds.png which looks really weird.
Is there an option to set the name of the output?

@mdbloice
Copy link
Owner

Hi @weiminson, no right now that's how it works. It is to avoid filename conflicts when saving the files and to be able to see the label and original filename.

Is it the random string stuff that you have an issue with? Or the label_original_xyz stuff at the beginning of the filename?

@Mahi-Mai
Copy link

I just came to the issues to see if there were any options for this! I'd appreciate it if we could format the naming scheme ourselves. All I really need is original_name_aug_1.png, original_name_aug_2.png, etc.

The current filenaming scheme could make a process harder down the line. I have to do operations that match images to masks, which involves parsing the filename. I'm using pycococreator, so the scheme goes:
IMAGE.ext --> MASK_class_classID.ext
2045.jpg --> 2045_apple_1.png
6693.jpg --> 6693_orange_2.png
0039.jpg --> 0039_orange_2.png
etc.

It's just messy and makes things harder to organize. Let me worry about things getting overwritten. :)

@mdbloice
Copy link
Owner

Hi @Mahi-Mai, ok yes it seems some people would really like to be able to change this... Well I will see what I can do, I could just make it so that it increments numerically but there may be issues with multi-threading in that case. However, I will take a look and see what I can do in the next few days. That's the best I can offer right now, I do not see any other workarounds...

@Mahi-Mai
Copy link

Thank you, especially for the swift response! It's been so great to find such a comprehensive, module independent augmentation suite. I'll let you know if I find any solutions to the problem of my own.

@mdbloice
Copy link
Owner

Sure, no problem at all, glad you find it useful! Yeah, if you find a solution let me know here, otherwise I will try to sort something out.
M.

@weiminson
Copy link
Author

weiminson commented Oct 29, 2019 via email

@cemalgurpinar
Copy link

@mdbloice is there any progress on the output name of the images?

@samwu97
Copy link

samwu97 commented Mar 10, 2021

Saving output to different folder may be a good way.

--imagefold
   --1.jpg
   --2.jpg
--maskfold
   --1.jpg
   --2.jpg

@bugger69
Copy link

So is there any workaround or is this still an issue?
is there any way we can remove label_original or the random string at the end? hard to keep things organised. esp the random stuff..(label_original_STS.png_asdfasfasdfsdfd-afds-sdfdsfds-sdfsdfsd-sfdsfds.png is the one I'm talking about).

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

No branches or pull requests

6 participants