GithubHelp home page GithubHelp logo

pkmital / cyclegan Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 8.0 6.59 MB

Describing CycleGAN (excerpt from CADL course on Kadenze, Inc.)

License: Apache License 2.0

Jupyter Notebook 85.72% Python 14.25% Shell 0.03%

cyclegan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cyclegan's Issues

building for GPU fails on Copy run_jupyter.sh /

For some reason it seems that the COPY action is failing when attempting to build for GPU. I'm a bit new to Docker so not too sure what may be the problem here?

~/CycleGAN$ sudo nvidia-docker build -t cyclegan-gpu -f Dockerfile-gpu .
Sending build context to Docker daemon  14.17MB
Step 1/16 : FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
 ---> c550ba815146
Step 2/16 : ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/cuda/lib64
 ---> Using cache
 ---> f51a16277f1b
Step 3/16 : ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
 ---> Using cache
 ---> 1e25ac477767
Step 4/16 : RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates     libglib2.0-0 libxext6 libsm6 libxrender1     git mercurial subversion
 ---> Using cache
 ---> 9c086bc017c7
Step 5/16 : RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh &&     wget --quiet https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh -O ~/anaconda.sh &&     /bin/bash ~/anaconda.sh -b -p /opt/conda &&     rm ~/anaconda.sh
 ---> Using cache
 ---> bcc716730554
Step 6/16 : RUN apt-get install -y curl grep sed dpkg &&     TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` &&     curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb &&     dpkg -i tini.deb && rm tini.deb &&     apt-get clean
 ---> Using cache
 ---> 52804f695a7c
Step 7/16 : ENV PATH /opt/conda/bin:$PATH
 ---> Using cache
 ---> fa043c3bc670
Step 8/16 : ENV TENSORFLOW_VERSION 1.5.0
 ---> Using cache
 ---> 5ba1ec6d2a49
Step 9/16 : RUN pip install tensorflow-gpu==$TENSORFLOW_VERSION
 ---> Using cache
 ---> 974571f4ee65
Step 10/16 : COPY jupyter_notebook_config.py /root/.jupyter/
 ---> Using cache
 ---> b67cc6f46885
Step 11/16 : COPY run_jupyter.sh /
COPY failed: stat /var/lib/docker/tmp/docker-builder196118151/run_jupyter.sh: no such file or directory```

ImportError: cannot import name 'imresize' on Google Colab

Hi @pkmital

I faced this ImportError when run the cell below

/usr/local/lib/python3.6/dist-packages/cadl/cycle_gan.py in <module>()
     24 import tensorflow.contrib.layers as tfl
     25 from cadl.utils import imcrop_tosquare
---> 26 from scipy.misc import imresize
     27 
     28 

ImportError: cannot import name 'imresize'
!pip install cadl
import numpy as np
import tensorflow as tf
import tensorflow.contrib.layers as tfl
from cadl.cycle_gan import lrelu, instance_norm

in recent google colab, scipy==1.3.0 is installed by default. but since v1.3.0rc1 scipy.misc.imresize was removed.

So on Google Colab, we should run !pip install scipy==1.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.