Instructions to use hchen657Naza/PWM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hchen657Naza/PWM with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hchen657Naza/PWM", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download PWM_code/policy_rl/noop_env_runner.py from hchen657Naza/PWM: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/hchen657Naza/PWM/resolve/main/PWM_code/policy_rl/noop_env_runner.py
- Command line
-
hf download hf://hchen657Naza/PWM/PWM_code/policy_rl/noop_env_runner.py
-
curl -L -o noop_env_runner.py https://huggingface.co/hchen657Naza/PWM/resolve/main/PWM_code/policy_rl/noop_env_runner.py
368 Bytes
| """ | |
| No-op image env runner. | |
| IsaacLab rollouts happen in a separate process; during DP training we skip env evaluation. | |
| """ | |
| from diffusion_policy.env_runner.base_image_runner import BaseImageRunner | |
| class NoopImageRunner(BaseImageRunner): | |
| def __init__(self, output_dir, **kwargs): | |
| super().__init__(output_dir) | |
| def run(self, policy): | |
| return {} | |