Spaces:
Configuration error
Configuration error
Download lib/networks/make_network.py from pengsida/NeuralBody: direct link, hf CLI and curl.
- Browser
- Download file 179 Bytes
-
https://huggingface.co/spaces/pengsida/NeuralBody/resolve/main/lib/networks/make_network.py
- Command line
-
hf download hf://spaces/pengsida/NeuralBody/lib/networks/make_network.py
-
curl -L -o make_network.py https://huggingface.co/spaces/pengsida/NeuralBody/resolve/main/lib/networks/make_network.py
179 Bytes
| import os | |
| import imp | |
| def make_network(cfg): | |
| module = cfg.network_module | |
| path = cfg.network_path | |
| network = imp.load_source(module, path).Network() | |
| return network | |