Spaces:
Running on Zero
Running on Zero
Download lib/sapiens/engine/optim/optimizer.py from hugging-apps/exmr-motion-refinement: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/hugging-apps/exmr-motion-refinement/resolve/main/lib/sapiens/engine/optim/optimizer.py
- Command line
-
hf download hf://spaces/hugging-apps/exmr-motion-refinement/lib/sapiens/engine/optim/optimizer.py
-
curl -L -o optimizer.py https://huggingface.co/spaces/hugging-apps/exmr-motion-refinement/resolve/main/lib/sapiens/engine/optim/optimizer.py
419 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| from sapiens.registry import OPTIMIZERS | |
| from torch.optim import Adam, AdamW, SGD | |
| OPTIMIZERS.register_module(name="AdamW")(AdamW) | |
| OPTIMIZERS.register_module(name="Adam")(Adam) | |
| OPTIMIZERS.register_module(name="SGD")(SGD) | |