Skip to content

Instantly share code, notes, and snippets.

View antoniopenta's full-sized avatar
💭
while True: Listen() or Learn() or Create() or Explain()

Antonio Penta antoniopenta

💭
while True: Listen() or Learn() or Create() or Explain()
  • Accenture Data and AI
  • France/Ireland/UK/Italy
View GitHub Profile
@antoniopenta
antoniopenta / naivetopicextractionembedding.ipynb
Created January 20, 2023 17:19
NaiveTopicExtractionEmbedding.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antoniopenta
antoniopenta / gist:903ba58dfafa2a2a4d04a82f2d1c6907
Created January 31, 2019 14:45
Jupyter Notebook Utilities
import sys
sys.path.append("../")
@antoniopenta
antoniopenta / Image-Classification
Created January 28, 2019 11:46
Classify images with pre-trained ResNet in Pytorch
from IPython.display import display # to display images
import torch
from torchvision import transforms
from PIL import Image
import torchvision.models as models
import requests
from io import BytesIO
import urllib.request, json
import numpy as np
normalize = transforms.Normalize(