mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2025-01-09 04:18:46 +08:00
19 lines
380 B
Python
Executable File
19 lines
380 B
Python
Executable File
#!/bin/env python
|
|
|
|
import argparse
|
|
from pathlib import Path
|
|
|
|
from invokeai.backend.model_manager.probe import ModelProbe
|
|
|
|
parser = argparse.ArgumentParser(description="Probe model type")
|
|
parser.add_argument(
|
|
"model_path",
|
|
type=Path,
|
|
nargs="+",
|
|
)
|
|
args = parser.parse_args()
|
|
|
|
for path in args.model_path:
|
|
info = ModelProbe().probe(path)
|
|
print(f"{path}: {info}")
|