-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Confirm that test.jpg exists #7
Comments
test.jpg needs to exist in the Interactive-LLM-Powered-NPCs directory, it is basically an image of the character that is not present in Interactive-LLM-Powered-NPCs/{game_name}/characters/{character_name}/{images} so that you can test if the facial recognition is working which will be used for finding the character you are talking to. |
the readme has instructions on how to make characters. |
Thank you, any plans for having a tutorial on creating the character ? |
not at the moment, i'm a little busy with my classes and internship😅 |
Hey Akshit,
Thanks for the amazing repo.
i have 2 questions:
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')
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
The text was updated successfully, but these errors were encountered: