Skip to content
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

Open
andysingal opened this issue Oct 31, 2023 · 5 comments
Open

ValueError: Confirm that test.jpg exists #7

andysingal opened this issue Oct 31, 2023 · 5 comments

Comments

@andysingal
Copy link

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">



@AkshitIreddy
Copy link
Owner

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.

@AkshitIreddy
Copy link
Owner

the readme has instructions on how to make characters.

@andysingal
Copy link
Author

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.

Thank you, any plans for having a tutorial on creating the character ?

@AkshitIreddy
Copy link
Owner

not at the moment, i'm a little busy with my classes and internship😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants