Spaces:
Build error
Build error
Download src/utils.py from GunaKoppula/Session20: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/spaces/GunaKoppula/Session20/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/GunaKoppula/Session20/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/GunaKoppula/Session20/resolve/main/src/utils.py
242 Bytes
| def loss_fn(images): | |
| return -images.median() / 3 | |
| concept_styles = { | |
| "Coffee Machine": "coffeemachine.bin", | |
| "College Style": "college_style.bin", | |
| "Cube": "cube.bin", | |
| "Jerry Mouse": "jerrymouse", | |
| "Zero": "zero.bin", | |
| } | |