diff --git a/ldm/dream/server.py b/ldm/dream/server.py index 54118c7dd4..96ffd7f2ef 100644 --- a/ldm/dream/server.py +++ b/ldm/dream/server.py @@ -107,7 +107,7 @@ class DreamServer(BaseHTTPRequestHandler): out_dir = os.path.realpath(self.outdir.rstrip('/')) if self.path.startswith('/static/dream_web/'): path = '.' + self.path - elif out_dir.endswith(path_dir): + elif out_dir.replace('\\', '/').endswith(path_dir): file = os.path.basename(self.path) path = os.path.join(self.outdir,file) else: