LeoXing1996 commited on
Commit
d4b4c95
1 Parent(s): 1f4bc8f

convert entry

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app-huggingface.py +26 -26
README.md CHANGED
@@ -5,6 +5,6 @@ colorFrom: yellow
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 4.7.1
8
- app_file: app-example-debug.py
9
  pinned: false
10
  ---
 
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 4.7.1
8
+ app_file: app-huggingface.py
9
  pinned: false
10
  ---
app-huggingface.py CHANGED
@@ -42,7 +42,7 @@ LOCAL_DEBUG = args.local_debug
42
  BASE_CONFIG = 'example/config/base.yaml'
43
  STYLE_CONFIG_LIST = {
44
  '3d_cartoon': './example/openxlab/3-3d.yaml',
45
- 'realistic': './example/openxlab/1-realistic.yaml',
46
  }
47
 
48
 
@@ -68,7 +68,7 @@ if not LOCAL_DEBUG:
68
  PIA_PATH = hf_hub_download(repo_id='Leoxing/PIA',
69
  filename='pia.ckpt', cache_dir=PIA_PATH)
70
  PIA_PATH = '/'.join(PIA_PATH.split('/')[:-1])
71
- os.system('bash download_bashscripts/1-RealisticVision.sh')
72
  os.system('bash download_bashscripts/2-RcnzCartoon.sh')
73
  # hf_hub_download(repo_id='frankjoshua/realisticVisionV51_v51VAE',
74
  # filename='realisticVisionV51_v51VAE.safetensors',
@@ -439,30 +439,30 @@ def ui():
439
  with gr.Accordion('More Examples for Prompt Changing', open=False):
440
  create_example(
441
  [
442
- [
443
- './__assets__/image_animation/real/lighthouse.jpg',
444
- './__assets__/image_animation/real/1.mp4',
445
- 'lightning, lighthouse',
446
- 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
447
- 'realistic',
448
- 1,
449
- ],
450
- [
451
- './__assets__/image_animation/real/lighthouse.jpg',
452
- './__assets__/image_animation/real/2.mp4',
453
- 'sun rising, lighthouse',
454
- 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
455
- 'realistic',
456
- 1,
457
- ],
458
- [
459
- './__assets__/image_animation/real/lighthouse.jpg',
460
- './__assets__/image_animation/real/3.mp4',
461
- 'fireworks, lighthouse',
462
- 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
463
- 'realistic',
464
- 1,
465
- ],
466
  [
467
  './__assets__/image_animation/rcnz/harry.png',
468
  './__assets__/image_animation/rcnz/1.mp4',
 
42
  BASE_CONFIG = 'example/config/base.yaml'
43
  STYLE_CONFIG_LIST = {
44
  '3d_cartoon': './example/openxlab/3-3d.yaml',
45
+ # 'realistic': './example/openxlab/1-realistic.yaml',
46
  }
47
 
48
 
 
68
  PIA_PATH = hf_hub_download(repo_id='Leoxing/PIA',
69
  filename='pia.ckpt', cache_dir=PIA_PATH)
70
  PIA_PATH = '/'.join(PIA_PATH.split('/')[:-1])
71
+ # os.system('bash download_bashscripts/1-RealisticVision.sh')
72
  os.system('bash download_bashscripts/2-RcnzCartoon.sh')
73
  # hf_hub_download(repo_id='frankjoshua/realisticVisionV51_v51VAE',
74
  # filename='realisticVisionV51_v51VAE.safetensors',
 
439
  with gr.Accordion('More Examples for Prompt Changing', open=False):
440
  create_example(
441
  [
442
+ # [
443
+ # './__assets__/image_animation/real/lighthouse.jpg',
444
+ # './__assets__/image_animation/real/1.mp4',
445
+ # 'lightning, lighthouse',
446
+ # 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
447
+ # 'realistic',
448
+ # 1,
449
+ # ],
450
+ # [
451
+ # './__assets__/image_animation/real/lighthouse.jpg',
452
+ # './__assets__/image_animation/real/2.mp4',
453
+ # 'sun rising, lighthouse',
454
+ # 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
455
+ # 'realistic',
456
+ # 1,
457
+ # ],
458
+ # [
459
+ # './__assets__/image_animation/real/lighthouse.jpg',
460
+ # './__assets__/image_animation/real/3.mp4',
461
+ # 'fireworks, lighthouse',
462
+ # 'wrong white balance, dark, sketches,worst quality,low quality, deformed, distorted, disfigured, bad eyes, wrong lips,weird mouth, bad teeth, mutated hands and fingers, bad anatomy,wrong anatomy, amputation, extra limb, missing limb, floating,limbs, disconnected limbs, mutation, ugly, disgusting, bad_pictures, negative_hand-neg',
463
+ # 'realistic',
464
+ # 1,
465
+ # ],
466
  [
467
  './__assets__/image_animation/rcnz/harry.png',
468
  './__assets__/image_animation/rcnz/1.mp4',