Instructions to use ShaswatRobotics/world_model_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use ShaswatRobotics/world_model_test with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("ShaswatRobotics/world_model_test") - Notebooks
- Google Colab
- Kaggle
Update iris/src/tokenizer.py
Browse files- iris/src/tokenizer.py +2 -2
iris/src/tokenizer.py
CHANGED
|
@@ -8,8 +8,8 @@ from einops import rearrange
|
|
| 8 |
import torch
|
| 9 |
import torch.nn as nn
|
| 10 |
|
| 11 |
-
from models.lpips import LPIPS
|
| 12 |
-
from models.nets import Encoder, Decoder
|
| 13 |
|
| 14 |
class Tokenizer(nn.Module):
|
| 15 |
def __init__(self, vocab_size: int, embed_dim: int, encoder: Encoder, decoder: Decoder, with_lpips: bool = True) -> None:
|
|
|
|
| 8 |
import torch
|
| 9 |
import torch.nn as nn
|
| 10 |
|
| 11 |
+
from .models.lpips import LPIPS
|
| 12 |
+
from .models.nets import Encoder, Decoder
|
| 13 |
|
| 14 |
class Tokenizer(nn.Module):
|
| 15 |
def __init__(self, vocab_size: int, embed_dim: int, encoder: Encoder, decoder: Decoder, with_lpips: bool = True) -> None:
|