Open weiminson opened 5 years ago
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?
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. :)
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...
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.
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.
thank you guys, appreciate your discussion and time.
------------------ 原始邮件 ------------------ 发件人: "Marcus D. Bloice"notifications@github.com; 发送时间: 2019年10月29日(星期二) 凌晨2:43 收件人: "mdbloice/Augmentor"Augmentor@noreply.github.com; 抄送: "曹凯毅"weiminson@qq.com; "Mention"mention@noreply.github.com; 主题: 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.
@mdbloice is there any progress on the output name of the images?
Saving output to different folder may be a good way.
--imagefold
--1.jpg
--2.jpg
--maskfold
--1.jpg
--2.jpg
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).
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?