Downloads · 30 days
0
Jiani11/human-perception-place-pulse
human-perception-place-pulse is a machine learning model from Jiani11. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Getting human perception scores from street-level imagery.
Downloads · 30 days
0
Access
Public
Updated Jul 10, 2024
Repo size
2.1 GB
Likes
7
Public
Click a slice to open those files.
.pth2.1 GB · 100%
From the Hugging Face model README
Getting human perception scores from street-level imagery.
The scores are in scale of 0-10.
Safety, lively, beautiful, wealthy high score indicates strong positive feeling
Boring, depressing high score indicates strong negative feeling
The models are pre-trained on MIT Place Pulse 2.0 dataset. The backbone of the model is vision transformer pretrianed on ImageNet (ViT_B_16_Weights.IMAGENET1K_SWAG_E2E_V1). 3 Linear layers are added in ViT heads for classification.
Install packages from requirements.txt
pip install -r requirements.txt
Change the file path in eval.py
model_load_path = "./model/" # model path
images_path = "./test_image" # your input image path
out_Path = "./output" # output path
Run the file eval.py
python eval.py
Please refer to human-perception-place-pulse for details.