Remove obsolete implementation and simplify project structure
This commit is contained in:
13
src/anyimage/server/outputs/debug_moge2.py
Normal file
13
src/anyimage/server/outputs/debug_moge2.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def write_prediction(prediction, output_path):
|
||||
import numpy as np
|
||||
|
||||
output_path = Path(output_path)
|
||||
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
np.savez(
|
||||
output_path,
|
||||
**{name: np.asarray(value) for name, value in prediction.items()},
|
||||
)
|
||||
return output_path
|
||||
Reference in New Issue
Block a user