Augmentor icon indicating copy to clipboard operation
Augmentor copied to clipboard

How to customize the output name?

Open weiminson opened this issue 5 years ago • 9 comments

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?

weiminson avatar Oct 28 '19 00:10 weiminson

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?

mdbloice avatar Oct 28 '19 09:10 mdbloice

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. :)

Mahi-Mai avatar Oct 28 '19 16:10 Mahi-Mai

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...

mdbloice avatar Oct 28 '19 16:10 mdbloice

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.

Mahi-Mai avatar Oct 28 '19 18:10 Mahi-Mai

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.

mdbloice avatar Oct 28 '19 18:10 mdbloice

thank you guys, appreciate your discussion and time.

------------------ 原始邮件 ------------------ 发件人: "Marcus D. Bloice"[email protected]; 发送时间: 2019年10月29日(星期二) 凌晨2:43 收件人: "mdbloice/Augmentor"[email protected]; 抄送: "曹凯毅"[email protected]; "Mention"[email protected]; 主题: Re: [mdbloice/Augmentor] How to customize the output name? (#201)

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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

weiminson avatar Oct 29 '19 00:10 weiminson

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

cemalgurpinar avatar Jan 10 '21 13:01 cemalgurpinar

Saving output to different folder may be a good way.

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

samwu97 avatar Mar 10 '21 12:03 samwu97

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

bugger69 avatar Dec 15 '23 17:12 bugger69