TencentARC / PhotoMaker

PhotoMaker

Home Page:https://photo-maker.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradio app.py examples

dkl096 opened this issue · comments

I would like to add more examples to the gradio.app run on a remote server for my own uses. I am trying to add my own pictures and prompts for the new examples, but it gave me the following issue:

(photomaker) /workspace/PhotoMaker# python gradio_demo/app.py Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:10<00:00, 1.46s/it] Loading PhotoMaker components [1] id_encoder from [/root/.cache/huggingface/hub/models--TencentARC--PhotoMaker/snapshots/d7ec3fc17290263135825194aeb3bc456da67cc5]... Loading PhotoMaker components [2] lora_weights from [/root/.cache/huggingface/hub/models--TencentARC--PhotoMaker/snapshots/d7ec3fc17290263135825194aeb3bc456da67cc5] Traceback (most recent call last): File "/workspace/PhotoMaker/gradio_demo/app.py", line 317, in <module> gr.Examples( File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/helpers.py", line 54, in create_examples examples_obj = Examples( File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/helpers.py", line 212, in __init__ prediction_value = processing_utils.move_files_to_cache( File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/processing_utils.py", line 318, in move_files_to_cache return client_utils.traverse(data, _move_to_cache, client_utils.is_file_obj) File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio_client/utils.py", line 980, in traverse new_obj.append(traverse(item, func, is_root)) File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio_client/utils.py", line 971, in traverse return func(json_obj) File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/processing_utils.py", line 294, in _move_to_cache temp_file_path = block.move_resource_to_block_cache(payload.path) File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/blocks.py", line 271, in move_resource_to_block_cache temp_file_path = processing_utils.save_file_to_cache( File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/processing_utils.py", line 185, in save_file_to_cache temp_dir = hash_file(file_path) File "/workspace/miniconda3/envs/photomaker/lib/python3.10/site-packages/gradio/processing_utils.py", line 117, in hash_file with open(file_path, "rb") as f: IsADirectoryError: [Errno 21] Is a directory: '/workspace/PhotoMaker/examples/newton_man/.ipynb_checkpoints'

Is it a problem with any existing checkpoints?