Spaces:
Sleeping
Sleeping
Comment out init block
Browse files- 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 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
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"
|