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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brainiac_model-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1292d1b73af7c51b2d1af49c83b018ed328e144fb0b195d513bae3371057d677
MD5 3e59ffc27e8c82cb2ef21040bf2cf824
BLAKE2b-256 d8e88b956028173e9962da5968cad22f8016ce1cd33b41a3af9ceed6d8a8300c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brainiac_model-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e75267c05f1b91d84d891541004bbe3c7ba09ddcf0b2a620a4f4bbb537a690b7
MD5 4158f76420802e52355d7927d170e1ac
BLAKE2b-256 081220d44c5734a4a4cb9bdc05f36f89ff68c3f96b53ea68df87dc2a67b00143

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