InvokeAI/scripts/probe-model.py
Lincoln Stein 2aefa921fe fix "unknown model type" error when rebasing a model with API
- Add command-line model probing script for dev use
- Minor documentation tweak
2023-07-25 08:36:57 -04:00

20 lines
358 B
Python
Executable File

#!/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(
'model_path',
type=Path,
)
args=parser.parse_args()
info = ModelProbe().probe(args.model_path)
print(info)