added a vp9 cpmverter script that handles alpha channel too
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
import struct
|
||||
|
||||
with open("/yorchnet-guindos/ai/models/Lora/drawix8.safetensors", "rb") as f:
|
||||
length_of_header = struct.unpack('<Q', f.read(8))[0]
|
||||
header_data = f.read(length_of_header)
|
||||
header = json.loads(header_data)
|
||||
|
||||
print(header) # should be a dict that contains what you need
|
||||
Reference in New Issue
Block a user