Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for whole layer rarities #99

Open
wants to merge 10 commits into
base: dev/v1.1.0
Choose a base branch
from
Open

Conversation

Montspy
Copy link
Owner

@Montspy Montspy commented Jul 7, 2022

Whole layers can now have a non-zero chance to be empty (i.e. skipped).
Metadata is generated with missing property or attribute where a layer is skipped.
A field for layer rarity has been added in the UI, and UI has been reworked to improve readability.

Closes #98 as it implements the weights_total layer key and the backward compatibility logic

Metadata missing Eyes layer:

{
    "name": "A Cool Collection #004",
    "description": "Very cool collection, much wow!",
    "royalty_percentage": 0,
    "id": 4,
    "attributes": [
        {
            "trait_type": "Colors",
            "value": "Blue"
        },
        {
            "trait_type": "Landscape",
            "value": "Mountain"
        },
        {
            "trait_type": "Body",
            "value": "Tri"
        }
    ],
    "properties": {
        "Colors": "Blue",
        "Landscape": "Mountain",
        "Body": "Tri"
    },
    "royalty_address": "0xe6bedb20f57e694f0c4e28946829bcc4dbdfc4a5",
    "artist": "Monty!",
    "image": "ipfs://Qmf4JrFepnJCsnHTsezxjftLLLNr5oqHdoEnAeHpahLff1",
    "animation_url": "ipfs://Qmf4JrFepnJCsnHTsezxjftLLLNr5oqHdoEnAeHpahLff1"
}

Generation statistics also accounts for missing layers:
gen_stats.json for 10 images (note per layer totals <= 10)

{
    "Colors": {
        "Red": 6,
        "Green": 2,
        "Blue": 1
    },
    "Landscape": {
        "Island": 2,
        "Mountain": 5,
        "Tunnel": 1
    },
    "Body": {
        "Tri": 2,
        "Squ": 3,
        "Cir": 5
    },
    "Eyes": {
        "Dash": 0,
        "Dot": 3,
        "Cross": 1,
        "Sunset": 1,
        "DotAgain": 0
    },
    "seed": "toast"
}

@Montspy Montspy added the enhancement New feature or request label Jul 7, 2022
@Montspy Montspy added this to the 1.1.0 milestone Jul 7, 2022
@Montspy Montspy requested a review from sk33z3r July 7, 2022 03:33
@Montspy Montspy self-assigned this Jul 7, 2022
@sk33z3r sk33z3r changed the base branch from main to dev/v1.1.0 July 12, 2022 17:16
- add layer rarity to setup page
- add hr style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python/ui: whole layer rarity
2 participants