Skip to main content

ai-soulmate-sketch-filter

A Python library designed to demonstrate the core functionalities of AI-powered soulmate sketch generation and provide a seamless integration point for exploring the SuperMaker AI's soulmate drawing tool. This package offers a simplified interface to experiment with generating potential soulmate sketches based on various input parameters.

Installation

Install the package using pip: bash pip install ai-soulmate-sketch-filter

Basic Usage Examples

Here are a few examples showcasing how to use the ai-soulmate-sketch-filter package:

1. Generating a basic soulmate sketch with default settings: python from ai_soulmate_sketch_filter import SoulmateSketchGenerator

generator = SoulmateSketchGenerator() sketch = generator.generate_sketch()

sketch is a PIL Image object. You can save it to a file.

sketch.save("soulmate_default.png") print("Generated and saved a default soulmate sketch to soulmate_default.png")

2. Generating a sketch with specific age and gender preferences: python from ai_soulmate_sketch_filter import SoulmateSketchGenerator

generator = SoulmateSketchGenerator() sketch = generator.generate_sketch(age_range=(25, 35), gender="female")

sketch.save("soulmate_age_gender.png") print("Generated and saved a soulmate sketch (female, 25-35) to soulmate_age_gender.png")

3. Generating a sketch with custom facial feature hints (experimental): python from ai_soulmate_sketch_filter import SoulmateSketchGenerator

generator = SoulmateSketchGenerator() sketch = generator.generate_sketch(facial_features={"eyes": "almond", "hair": "brunette"})

sketch.save("soulmate_facial_features.png") print("Generated and saved a soulmate sketch with specified facial features to soulmate_facial_features.png")

4. Controlling the randomness seed for reproducible results: python from ai_soulmate_sketch_filter import SoulmateSketchGenerator

generator1 = SoulmateSketchGenerator(seed=42) sketch1 = generator1.generate_sketch() sketch1.save("soulmate_seed_42_1.png")

generator2 = SoulmateSketchGenerator(seed=42) sketch2 = generator2.generate_sketch() sketch2.save("soulmate_seed_42_2.png")

sketch1 and sketch2 will be identical (if no other parameters are changed)

print("Generated two identical soulmate sketches using the same seed.")

5. Generating a sketch with a preferred ethnicity (experimental): python from ai_soulmate_sketch_filter import SoulmateSketchGenerator

generator = SoulmateSketchGenerator() sketch = generator.generate_sketch(ethnicity="asian")

sketch.save("soulmate_ethnicity_asian.png") print("Generated and saved a soulmate sketch with 'asian' ethnicity to soulmate_ethnicity_asian.png")

Feature List

  • Generates a potential soulmate sketch based on AI algorithms.
  • Provides options to specify age range, gender, and ethnicity preferences.
  • Allows for experimental specification of facial feature hints.
  • Offers seed control for reproducible results.
  • Returns a PIL Image object for easy saving and manipulation.
  • Simple and easy-to-use API.

License

MIT

This project is a gateway to the ai-soulmate-sketch-filter ecosystem. For advanced features and full capabilities, please visit: https://supermaker.ai/image/blog/ai-soulmate-drawing-free-tool-generate-your-soulmate-sketch/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_soulmate_sketch_filter-1768297.341.138.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ai_soulmate_sketch_filter-1768297.341.138.tar.gz.

File metadata

File hashes

Hashes for ai_soulmate_sketch_filter-1768297.341.138.tar.gz
Algorithm Hash digest
SHA256 34be70660bcebf80dcdb4741dbeacf2f05f08e3d0c9cfda2b63afd65ce435d3e
MD5 a9db0776879f02559fae765aa77101fe
BLAKE2b-256 86501746481b4c858479fc49a46eaa50978dcb8bbf4ed748dd155705d679b4ad

See more details on using hashes here.

File details

Details for the file ai_soulmate_sketch_filter-1768297.341.138-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_soulmate_sketch_filter-1768297.341.138-py3-none-any.whl
Algorithm Hash digest
SHA256 0faaba5b8fa181577008492c5a0386f32ebd4b2284a96dcdf9a662fba72c2443
MD5 24d27266dcd31c35119b4da6720cab99
BLAKE2b-256 00291eda469bcd04883111dd1b7ba474d363039760ad6786dcd7bc043e9699ee

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1768297.341.138 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page