2023-07-25 12:36:57 +00:00
|
|
|
#!/bin/env python
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
from pathlib import Path
|
2023-08-18 15:13:28 +00:00
|
|
|
|
2023-11-24 04:15:32 +00:00
|
|
|
from invokeai.backend.model_manager.probe import ModelProbe
|
2023-07-25 12:36:57 +00:00
|
|
|
|
|
|
|
parser = argparse.ArgumentParser(description="Probe model type")
|
|
|
|
parser.add_argument(
|
2023-07-27 19:01:00 +00:00
|
|
|
"model_path",
|
2023-07-25 12:36:57 +00:00
|
|
|
type=Path,
|
2023-08-03 14:26:52 +00:00
|
|
|
nargs="+",
|
2023-07-25 12:36:57 +00:00
|
|
|
)
|
2023-07-27 19:01:00 +00:00
|
|
|
args = parser.parse_args()
|
2023-07-25 12:36:57 +00:00
|
|
|
|
2023-08-03 14:26:52 +00:00
|
|
|
for path in args.model_path:
|
|
|
|
info = ModelProbe().probe(path)
|
|
|
|
print(f"{path}: {info}")
|