MCPcopy Create free account
hub / github.com/MegaScenes/nvs / filter_keys

Method filter_keys

ldm/data/laion.py:205–209  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

203 return False
204
205 def filter_keys(self, x):
206 try:
207 return ("jpg" in x) and ("txt" in x)
208 except Exception:
209 return False
210
211 def train_dataloader(self):
212 return self.make_loader(self.train)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected