MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / replace_chars

Function replace_chars

utils/clip_eval.py:8–10  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

6# from ldm.models.diffusion.ddim import DDIMSampler
7
8def replace_chars(string):
9 string = string.replace(" ", "_").replace("<","").replace(">","")
10 return string
11
12class CLIPEvaluator(object):
13 def __init__(self, device, clip_model='ViT-B/32') -> None:

Callers 1

clip_eval.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected