Download build.py from DJLougen/pixelgen2: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/DJLougen/pixelgen2/resolve/main/build.py
- Command line
-
hf download hf://DJLougen/pixelgen2/build.py
-
curl -L -o build.py https://huggingface.co/DJLougen/pixelgen2/resolve/main/build.py
372 Bytes
| """Build PixelGen: write the hand-written weights to weights/pixelgen.pt.""" | |
| import sys | |
| from pixelgen import weights | |
| def main(argv=None): | |
| path = weights.save() | |
| print(f"wrote {path}") | |
| model = weights.load(path) | |
| print(f"loaded back: {sum(p.numel() for p in model.buffers())} buffer values") | |
| return 0 | |
| if __name__ == "__main__": | |
| sys.exit(main()) | |