Skip to content

Instantly share code, notes, and snippets.

@huangziwei
Created July 15, 2020 12:22
Show Gist options
  • Save huangziwei/37d2c50366e6f71c1f3abb657a10ef12 to your computer and use it in GitHub Desktop.
Save huangziwei/37d2c50366e6f71c1f3abb657a10ef12 to your computer and use it in GitHub Desktop.
import zipfile
zout = zipfile.ZipFile('nmf.zip', "w", zipfile.ZIP_DEFLATED) # <--- this is the change you need to make
zout.write('nmf.h5')
zout.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment