Skip to content

ValueError: Confirm that test.jpg exists #7

Description

@andysingal

Hey Akshit,
Thanks for the amazing repo.
i have 2 questions:

  • How to create characters for a game from scratch
  • 
    

Set the game name and character name

game_name = 'Cyberpunk_2077'
character_name = 'Johnny_Silverhand'

dfs = DeepFace.find(img_path = "test.jpg", db_path = f"{game_name}/characters/{character_name}/images", model_name='Facenet512')

giving error:

WARNING: Representations for images in Cyberpunk_2077/characters/Johnny_Silverhand/images folder were previously stored in representations_facenet512.pkl. If you added new instances after the creation, then please delete this file and call find function again. It will create it again.
There are 6 representations found in representations_facenet512.pkl

ValueError Traceback (most recent call last)
in <cell line: 7>()
5 character_name = 'Johnny_Silverhand'
6
----> 7 dfs = DeepFace.find(img_path = "test.jpg", db_path = f"{game_name}/characters/{character_name}/images", model_name='Facenet512')

2 frames
/usr/local/lib/python3.10/dist-packages/deepface/commons/functions.py in load_image(img)
79 elif exact_image is not True: # image path passed as input
80 if os.path.isfile(img) is not True:
---> 81 raise ValueError(f"Confirm that {img} exists")
82
83 img = cv2.imread(img)

ValueError: Confirm that test.jpg exists



<img width="374" alt="Screenshot 2023-10-31 at 11 08 08 AM" src="https://github.com/AkshitIreddy/Interactive-LLM-Powered-NPCs/assets/20493493/3a5f7101-86f3-44cb-a995-ac927a3e6a59">



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions