News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

Automated tagging

Started by neronero, Jun 19, 2023, 10:06 AM

Previous topic - Next topic

Goldo

Quote from: sjeongjin on Jul 18, 2024, 02:49 PMive been working on removing tags from the tag list and updating a single pack for the past 15 hours. Kinda dead but so far i've narrowed it down to the following.

quest, shop, full_body, waitress, cooking, dancer, dancing, masseuse, massage, bath, geisha, etiquette, sleeping, service, fuck, fucking, anal, anal sex, fetish, hardcore, lesbian, bisexual, bisexual_female, group, group_sex, multiple_boys, big, stallion, beast, bestiality, machine, monster, happy, laugh, neutral, sad, cosplay, roleplay, role, maid, bunny, bunny_ears, swim, swimsuit, kimono, geisha, strip, stripping, undressing, sing, singing, libido, erect_nipples, drunk, sensitivity, caress, cleaning, broom, constitution, run, sport, exercise, public, exhibitionism, crowd, onlookers, toy, dild, vibr, beads, bead, anal_beads, plug, strap-on, strap, dirty, oil, dom, sub, humiliation, humiliated, humiliate, insults, kiss, kissing, fondle, fondling, fondled, grabbing, grope, groped, ass_grab, finger, masturbate, handjob, hj, penis worship, penis-worship, penis_worship, penisworship, titjob, paizuri, footjob, fj, oral, blowjob, bj, fellatio, deep, irru, dt, irrumaito, deepthroat, sixty-nine, doggy, doggystyle, cowgirl, cowgirl_position, piledriver, upside-down, spooning, double, tied_up_(sexual), gag, spanking, spank, spanked, slap_mark, rimming, anilingus, fisting, lactation, lactate, watersports, peeing, enema, cumshot, on-body, cum_on_body, cum_on_breasts, cum_on_face, cum_on_hair, swallow, cum_in_mouth, inside, internal_cumshot, aftersex, after_sex, cum-shower, cum shower, denied, orgasm_denial, squirt, market, tied_up_(nonsexual), advertise, cheerleader, holding_sign, spoken_blush, nun, praying, own_hands_together, date, dating, couple, party, embar, angry, anger_vein, clenched_teeth, refuse, rape, molestation, hurt, injury, pain, sick, apron, china, cheongsam, chinese_clothes, hooker, microskirt, pasties, revealing_clothes, miko, casual, student, teacher, nurse, santa, christmas, bride, wedding_dress, catgirl, cat_ears, cat_girl, study, reading, writing, beach, nature, garden, forest, flower_field, grass, street, road, blindfold, cunnilingus, tempt, seductive_smile, virgin, pregnant, libido, tentacles, tentacle

it's not finished yet and i think a few more tags can be removed for now but i've started to blank out so it's time to rest a bit.

removed tags are based on inaccuracy and being unnecessary.
ex: naked tag is accurate however because BK sex tags don't use the naked tag, most of the images that get tagged naked need to be removed anyways.

ex2: the wet tag gets used every single time any amount of liquid is present in an image and I think 95% of the time has to be removed.

this is based on using WD14 ConvNext v3 as the interrogator and a sample size of 8000 images.  If you do see a bunch of very random tags get added to an image, try running the tagger 2 or 3 times and see if it gets rid of some of them (worked for me).

just as a side note it would be nice if some tags were converted to basic sex/fetish/service tags alongside its extended tag. Currently bdsm gets tagged as bondage but not fetish and  blowjob getting tagged with oral but not service. The bk namer does adds basic tags automatically when you tag manually but when automated it only translates to it's extended tag. other cum/tags adding cumshot would be nice too since the actual cum tag is highly unreliable



If I remember well, some girlpack makers made me take away the auto-tagging of sex acts attached to fixations (like service for blowjobs or fetish for bondage), because they wanted the freedom to reserve certain pictures for advanced training only. This is why if you read through the tag dictionary, you'll see I have recommended some tags in comments but they are not applied automatically. I can't remember when or where but they did a convincing argument about it (probably lost to the old forum).
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

sjeongjin

#31
Quote from: Goldo on Jul 19, 2024, 08:05 PMIf I remember well, some girlpack makers made me take away the auto-tagging of sex acts attached to fixations (like service for blowjobs or fetish for bondage), because they wanted the freedom to reserve certain pictures for advanced training only. This is why if you read through the tag dictionary, you'll see I have recommended some tags in comments but they are not applied automatically. I can't remember when or where but they did a convincing argument about it (probably lost to the old forum).

to be more specific, when the images are run through the autotagger the tags are added to textfiles which may have tags such as
fellatio, oral, kimono, cum_in_mouth, cum_on_body, cum_on_breasts, couple, deepthroat, handjob, undressing, after_sex, cum_on_hair which are then added to the image and then converted into its equivalent BK tags using the naming tool.

Because the conversion is done using the namer tool the change i'm looking for would need to be done through the autotagger textfile containing the tags maybe for example by automatically adding a service tag if there was also a related tag such as oral, blowjob, or fellatio to the textfile before moving it to the image. technically it would also be possible through the namer tool for example by replacing every text with [oral] into [oral service] and likewise with each other related tag but it wouldn't be automated which is what i'd like :v .

This would just reduce the the time it takes to tag all the sex images if in tagging conversion process it would also add a sex tag because it would be easier to remove a few service/sex/anal tags from images that don't need them than to have to add those tags to every other oral/deepthroat/doggy/pile/cowgirl image during the manual tagging stage since the majority of sex images need one of the basic 4 tags. Might even save me a few hours of clicking because the volume of images I have to tag are 10,000+ just for my update folder.


But while reading your post I did have a realization that i don't actually have to add a basic tag to every single sex image if I only want them to interact with a specific part of advanced training which i hadn't been considering while mindlessly tagging. is there a place i can look up the tag dictionary? I do want to better understand how tags interact in game.

Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

#32
Quote from: sjeongjin on Jul 20, 2024, 04:02 AMtechnically it would also be possible through the namer tool for example by replacing every text with [oral] into [oral service] and likewise with each other related tag but it wouldn't be automated which is what i'd like
You can modify your copy of the tagger tool to do so automatically upon hitting "Commit changes". Open up the tagger's script.rpy, find this function and add these lines:
        def get_new_name(self, shorten = False):

            self.tags.sort(key=sort_tags)

            for tag in self.tags:                                                      # new code
                tag_entry = optional_tag_dict.get(tag, None)                           # new code
                if tag_entry is not None: # tag was found                              # new code
                    if tag_entry.auto_add is not None :                                # new code
                        for auto_tag in tag_entry.auto_add : self.add_tag(auto_tag)    # new code

            global delete_count
            global girl_list

Then put your desired auto-tags under 'auto_add' in the tagger's settings.rpy. For example:
            Tag(name="titjob", _or=("service", "group"), order=60, order2=5, fix_name="titjobs", variants=("titj", "ttj", "tits", "titty"), auto_add=("service")),

Boom, the tagger makes every 'titjob'-tagged image also 'service'.



Quote from: sjeongjin on Jul 20, 2024, 04:02 AMis there a place i can look up the tag dictionary? I do want to better understand how tags interact in game.
In BKsettings.rpy. Look for
tag_dict = {

                ...

                "model" : ("profile", "model"), # Model is used for advertising pictures
On the left is a (partial) match in the filename, on the right is the (internal) game tag (or tags) that goes with it.

Understanding how tags work is a herculean task. You'd need to read through most of the game's code for that. I suggest heeding the suggestion to tag 'WYSIWYG' and let Goldo take care of matching the image tag with proper in-game usage.
And with strange aeons even death may die...

sjeongjin

Quote from: sjeongjin on Jul 18, 2024, 02:49 PMive been working on removing tags from the tag list and updating a single pack for the past 15 hours. Kinda dead but so far i've narrowed it down to the following.

quest, shop, waitress, cooking, dancer, dancing, masseuse, massage, bath, geisha, etiquette, service, fuck, fucking, anal sex, fetish, hardcore, lesbian, bisexual, bisexual_female, group, group_sex, big, stallion, beast, bestiality, machine, monster, happy, laugh, neutral, sad, cosplay, roleplay, role, maid, bunny, bunny_ears, swim, kimono, geisha, strip, stripping, undressing, sing, singing, libido, erect_nipples, sensitivity, caress, cleaning, broom, constitution, run, sport, exercise, public, exhibitionism, crowd, onlookers, toy, dild, vibr, bead, plug, dirty, oil, dom, sub, humiliation, humiliated, humiliate, insults, kiss, kissing, fondle, fondling, fondled, grope, groped, ass_grab, finger, masturbate, handjob, hj, penis worship, penis-worship, penis_worship, penisworship, titjob, paizuri, footjob, fj, oral, blowjob, bj, fellatio, deep, irru, dt, irrumaito, deepthroat, sixty-nine, doggy, doggystyle, cowgirl, piledriver, upside-down, spooning, double, tied_up_(sexual), spanking, spank, spanked, slap_mark, rimming, anilingus, fisting, lactate, watersports, peeing, enema, cumshot, on-body, cum_on_face, swallow, inside, internal_cumshot, aftersex, cum-shower, cum shower, denied, orgasm_denial, squirt, market, tied_up_(nonsexual), advertise, cheerleader, holding_sign, spoken_blush, nun, praying, dating, party, embar, anger_vein, refuse, molestation, hurt, injury, pain, sick, apron, china, cheongsam, chinese_clothes, pasties, miko, casual, student, teacher, nurse, santa, christmas, bride, wedding_dress, catgirl, cat_ears, cat_girl, study, reading, writing, beach, garden, flower_field, grass, street, road, blindfold, cunnilingus, tempt, seductive_smile, virgin, pregnant, libido, tentacles, tentacle, 1girl

removed tags are based on inaccuracy and being unnecessary.
ex: naked tag is accurate however because BK sex tags don't use the naked tag, most of the images that get tagged naked need to be removed anyways.

ex2: the wet tag gets used every single time any amount of liquid is present in an image and I think 95% of the time has to be removed.

this is based on using WD14 ConvNext v3 as the interrogator and a sample size of 8000 images. 
If you do see a bunch of very random tags get added to an image, try running the tagger 2 or 3 times and see if it gets rid of some of them (worked for me). It works best if you double check the text file before replacing the names

updated tag list:8/9/2024
at this point mistakes aren't a huge problem, but it would be nice to start adding tags back in if the accuracy of the tagger improves in the future.
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

sjeongjin

#34
@neronero how do you change the namertool settings so it recognizes automated tags and converts them into bk tags?
@Jman if you know how to do this as well. SOmeone please help. I looked through the textfile but couldnt figure it out bymyself

i want to add additional cosplay tags to the automater so i dont have to tag hundreds of bloomers images manually. 

Also it's time I try to make the process a bit more streamlined for the average pack maker so I'm thinking of trying to add additional tags that may be accurate enough. Such as maybe adding a automated tag (a/t) for gaping that will automatically tag to anal>. It would be faster to try to teach me than for me to ask every single time i need to adjust the tool lol.

Oh also i want to map the 1 key and 2 key to forward and back /next and before images so that i can use the left hand to tag main tags and my right and on mouse to tag extended tags. It would actually speed up things quite a bit
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

Find these lines in the tagger's 'settings.rpy' file:
init -2 python:
   
    # tag_dict now serves as a way to add additional 'tags light'. Basically, those tags get kept if they are already in the filename, but no buttons are available to actively influence them.
    tag_dict = {
                "gallery" : "gallery", # Used as a background for the girl's CG gallery
                "ecchi" : ("rest", "libido")
    }
Add whatever you like to the list (don't forget commas!), e.g.
                "bloomer" : ("cosplay", "constitution")

The gaping thing would work like the 'titjob' -> 'service' conversion from before, I guess? If the auto-tagger can handle gaping, just add this in settings.rpy:
    optional_tags = [
            ...
            Tag(name="gaping", _or=("anal", "sex"), order=80, order2=5, variants="gape", auto_add="anal"),
Modify acts if this is supposed to work for non-sex/anal activity.
And with strange aeons even death may die...

sjeongjin

thanks jman! i don't know much about coding overall but I do enough about syntax to create short lines of code from a single class on network administration i took several years ago...

i gave up on the path of coding because of that class though LOL
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

#37
For the hotkeys, open up the tagger's screens.rpy and add these:
screen pic_ui(context):
#    key "mouseup_3" action Hide("pic_ui")
    key "K_LEFT" action Return("cycle_previous")
    ...
    key "K_1" action Return("cycle_previous")
    key "shift_K_1" action Return("cycle_previous_10")
    key "ctrl_K_1" action Return("cycle_previous_100")
    key "K_2" action Return("cycle_next")
    key "shift_K_2" action Return("cycle_next_10")
    key "ctrl_K_2" action Return("cycle_next_100")



I know just enough about coding to recognise how little I really know about it and how badly I mangle the design of whatever I usually write. I was originally taught Java (not JS) as a beginner language, for chrissakes!

I've taken a course on some parts of the book 'Algebra of Programming' (and not only that course, by far) and let me tell you it was not the math that scared me. :D
And with strange aeons even death may die...

sjeongjin

#38
Quote from: Jman on Aug 11, 2024, 06:55 AMFind these lines in the tagger's 'settings.rpy' file:
init -2 python:
   
    # tag_dict now serves as a way to add additional 'tags light'. Basically, those tags get kept if they are already in the filename, but no buttons are available to actively influence them.
    tag_dict = {
                "gallery" : "gallery", # Used as a background for the girl's CG gallery
                "ecchi" : ("rest", "libido")
    }
Add whatever you like to the list (don't forget commas!), e.g.
                "bloomer" : ("cosplay", "constitution")

The gaping thing would work like the 'titjob' -> 'service' conversion from before, I guess? If the auto-tagger can handle gaping, just add this in settings.rpy:
    optional_tags = [
            ...
            Tag(name="gaping", _or=("anal", "sex"), order=80, order2=5, variants="gape", auto_add="anal"),
Modify acts if this is supposed to work for non-sex/anal activity.

i wonder, why are there separate lines of code for main sex tags and fixations?

init -2 python:
 
    # tag_dict now serves as a way to add additional 'tags light'. Basically, those tags get kept if they are already in the filename, but no buttons are available to actively influence them.
    tag_dict = {
                "gaping_anus" : ("anal")
                "gallery" : "gallery", # Used as a background for the girl's CG gallery
                "ecchi" : ("rest", "libido")
    }

is it not possible' to add this for example where the image file having gaping_anus would convert that to an anal tag? the goal isn't to add an extra gaping_anus text AND an anal tag to the image but to replace the tag that's been received from the autotagger> and convert it into a BK tag in this case an anal tag. After all i'm not trying to create a new tag but convert more gelbooru/automated tags into viable BK tags. Or is that what the previous code does and i'm just not understanding it correctly?
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

#39
What do you mean by separate lines? The Tag(...) lines? Because each tag has their own separate button, basically. In different parts of the UI, too.

The 'tag_dict' change does exactly that, converts your 'gaping_anus' into "anal" once you hit the 'Commit changes' button. If you want to retain 'gaping_anus', you need to add it to the right.

My example does add a 'gaping' tag, if you want a button, too.
And with strange aeons even death may die...

sjeongjin

Quote from: Jman on Aug 11, 2024, 08:05 AMWhat do you mean by separate lines? The Tag(...) lines? Because each tag has their own separate button, basically. In different parts of the UI, too.

The 'tag_dict' change does exactly that, converts your 'gaping_anus' into "anal" once you hit the 'Commit changes' button. If you want to retain 'gaping_anus', you need to add it to the right.

My example does add a 'gaping' tag, if you want a button, too.

mmm i was referring to tags as the separate words that get added to an image so the name of the image itself "anal maid apron grope blindfold (00000)" is composed of 5 tags. what i was trying to do was simply change the gaping_anus tag added by the bot into an anal so tag so that i can configure the bot to recognize more gelbooru related tags that can then be converted to BK related tags that interact in game. I was confused because i thought there was no anal/sex/fetish/service tags in the tag_dict because it seemed i needed to add the code to a different section in order to add those tags to the image lol.
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

Yeah, 'tag_dict' in the tagger is not really the tag dictionary, it's a sort of 'hidden additional tag' thing. Main tags are directly tied to buttons.
And with strange aeons even death may die...

sjeongjin

#42
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/screens.rpy", line 1034: expected a keyword argument or child statement.
    ...
    ^

File "game/settings.rpy", line 45: Tab characters are not allowed in Ren'Py scripts.

Ren'Py Version: Ren'Py 7.0.0.196
Sun Aug 11 04:34:04 2024
whoops, rookie mistake lol (by me)
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

sjeongjin

#43
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/settings.rpy", line 44: invalid syntax
                    "gaping_anus" : ("anal")
                                 ^
   

Ren'Py Version: Ren'Py 7.0.0.196
Sun Aug 11 04:53:32 2024
suddenly im having flashbacks to my college IT course i have no idea what i'm doing after all LOL
edit:somehow even though you warned me and i replied i understand i still managed to forget a single comma causing me all of this trouble LOL> well i fixed it after another cup of coffee and a few slaps to the face.

looks like everything is working as intended and having those 1 and 2 keys configured is working like a charm. actually this is the best time saver i've received so far LOL
Link to packs:
https://www.mediafire.com/folder/ztc2nv6y2ml7h/BK+girl+packs
If you want to support my reckless spending to make better packs donate here. Or just buy me a coffee or energy drink so I can keep tagging beyond my human limitations.
https://ko-fi.com/sjeongjin

Jman

You seem to have a masochistic streak, don't you? :P
And with strange aeons even death may die...