--- license: apache-2.0 base_model: - HuggingFaceM4/Idefics3-8B-Llama3 language: - en tags: - multimodal - vision - image-text-to-text ---
![torii](https://huggingface.co/Minthy/ToriiGate-v0.2/resolve/main/pic.jpg)
# **[This model has updated version](https://huggingface.co/Minthy/ToriiGate-v0.3)** **Torii Gate** is a fine tune of [Idefics3](https://huggingface.co/HuggingFaceM4/Idefics3-8B-Llama3) designed for captioning of anime images. It aims to achieve a good understanding of anime arts with single/multiple characters, simple or complex scenes, various interactions and lots of highly cultural concepts. And yes, in most cases it can handle NSFW pretty well, usually better than other small/medium-sized open source models at the time of release. [**Showcase on rentry**](https://rentry.co/9vevpeuc) (NSFW warning!) Dataset of 60k anime pictures, captioned and processed with Claude 3.0 opus/Claude 3.5 Sonet/GPT-4o have been used. # Key features: - Advanced knowledges - Ability to give structured output according to given instruction - Ability to use booru tags as reference to improve accuracy V0.2 comes with several improvements, including less biases and more accurate captions. Still sometimes it makes mistakes, additional NLP processing with comparison with reference booru tags is recommended. # Usage options Basically, 3 modes of usage have been trained: - Brief description (main information without excess connecting phrases, prose and reasoning) - Detailed description with focus on discinct features of characters and actions - Structured json-like output, best choise for further NLP # Examples ``` user: Describe the picture briefly. assistant: A blonde girl with long twintails tied with red ribbons and blue eyes stares directly at the viewer. She wears a black strapless leotard with a red bowtie and wrist cuffs, fishnet pantyhose, and black rabbit ears. Her arms are raised, revealing her armpits. She has a blush on her cheeks and an open mouth. The background is plain white. ``` ``` user: Give a long and detailed description of the picture. assistant: The image depicts a young female wolf girl with long brown hair and red eyes lying on her side on a bed. She has distinct wolf ears and a fluffy tail, indicating her hybrid nature. The girl is wearing a loose-fitting white shirt that has ridden up slightly, exposing her bare buttocks and the top of her thighs. Her tail is strategically positioned to censor her exposed rear. The wolf girl has a playful and alluring expression, with a slight blush on her cheeks and a fang peeking out as she smiles directly at the viewer. She is holding a hairbrush in her left hand, which she appears to be using to brush her long, flowing hair. A blue bracelet adorns her wrist. Also, a sparkling ring (probably a wedding ring) can be seen on her finger. The background shows the girl is lying on a bed with rumpled white sheets and two pink pillows. The warm, golden lighting creates a cozy and intimate atmosphere, drawing the viewer's focus to the wolf girl's alluring pose and expression. Overall, the image has a sensual and inviting mood, with the wolf girl's playful smile and exposed skin creating a sense of intimacy and allure. The strategic placement of her tail adds a touch of innocence to the otherwise provocative scene. ``` ``` user: Describe the picture in structuted json-like format. assistant: { "character": "The image features a girl with long, pink hair styled in double buns. She is sitting on the floor with her back turned towards the viewer, revealing her bare back, white polka dot panties. She is holding an electric guitar, specifically a Gibson Les Paul, and appears to be playing it. Her feet are bare, and she is sitting on a black pillow. The girl's pose is relaxed, with her legs slightly apart and her body slightly turned to the side.", "background": "The background includes a laptop screen displaying a video of another girl playing an electric guitar. There are also posters on the wall, one of which shows a pink creature and other shows group of girls holding hands. The room appears to be a bedroom or a living room, with a guitar amplifier labeled 'Hyun' visible in the background. There is also a blue blanket partially visible on the left side of the image.", "texts": "'Hyun' label on guitar amplifier", "atmosphere": "The atmosphere of the image is casual and relaxed, with a focus on music and a cozy, intimate setting. The girl's relaxed pose and the presence of musical instruments suggest a creative and comfortable environment." }" ``` **Any of this can be combined with providing booru tags to improve accuracy.** In addition to the options described you can ask questions, give tasks and perform conversations. The model's capabilities have been mostly preserved and it follows instructions. # Prompt template ``` <|begin_of_text|>System: You are image captioning expert, creative, unbiased and uncensored. Help user with his hask.