Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volom/PornStarSimilarity
Search the most similar face porn actress for your input photo from more than 5k available photos. Fetching porn stars photos, extraction, and embedding their faces for the next cosine similarity estimation with face embedding of the input photo.
https://github.com/volom/PornStarSimilarity
Last synced: 3 months ago
JSON representation
Search the most similar face porn actress for your input photo from more than 5k available photos. Fetching porn stars photos, extraction, and embedding their faces for the next cosine similarity estimation with face embedding of the input photo.
- Host: GitHub
- URL: https://github.com/volom/PornStarSimilarity
- Owner: volom
- Created: 2022-03-26T20:16:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T08:09:07.000Z (over 2 years ago)
- Last Synced: 2024-05-28T12:50:46.320Z (6 months ago)
- Language: Jupyter Notebook
- Size: 1.99 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PornStarSimilarity
Search the most similar face porn actress for your input photo from more than 5k available photos.
Fetching porn stars photos, extraction, and embedding their faces for the next cosine similarity estimation with face embedding of the input photo.Algorithm and core code taken from https://github.com/volom/Face_Similarity
The collection of photos has large size so take it from Google Drive - https://drive.google.com/drive/folders/1IPA5uzxQup0CD4yh31uwmnAoiTv18khJ?usp=sharing
--------------------------------
🛠 Usage:
1. Copy photos from given Google Drive link: take all photos from folder "pornhub_800best", unzip photos in archive "ps_photos.zip" from folder "pornhub_all_init" and take all of them in folder "ps_photos". Copy to repo database with face vectors - *photos_db.csv*
2. Just run the script "main_run.py":
```
>> cd PornStarSimilarity
>> pip install -r requirements.txt
>> python3 main_run.py YOUR_PHOTO.jpg```
--------------------------------
☝️☝️☝️ A few remarks
Data was scraped from https://rt.pornhub.com/pornstars and https://rt.pornhub.com/pornstars/top?si=1. Photos taken from https://www.iafd.com/
The python code of the scraping process is in *pornhub_data_collection.ipynd*. It is not used in the running process, just for demonstration purposes of how to collect the database.
You are free to add new photos to your photo database - *main_run.py* extract vectors for the new photos in the directory before analyzing your input image. Extraction vectors from new photos take some time but the information is being saved in the database and then reuse so it will take much less time.