uofgravity/glasflow
uofgravity/glasflow has 27 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-12 14:08 UTC. Last push 2026-11-02.
Normalising flows implemented using nflows
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGlasflow
glasflow is a Python library containing a collection of Normalizing flows using PyTorch. It builds upon nflows.
Installation
glasflow requires Python 3.11 or newer.
glasflow is available to install via pip:
pip install glasflow
or via conda:
conda install glasflow -c conda-forge
PyTorch
Important: glasflow supports using CUDA devices but it is not a requirement and in most uses cases it provides little to no benefit.
By default the version of PyTorch installed by pip or conda will not necessarily match the drivers on your system, to install a different version with the correct CUDA support see the PyTorch homepage for instructions: https://pytorch.org/.
Usage
To define a RealNVP flow:
from glasflow import RealNVP
# define RealNVP flow. Change hyperparameters as necessary.
flow = RealNVP(
n_inputs=2,
n_transforms=5,
n_neurons=32,
batch_norm_between_transforms=True
)
Please see glasflow/examples for a typical training regime example.
nflows
glasflow uses a fork of nflows which is included as submodule in glasflow and can used imported as follows:
import glasflow.nflows as nflows
It contains various bugfixes which, as of writing this, are not included in a current release of nflows.
Using standard nflows
There is also the option to use an independent install of nflows (if installed) by setting an environment variable.
export GLASFLOW_USE_NFLOWS=True
After setting this variable glasflow.nflows will point to the version of nflows installed in the current python environment.
Note: this must be set prior to importing glasflow.
Contributing
Pull requests are welcome. You can review the contribution guidelines here. For major changes, please open an issue first to discuss what you would like to change.
Citing
If you use glasflow in your work please cite our DOI. We also recommend you also cite nflows following the guidelines in the nflows readme.
관련 프로젝트 살펴보기
tensorflow/tensorflow
모두를 위한 오픈소스 머신러닝 프레임워크
201,584 스타huggingface/transformers
🤗 Transformers: 텍스트, 비전, 오디오, 멀티모달 분야의 최첨단 머신러닝 모델을 위한 모델 정의 프레임워크로, 추론과 학습을 모두 지원합니다.
168,917 스타AUTOMATIC1111/stable-diffusion-webui
Stable Diffusion 웹 UI
165,300 스타Comfy-Org/ComfyUI
그래프와 노드로 구성된 인터페이스를 갖춘, 가장 강력하고 모듈성이 뛰어난 확산 모델 GUI, API, 백엔드입니다. 세계에서 가장 빠른 로컬 추론 엔진입니다.
146,472 스타