Flux_Image_Detector / compress.py
nhradek's picture
Upload folder using huggingface_hub
92055e5 verified
raw
history blame contribute delete
No virus
234 Bytes
import pickle
import gzip
import lzma
with gzip.open("umap_reducer.pkl.gz", "rb") as in_file:
reducer = pickle.load(in_file)
with lzma.open("umap_reducer.pkl.lzma", "wb") as out_file:
pickle.dump(reducer, out_file)