Skip to main content

A 3D ResNet50 model for brain MRI analysis

Project description

BrainIAC Model

This is the official implementation of the BrainIAC model, a 3D ResNet50-based architecture designed for brain image analysis.

Model Description

BrainIAC is built on a modified ResNet50 architecture that processes 3D brain imaging data. The model has been adapted to handle volumetric inputs through 3D convolutions and produces feature vectors that capture relevant brain imaging characteristics.

Model Architecture

  • Base Architecture: ResNet50 (modified for 3D)
  • Input: 3D brain volumes [batch_size, 1, D, H, W]
  • Output: Feature vector of dimension 2048
  • First layer: 3D convolution (1 channel input)
  • Final layer: Identity (returns features directly)

Usage

from transformers import AutoModel
import torch

# Load model
model = AutoModel.from_pretrained("your-username/brainiac")
model.eval()

# Prepare your input tensor
# Adjust D, H, W according to your requirements
batch_size = 1
D, H, W = 16, 224, 224  # Example dimensions
input_tensor = torch.randn(batch_size, 1, D, H, W)

# Get features
with torch.no_grad():
    features = model(input_tensor)

print(f"Output feature shape: {features.shape}")  # Should be [batch_size, 2048]

Requirements

torch>=1.9.0
monai
transformers

Citation

If you use this model in your research, please cite: [Add your citation information]

License

[Add your license information]

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

brainiac_model-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

brainiac_model-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brainiac_model-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for brainiac_model-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac0541251acf2bfb103e00dd30aa96dbca1dc5e12270ac14c8482aa5cd0175fd
MD5 3fcdd761e4e2e285cda0ee76093bc632
BLAKE2b-256 c4b001f3d0fb3b80aed16460d902dfba54f319c0b8e82b947111b00614455c33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brainiac_model-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.18

File hashes

Hashes for brainiac_model-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe5166c26e72744c3beae0796cc4919b9a9a1efb4f4cd3ac59b41700fe3a656
MD5 22b444631f7c3431275c43229752943b
BLAKE2b-256 3c2450323f189cc6f59f4a5ea64a685e397979c481fa0873980caf1f9dfefd64

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