Instructions to use DHDRL/adaptive-wafer-rl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use DHDRL/adaptive-wafer-rl with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="DHDRL/adaptive-wafer-rl", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Update gru_belief_policy_v3_agnostic.py
Browse files
gru_belief_policy_v3_agnostic.py
CHANGED
|
@@ -19,7 +19,7 @@ from gymnasium import spaces
|
|
| 19 |
class BeliefGRUEncoder(nn.Module):
|
| 20 |
"""
|
| 21 |
GRU belief module with resolution-agnostic convolutional spatial compression.
|
| 22 |
-
Uses adaptive pooling to handle
|
| 23 |
"""
|
| 24 |
|
| 25 |
def __init__(
|
|
@@ -190,7 +190,6 @@ class BeliefGRUEncoder(nn.Module):
|
|
| 190 |
class GRUAugmentedFeaturesExtractor(BaseFeaturesExtractor):
|
| 191 |
"""
|
| 192 |
Resolution-agnostic convolutional spatial encoder + optional GRU belief module.
|
| 193 |
-
|
| 194 |
Handles input images from 64×64 to 1024×1024+ without parameter explosion.
|
| 195 |
Uses adaptive pooling to normalize spatial features to fixed size.
|
| 196 |
"""
|
|
|
|
| 19 |
class BeliefGRUEncoder(nn.Module):
|
| 20 |
"""
|
| 21 |
GRU belief module with resolution-agnostic convolutional spatial compression.
|
| 22 |
+
Uses adaptive pooling to handle any input resolution.
|
| 23 |
"""
|
| 24 |
|
| 25 |
def __init__(
|
|
|
|
| 190 |
class GRUAugmentedFeaturesExtractor(BaseFeaturesExtractor):
|
| 191 |
"""
|
| 192 |
Resolution-agnostic convolutional spatial encoder + optional GRU belief module.
|
|
|
|
| 193 |
Handles input images from 64×64 to 1024×1024+ without parameter explosion.
|
| 194 |
Uses adaptive pooling to normalize spatial features to fixed size.
|
| 195 |
"""
|