InvokeAI/scripts/probe-model.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
345 B
Python
Raw Normal View History

#!/bin/env python
import argparse
import sys
from pathlib import Path
from invokeai.backend.model_management.model_probe import ModelProbe
parser = argparse.ArgumentParser(description="Probe model type")
parser.add_argument(
2023-07-27 19:01:00 +00:00
"model_path",
type=Path,
)
2023-07-27 19:01:00 +00:00
args = parser.parse_args()
info = ModelProbe().probe(args.model_path)
print(info)