Hpsoyl commited on
Commit
cb29951
·
1 Parent(s): 6e0ed52

FluoGen group

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -74,6 +74,8 @@ CONTROLNET_UNET_PATH = f"{MODELS_ROOT_DIR}/UNET_T2I_CONTROLNET/checkpoint-285000
74
 
75
  # Super-Resolution Models
76
  SR_CONTROLNET_MODELS = {
 
 
77
  "Checkpoint CCPs": f"{MODELS_ROOT_DIR}/ControlNet_SR/CCPs/checkpoint-100000",
78
  "Checkpoint F-actin": f"{MODELS_ROOT_DIR}/ControlNet_SR/F-actin/checkpoint-35000",
79
  }
@@ -143,6 +145,10 @@ def numpy_to_pil(image_np, target_mode="RGB"):
143
  return pil_image
144
 
145
  def update_sr_prompt(model_name):
 
 
 
 
146
  if model_name == "Checkpoint CCPs":
147
  return "CCPs of COS-7"
148
  elif model_name == "Checkpoint F-actin":
 
74
 
75
  # Super-Resolution Models
76
  SR_CONTROLNET_MODELS = {
77
+ "Checkpoint ER": f"{MODELS_ROOT_DIR}/ControlNet_SR/ER/checkpoint-30000",
78
+ "Checkpoint Microtubules": f"{MODELS_ROOT_DIR}/ControlNet_SR/Microtubules/checkpoint-72500",
79
  "Checkpoint CCPs": f"{MODELS_ROOT_DIR}/ControlNet_SR/CCPs/checkpoint-100000",
80
  "Checkpoint F-actin": f"{MODELS_ROOT_DIR}/ControlNet_SR/F-actin/checkpoint-35000",
81
  }
 
145
  return pil_image
146
 
147
  def update_sr_prompt(model_name):
148
+ if model_name == "Checkpoint ER":
149
+ return "ER of COS-7"
150
+ if model_name == "Checkpoint Microtubules":
151
+ return "Microtubules of COS-7"
152
  if model_name == "Checkpoint CCPs":
153
  return "CCPs of COS-7"
154
  elif model_name == "Checkpoint F-actin":