Coder Social home page Coder Social logo

Comments (2)

mcmonkey4eva avatar mcmonkey4eva commented on August 17, 2024

At first I couldn't replicate this.

I tried renaming an anime model to 9.ckpt and an irl model to 7.ckpt (to tell them apart easily).
When I use 9: model=9, it says Loading weights from ...\9.ckpt in console and outputs anime-style. When I do 7: model=7 it says Loading weights from ...\7.ckpt and outputs irl-style.

Then I tried model=8 (without any model named that) and it loaded and ran 7.
Then I looked closer and noticed the Loading weights [abc123789] from ... part - the model hash! It has numbers in it, so when you use just a number, it can match against the hash rather than the name!

So that gives three options:
1: Just never use the same number as is in any hash value. Lol. Not realistic.
2: Give better model names. This is imo the best option. Depending on what your numbering system means, you might have eg 9 different versions of a dreambooth model, in which case I'd suggest giving your names a prefix like mydb_e9 instead of just 9. Or whatever prefix applies to whatever the situation is. If you're doing numbering just to remove it from the webpage data, you can instead use the full value format:

9:
    title: 9
    params:
        model=my_secret_model_name

3: the code could be updated to explicitly avoid matching hash. This would imo be a regression, as somebody might for whatever reason actually want that, and I don't think this issue would ever arise with any name that isn't just a single digit like that.

from sd-infinity-grid-generator-script.

itswhateverman avatar itswhateverman commented on August 17, 2024

yep i figured it might be a bit of an edge case but wanted to make you aware. I got more specific in my naming already. thanks!

from sd-infinity-grid-generator-script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.