nya0429 / ofxDeepDream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ofxDeepDream

Description

This is an experimental program for real-time input video conversion with deepdream. This project is referred to this github repository.

Environments

  • Windows10
  • Visual Studio 2019 or 2022
  • openFramewrks v0.11.2
  • CUDA v11.3
  • LibTorch v1.11.0
  • OpenCV v4.5.5 with CUDA

Setup

LibTorch

  1. Download LibTorch from https://pytorch.org/get-started/locally/
  2. Unzip the downloaded file and copy the contents of the include and lib directories to the following location.
  • libtorch-win-shared-with-deps-1.11.0+cu113/include >> /libs/win/include/vs/x64/Release
  • libtorch-win-shared-with-deps-1.11.0+cu113/lib >> /libs/win/lib/vs/x64/Release
  1. Download CUDA from https://developer.nvidia.com/cuda-toolkit-archive/

OpenCV

  1. Build openCV with extra CUDA module https://github.com/opencv/opencv_contrib
  2. Edit addon_config.mk to change OpenCV paths to your environment.

You don't have to follow the above method, just set up your project to use OpenCV and Libtorch.

Models

  1. Download models from this drive or run /python/model_export.py in Pytorch.
  2. Copy Inception_v3.pt and spynet.pt to the model directory.

About


Languages

Language:C++ 61.1%Language:Python 36.5%Language:Makefile 2.4%