From e4fd0847adc58fe0284f55a0592e00ac1add73c9 Mon Sep 17 00:00:00 2001 From: Ruben Garcia Date: Sat, 12 Nov 2022 16:14:40 +0100 Subject: [PATCH] Fix for error on python 3.8 Linux --- scripts/txt2img.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/txt2img.py b/scripts/txt2img.py index f40119dca..30716da02 100644 --- a/scripts/txt2img.py +++ b/scripts/txt2img.py @@ -1,4 +1,5 @@ import argparse, os, sys, glob +sys.path.append('.') import cv2 import torch import numpy as np @@ -105,6 +106,7 @@ def main(): default="a painting of a virus monster playing guitar", help="the prompt to render" ) + parser.add_argument( "--outdir", type=str,