Skip to content

what function does forge use to load models #1344

Answered by Enferlain
Enferlain asked this question in Q&A
Discussion options

You must be logged in to vote

Actually I think this works. Adding refresh_model_loading_parameters seems to have fixed it so far.

            # Directly update forge_loading_parameters
            sd_models.model_data.forge_loading_parameters = {
                "checkpoint_info": sd_models.CheckpointInfo(model_path),  # Create a CheckpointInfo object
                "additional_modules": []  # Add other parameters as needed
            }

            # Call forge_model_reload to load the model
            sd_models.forge_model_reload()

            # Call refresh_model_loading_parameters to update settings
            refresh_model_loading_parameters()

Thanks for the clues

edit ^ this was almost right, had to use ch…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Enferlain
Comment options

@Enferlain
Comment options

Answer selected by Enferlain
@Enferlain
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants