• bitcoinBitcoin(BTC)$77,856.00-0.03%
  • ethereumEthereum(ETH)$2,285.120.87%
  • tetherTether(USDT)$1.00-0.05%
  • binancecoinBNB(BNB)$703.70-1.48%
  • rippleXRP(XRP)$1.250.15%
  • usd-coinUSDC(USDC)$1.00-0.04%
  • solanaSolana(SOL)$94.26-0.58%
  • tronTRON(TRX)$0.3173962.24%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.06-1.16%
  • zcashZcash(ZEC)$1,261.151.97%
  • HyperliquidHyperliquid(HYPE)$86.04-2.07%
  • dogecoinDogecoin(DOGE)$0.075390-0.33%
  • moneroMonero(XMR)$603.800.11%
  • USDSUSDS(USDS)$1.00-0.03%
  • whitebitWhiteBIT Coin(WBT)$74.840.04%
  • chainlinkChainlink(LINK)$11.32-2.19%
  • leo-tokenLEO Token(LEO)$9.390.09%
  • cardanoCardano(ADA)$0.190875-1.30%
  • stellarStellar(XLM)$0.1681740.10%
  • bitcoin-cashBitcoin Cash(BCH)$278.00-1.97%
  • nearNEAR Protocol(NEAR)$4.09-6.76%
  • RainRain(RAIN)$0.0066299.96%
  • daiDai(DAI)$1.00-0.03%
  • uniswapUniswap(UNI)$7.27-0.92%
  • Ethena USDeEthena USDe(USDE)$1.00-0.08%
  • litecoinLitecoin(LTC)$55.04-1.25%
  • USD1USD1(USD1)$1.00-0.09%
  • avalanche-2Avalanche(AVAX)$8.60-1.92%
  • CantonCanton(CC)$0.094674-2.68%
  • suiSui(SUI)$0.89-1.42%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.19-2.73%
  • tether-goldTether Gold(XAUT)$3,926.621.46%
  • hedera-hashgraphHedera(HBAR)$0.070865-0.99%
  • quant-networkQuant(QNT)$202.150.94%
  • Global DollarGlobal Dollar(USDG)$1.00-0.04%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • shiba-inuShiba Inu(SHIB)$0.000005-1.31%
  • BittensorBittensor(TAO)$229.98-2.52%
  • crypto-com-chainCronos(CRO)$0.050813-2.06%
  • Ripple USDRipple USD(RLUSD)$1.00-0.02%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.11%
  • EthenaEthena(ENA)$0.178739-3.85%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • okbOKB(OKB)$112.06-1.24%
  • aaveAave(AAVE)$132.10-4.56%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.000005-2.30%
  • MemeCoreMemeCore(M)$0.850.15%
  • OndoOndo(ONDO)$0.391900-3.78%
  • Pump.funPump.fun(PUMP)$0.004135-2.88%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Code Implementation of a Rapid Disaster Assessment Tool Using IBM’s Open-Source ResNet-50 Model

March 22, 2025
in AI & Technology
Reading Time: 3 mins read
A A
Code Implementation of a Rapid Disaster Assessment Tool Using IBM’s Open-Source ResNet-50 Model
ShareShareShareShareShare

In this tutorial, we explore an innovative and practical application of IBM’s open-source ResNet-50 deep learning model, showcasing its capability to classify satellite imagery for disaster management rapidly. Leveraging pretrained convolutional neural networks (CNNs), this approach empowers users to swiftly analyze satellite images to identify and categorize disaster-affected areas, such as floods, wildfires, or earthquake damage. Using Google Colab, we’ll walk through a step-by-step process to easily set up the environment, preprocess images, perform inference, and interpret results.

First, we install essential libraries for PyTorch-based image processing and visualization tasks.

YOU MAY ALSO LIKE

Building a People-First, AI-Powered City – Unite.AI

Apple Is Reportedly Launching Three New iPads Early Next Year

!pip install torch torchvision matplotlib pillow

We import necessary libraries and load the pretrained IBM-supported ResNet-50 model from PyTorch, preparing it for inference tasks.

import torch
import torchvision.models as models
import torchvision.transforms as transforms
from PIL import Image
import requests
from io import BytesIO
import matplotlib.pyplot as plt


model = models.resnet50(pretrained=True)
model.eval()

Now, we define the standard preprocessing pipeline for images, resizing and cropping them, converting them into tensors, and normalizing them to match ResNet-50’s input requirements.

preprocess = transforms.Compose([
    transforms.Resize(256),
    transforms.CenterCrop(224),
    transforms.ToTensor(),
    transforms.Normalize(
        mean=[0.485, 0.456, 0.406],
        std=[0.229, 0.224, 0.225]
    )
])

Here, we retrieve a satellite image from a given URL, preprocess it, classify it using the pretrained ResNet-50 model, and visualize the image with its top prediction. It also prints the top five predictions with associated probabilities.

def classify_satellite_image(url):
    response = requests.get(url)
    img = Image.open(BytesIO(response.content)).convert('RGB')


    input_tensor = preprocess(img)
    input_batch = input_tensor.unsqueeze(0)


    with torch.no_grad():
        output = model(input_batch)


    labels_url = "https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt"
    labels = requests.get(labels_url).text.split("n")


    probabilities = torch.nn.functional.softmax(output[0], dim=0)
    top5_prob, top5_catid = torch.topk(probabilities, 5)


    plt.imshow(img)
    plt.axis('off')
    plt.title("Top Prediction: {}".format(labels[top5_catid[0]]))
    plt.show()


    print("Top 5 Predictions:")
    for i in range(top5_prob.size(0)):
        print(labels[top5_catid[i]], top5_prob[i].item())

Finally, we download a wildfire-related satellite image, classify it using the pretrained ResNet-50 model, and visually display it along with its top five predictions.

image_url = "https://upload.wikimedia.org/wikipedia/commons/0/05/Burnout_ops_on_Mangum_Fire_McCall_Smokejumpers.jpg"
classify_satellite_image(image_url)

In conclusion, we’ve successfully harnessed IBM’s open-source ResNet-50 model in Google Colab to efficiently classify satellite imagery, supporting critical disaster assessment and response tasks. The approach outlined demonstrates the practicality and accessibility of advanced machine learning models and emphasizes how pretrained CNNs can be creatively applied to real-world challenges. With minimal setup, we now have a powerful tool at our disposal.


Here is the Colab Notebook. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. Don’t Forget to join our 85k+ ML SubReddit.

Credit: Source link

ShareTweetSendSharePin

Related Posts

Building a People-First, AI-Powered City – Unite.AI
AI & Technology

Building a People-First, AI-Powered City – Unite.AI

November 2, 2026
Apple Is Reportedly Launching Three New iPads Early Next Year
AI & Technology

Apple Is Reportedly Launching Three New iPads Early Next Year

November 2, 2026
OpenAI’s Lehane Calls AI the Number-One Issue of the 2028 Election – Unite.AI
AI & Technology

OpenAI’s Lehane Calls AI the Number-One Issue of the 2028 Election – Unite.AI

November 2, 2026
Marble Cognition Raises .75M Pre-Seed to Build AI Coworkers That Learn by Observing – Unite.AI
AI & Technology

Marble Cognition Raises $3.75M Pre-Seed to Build AI Coworkers That Learn by Observing – Unite.AI

November 2, 2026
Next Post
South Korean fighter jets accidentally drop 8 bombs on a village

South Korean fighter jets accidentally drop 8 bombs on a village

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Haley Stevens endorses Mike Rogers amid Michigan Democratic feud – Axios

Haley Stevens endorses Mike Rogers amid Michigan Democratic feud – Axios

November 2, 2026
Hanako Greensmith and Kahyun Kim talk Asian representation in Hollywood

Hanako Greensmith and Kahyun Kim talk Asian representation in Hollywood

October 31, 2026
Ford CEO says it’s his company’s responsibility to bring more affordable vehicles to the U.S.

Ford CEO says it’s his company’s responsibility to bring more affordable vehicles to the U.S.

November 1, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!