Reverse Engineering of Generative Models: Inferring Model Hyperparameters from Generated Images

Reverse_Engineering_GMs Official Pytorch implementation of paper “Reverse Engineering of Generative Models: Inferring Model Hyperparameters from Generated Images”. The paper and supplementary can be found at https://arxiv.org/abs/2106.07873 Prerequisites PyTorch 1.5.0 Numpy 1.14.2 Scikit-learn 0.22.2 Getting Started Datasets For reverse enginnering: For deepfake detection: Download the CelebA/LSUN dataset For image_attribution: Generate 110,000 images for four different GAN models as specified in https://github.com/ningyu1991/GANFingerprints/ For real images, use 110,000 of CelebA dataset. For training: we used 100,000 images and remaining 10,000 for testing. Training […]

Read more

NLP – Sentiment Analysis

Now, we can see that our target has changed to 0 and 1,i.e. 0 for Negative and 1 for Positive, and the data is more or less in a balanced state. Data Pre-processing Now, we will perform some pre-processing on the data before converting it into vectors and passing it to the machine learning model. We will create a function for pre-processing of data. 1. First, we will iterate through each record, and using a regular expression, we will get […]

Read more

Covid-19 Tweets Analysis using NLP with Python

This article was published as a part of the Data Science Blogathon Introduction In this tutorial, I am going to discuss a practical guide of Natural Language Processing(NLP) using Python. Before we move further, we will just take a look at the concept of Corona Virus namely CoVid-19. CoVid-19: Coronavirus disease (CoVid-19) is an infectious disease that is caused by a newly discovered coronavirus. Most of the people who have been infected with the CoVid-19 virus will experience mild to adequate […]

Read more

CATs: Semantic Correspondence with Transformers

CATs Semantic Correspondence with Transformers Our model CATs is illustrated below: git clone https://github.com/SunghwanHong/CATs cd CATs conda create -n CATs python=3.6 conda activate CATs pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html pip install -U scikit-image pip install git+https://github.com/albumentations-team/albumentations pip install tensorboardX termcolor timm tqdm requests pandas Download pre-trained weights on Link All datasets are automatically downloaded into directory specified by argument datapath Result on SPair-71k: (PCK 49.9%) python test.py –pretrained “/path_to_pretrained_model/spair” –benchmark spair Result on SPair-71k, feature backbone frozen: (PCK […]

Read more

Headless chatbot that detects spam and posts links to it to chatrooms for quick deletion

SmokeDetector Headless chatbot that detects spam and posts it to chatrooms. Uses ChatExchange, takes questions from the Stack Exchange realtime tab, and accesses answers via the Stack Exchange API. Basic setup To set up SmokeDetector, please use git clone https://github.com/Charcoal-SE/SmokeDetector.git cd SmokeDetector git checkout deploy sudo pip3 install -r requirements.txt –upgrade pip3 install –user -r user_requirements.txt –upgrade Next, copy config.sample to a new file called config,and edit the values required. To run, use python3 nocrash.py(preferably in a daemon-able mode, like […]

Read more

Real-time Coastal Monitoring at the University of Hawaii at Manoa

Coastal Monitoring at the University of Manoa Source code for Beaglebone/RPi-based data loggers, shore internet gateways, and web server. Software developed for the Coastal Environment Monitoring project at the University of Hawaii at Manoa. Project website: https://grogdata.soest.hawaii.edu/project_info/ I’m using this mostly for synchronizing the software and configurations on our gateways, loggers, and servers; I’m not using this to track issues or updates. More like “Dropbox for source code” than “git for source control”. That said, the drivers/ folder does contain […]

Read more

MDAnalysis tool to calculate membrane curvature

Membrane Curvature This is an MDAnalysis module to calculate membrane curvature from molecular dynamics simulations. The MDAkit for membrane curvature analysis is part of the Google Summer of Code program and it is linked to a Code of Conduct. Abstract Elements of differential geometry enable us to quantify the curvature of a surface. The core elements of biological membranes, phospholipids, provide tridimensional configurations from which a surface can be derived to calculate curvature descriptors. We would like to integrate to […]

Read more

A Python library to analyze molecular dynamics trajectories

MDAnalysis MDAnalysis is a Python library for the analysis of computer simulations of many-body systems at the molecular scale, spanning use cases from interactions of drugs with proteins to novel materials. It is widely used in the scientific community and is written by scientists for scientists. It works with a wide range of popular simulation packages including Gromacs, Amber, NAMD, CHARMM, DL_Poly, HooMD, LAMMPS and many others — see the lists of supported trajectory formats and topology formats. MDAnalysis also […]

Read more

Solving the Traveling Salesman Problem using Self-Organizing Maps with python

som-tsp Solving the Traveling Salesman Problem using Self-Organizing Maps This repository contains an implementation of a Self Organizing Map that can be used to find sub-optimal solutions for the Traveling Salesman Problem. The instances of the problems that the program supports are .tsp files, which is a widespread format in this problem. All the source code can be found in the src directory, while a report and brief presentation slides (in Spanish) can be found in the report folder. To […]

Read more

A python module for monitoring memory consumption

Memory Profiler This is a python module for monitoring memory consumption of a process as well as line-by-line analysis of memory consumption for python programs. It is a pure python module which depends on the psutil module. Installation Install via pip: $ pip install -U memory_profiler The package is also available on conda-forge. To install from source, download the package, extract and type: $ python setup.py install Usage line-by-line memory usage The line-by-line memory usage mode is used much in […]

Read more
1 602 603 604 605 606 921