You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import gradio as gr
import numpy as np
import torch
import requests
import random
import os
import sys
import pickle
from PIL import Image
from tqdm.auto import tqdm
from datetime import datetime
from utils.gradio_utils import is_torch2_available
if is_torch2_available():
from utils.gradio_utils import
AttnProcessor2_0 as AttnProcessor
else:
from utils.gradio_utils import AttnProcessor
import diffusers
from diffusers import StableDiffusionXLPipeline
from diffusers import DDIMScheduler
import torch.nn.functional as F
from utils.gradio_utils import cal_attn_mask_xl
import copy
import os
from diffusers.utils import load_image
from utils.utils import get_comic
from utils.style_template import styles
ModuleNotFoundError Traceback (most recent call last) in <cell line: 14>()
12 from tqdm.auto import tqdm
13 from datetime import datetime
---> 14 from utils.gradio_utils import is_torch2_available
15 if is_torch2_available():
16 from utils.gradio_utils import \
ModuleNotFoundError: No module named 'utils.gradio_utils'
The text was updated successfully, but these errors were encountered:
hey, you probably did not clone the repo. As Malik as mentioned, you need to clone the repo first and then run the colab file. The gradio_utils.py is a part of the utils folder that you will have only if you clone the repo.
Hopefully this helps!
This code from the notebook gives errors.
%load_ext autoreload
%autoreload 2
import gradio as gr
import numpy as np
import torch
import requests
import random
import os
import sys
import pickle
from PIL import Image
from tqdm.auto import tqdm
from datetime import datetime
from utils.gradio_utils import is_torch2_available
if is_torch2_available():
from utils.gradio_utils import
AttnProcessor2_0 as AttnProcessor
else:
from utils.gradio_utils import AttnProcessor
import diffusers
from diffusers import StableDiffusionXLPipeline
from diffusers import DDIMScheduler
import torch.nn.functional as F
from utils.gradio_utils import cal_attn_mask_xl
import copy
import os
from diffusers.utils import load_image
from utils.utils import get_comic
from utils.style_template import styles
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 14>()
12 from tqdm.auto import tqdm
13 from datetime import datetime
---> 14 from utils.gradio_utils import is_torch2_available
15 if is_torch2_available():
16 from utils.gradio_utils import \
ModuleNotFoundError: No module named 'utils.gradio_utils'
The text was updated successfully, but these errors were encountered: