Category Archives: Python

Compile Caffe without Root Privileges

In this tutorial, we are going to introduce how to install Caffe without root privileges. We assume that you have installed Anaconda and CUDA on your PC. Create Virtual Environment Install Dependencies Since we decide not to use system dependencies, we need to install them in the Anaconda environment. To install, you can use the following commands: Build Protocol Buffer (protobuf) Please DO NOT install it with Anaconda, because it causes the problem of the undefined reference in the linking process. To compile protobuf, we need to download the source code from GitHub: Then, we need to generate a Makefile with configure: Please make sure that you add the --enable-share option. Finally, we can build it with make and make…

Continue Reading

Build PyTorch Extensions with CUDA and CFFI

Deprecated warning: PyTorch 1.0+ uses to Aten as its tensor library. So the article is no longer applicable in PyTorch 1.0+. Please refer to this GitHub repository for more information. Python is one of the most popular programming languages today for deep learning applications. However, as an interpreted language, it has been considered too slow for high-performance computing. Therefore, I incorporated CUDA into Python to build my own extension that accelerates the computation. In this tutorial, I give an example of CUDA extension for data augmentation in deep learning. Create Build Scripts First of all, we need to create a script for building FFI extension named build.py. Create CUDA Interface Then, we need to create an interface for CUDA which…

Continue Reading

Making Requests Non-blocking in Tornado

Tornado is one of the most popular web frameworks for Python, which is based on a single thread IO loop (aka event loop). You can handle high concurrency with optimal performance. However, Tornado is single-threaded (in its common usage, although it supports multiple threads in advanced configurations), therefore any "blocking" task will block the whole server. This means that a blocking task will not allow the framework to pick the next task waiting to be processed. For example, this is the wrong way of using IOLoop: Note that get_complex_result() is called correctly, but it is blocked by time.sleep(5), which will prevent the execution of the following tasks (such as a second request to the same function). Only when the first…

Continue Reading

Install SciPy on Windows

In this tutorial, you will be setting up a numerical Python development environment for Windows 10. As you might have already realized, Python is rather simple to set up on a Linux/macOS box but as with many open source-based projects getting up and running on Windows is never trivial. Good solutions for Windows are Enthought Canopy, Anaconda (which both provide binary installers for Windows, OS X, and Linux), and Python (x, y). Both of these packages include Python, NumPy, and many additional packages. However, you can still install these packages manually. Prerequisites Before you start, I assume that you have installed Python with pip on your Windows correctly. You need to download the following packages: Microsoft Visual C++ Compiler for Python 2.7…

Continue Reading

WingIDE Professional 4.1.12 Crack

Today, I’ll talk about how to crack WingIDE Professional 4.1.12. Warning: DO NOT make commercial use of anything. If you believe something on this Site has infringed your intellectual property rights, please contact us. What’s WingIDE? Wingware's Python IDE is an Integrated Development Environment designed specifically for the Python programming language. Since 1999, Wingware has focused on Python. How to get WingIDE? You can download WingIDE from http://wingide.com/downloads. It’s a cross-platform software and the latest version now is 4.1.12. It has three different versions: WingIDE 101, WingIDE Personal, and WingIDE Professional. How to Crack WingIDE Professional 4.1.12? After installing Python and WingIDE on your computer, DO NOT run WingIDE first. You should change the system time to a month ago.…

Continue Reading
Contact Us
  • Nanyang Technological University, Singapore
  • root [at] haozhexie [dot] com