DongfuJiang commited on
Commit
24a9789
2 Parent(s): 1b1beb7 01362d1

Merge branch 'main' of https://huggingface.co/spaces/TIGER-Lab/GenAI-Arena

Browse files
model/models/imagenhub_models.py CHANGED
@@ -13,7 +13,7 @@ class PNP(ImagenHubModel):
13
 
14
  def __call__(self, *args, **kwargs):
15
  if "num_inversion_steps" not in kwargs:
16
- kwargs["num_inversion_steps"] = 100
17
  return super().__call__(*args, **kwargs)
18
 
19
  class Prompt2prompt(ImagenHubModel):
@@ -22,7 +22,7 @@ class Prompt2prompt(ImagenHubModel):
22
 
23
  def __call__(self, *args, **kwargs):
24
  if "num_inner_steps" not in kwargs:
25
- kwargs["num_inner_steps"] = 5
26
  return super().__call__(*args, **kwargs)
27
 
28
  def load_imagenhub_model(model_name, model_type=None):
 
13
 
14
  def __call__(self, *args, **kwargs):
15
  if "num_inversion_steps" not in kwargs:
16
+ kwargs["num_inversion_steps"] = 300
17
  return super().__call__(*args, **kwargs)
18
 
19
  class Prompt2prompt(ImagenHubModel):
 
22
 
23
  def __call__(self, *args, **kwargs):
24
  if "num_inner_steps" not in kwargs:
25
+ kwargs["num_inner_steps"] = 3
26
  return super().__call__(*args, **kwargs)
27
 
28
  def load_imagenhub_model(model_name, model_type=None):
requirements.txt CHANGED
@@ -42,10 +42,15 @@ madgrad>=1.1
42
  -e git+https://github.com/openai/CLIP.git@main#egg=clip
43
  dominate>=2.8.0
44
  -e git+https://github.com/CompVis/latent-diffusion.git#egg=latent-diffusion #ldm
 
45
  openai
46
  nltk~=3.8.1
47
  krippendorff
48
  statsmodels
 
49
  plotly
50
  -e git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
51
- spaces
 
 
 
 
42
  -e git+https://github.com/openai/CLIP.git@main#egg=clip
43
  dominate>=2.8.0
44
  -e git+https://github.com/CompVis/latent-diffusion.git#egg=latent-diffusion #ldm
45
+ -e git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
46
  openai
47
  nltk~=3.8.1
48
  krippendorff
49
  statsmodels
50
+ <<<<<<< HEAD
51
  plotly
52
  -e git+https://github.com/TIGER-AI-Lab/ImagenHub.git#egg=imagen-hub
53
+ spaces
54
+ =======
55
+ plotly
56
+ >>>>>>> 01362d10b73735bae78449f871313391d9d21896