pkmital / cyclegan Goto Github PK
View Code? Open in Web Editor NEWDescribing CycleGAN (excerpt from CADL course on Kadenze, Inc.)
License: Apache License 2.0
Describing CycleGAN (excerpt from CADL course on Kadenze, Inc.)
License: Apache License 2.0
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```
I'm trying to train and test this on colab.
What kind of directory should be, and where should I put my own dataset?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.