atesgoral commited on
Commit
5d29ba9
1 Parent(s): 76d24ba

Comment out init block

Browse files
Files changed (1) hide show
  1. background_replacer.py +8 -7
background_replacer.py CHANGED
@@ -18,13 +18,14 @@ from image_utils import ensure_resolution, crop_centered
18
 
19
  developer_mode = os.getenv('DEV_MODE', False)
20
 
21
- init_captioner()
22
- init_upscaler()
23
- init_segmenter()
24
- init_depth_estimator()
25
- init_pipeline()
26
-
27
- torch.cuda.empty_cache()
 
28
 
29
  POSITIVE_PROMPT_SUFFIX = "commercial product photography, 24mm lens f/8"
30
  NEGATIVE_PROMPT_SUFFIX = "cartoon, drawing, anime, semi-realistic, illustration, painting, art, text, greyscale, (black and white), lens flare, watermark, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, floating, levitating"
 
18
 
19
  developer_mode = os.getenv('DEV_MODE', False)
20
 
21
+ # You must uncomment this initialization block!
22
+ # init_captioner()
23
+ # init_upscaler()
24
+ # init_segmenter()
25
+ # init_depth_estimator()
26
+ # init_pipeline()
27
+
28
+ # torch.cuda.empty_cache()
29
 
30
  POSITIVE_PROMPT_SUFFIX = "commercial product photography, 24mm lens f/8"
31
  NEGATIVE_PROMPT_SUFFIX = "cartoon, drawing, anime, semi-realistic, illustration, painting, art, text, greyscale, (black and white), lens flare, watermark, cropped, out of frame, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, floating, levitating"