Skip to main content

A pip-installable PyTorch model package for False Image Memorability prediction.

Project description

FalseResMem Model Package

A pip-installable Python package containing a custom PyTorch model (FalseResMem) for prediction of false alarms in visual memory recognition tasks.

Contact

Author: Anastasiia Mikhailova
Email: amikhailova@uchicago.edu

Installation

You can install the package via pip from source (or PyPI once published):

pip install .

or

pip install FalseResMem

Usage

Here's a basic example of how to import and use the model after installation:

Low-level (raw tensors):

import torch
from FalseResMem import load_model

model = load_model()
model.eval()
input_tensor = torch.randn(1, 3, 224, 224)
output = model(input_tensor)
print(output)

High-level (image file):

from FalseResMem import predict_image

prob = predict_image("test.jpg").item()
print(f"False alarm probability: {prob:.3f}")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

falseresmem-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

falseresmem-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file falseresmem-0.1.0.tar.gz.

File metadata

  • Download URL: falseresmem-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for falseresmem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f012285bffcb0c52276306126c40a07b2fff25483d7a5110717edfbd0bde8837
MD5 175c2cd41b0cdb33f7793f359949587b
BLAKE2b-256 12e8287c788f61722d3b795dafe66101f4a8b0aa18c29174c21dbc2e128d8a3a

See more details on using hashes here.

File details

Details for the file falseresmem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: falseresmem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for falseresmem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7beddff7684ffc30f01f9d79e3111560f1f0e5a9ac7c63a72949f0cfdd217cdb
MD5 92c4d1d70be5b6d78592d00c88fd7712
BLAKE2b-256 8729f610cb2ba731fb92c23774fc3980647b8982c06a796183b15b49a53d5129

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page