Giter VIP home page Giter VIP logo

computervision's Issues

error

Hi,
This is a great work!
im facing some problem when i run the net cell i have this error

AttributeError                            Traceback (most recent call last)
<ipython-input-31-4968a954faba> in <module>()
      4 NST.setImageDim(IMAGE_WIDTH,IMAGE_HEIGHT)
      5 
----> 6 NST.run(ITERATION, style_image=path_to_style_image, content_image=path_to_content_image)

/content/NeuralStyleTransfer/implementNTS.py in run(iterations, content_image, style_image)
    316 pool_type='avg'
    317 def run(iterations = ITERATIONS, content_image=CONTENT_IMAGE, style_image=STYLE_IMAGE):
--> 318     with tf.Session() as sess:
    319 
    320         download_if_not_exists(file_name, url)

AttributeError: module 'tensorflow' has no attribute 'Session' ```

Save a trained style.

Is there a way to save a particular style (as we would do with any model) to avoid repeated training?

AttributeError: module 'scipy.misc' has no attribute 'imread' (NeuralStyleTransfer/implementNTS.py)

Hi,

The colab notebook doesn't run, leads to a code error:

/content/NeuralStyleTransfer/implementNTS.py in load_image(path)
     69 
     70 def load_image(path):
---> 71     image = scipy.misc.imread(path)
     72     image = 255 * skimage.transform.resize(image, (IMAGE_HEIGHT, IMAGE_WIDTH, COLOR_CHANNELS))
     73     # image = image.astype(np.uint8)

AttributeError: module 'scipy.misc' has no attribute 'imread'

scipy deprecated that method in 1.2.0

When forcing 1.0.0, it leads to another error, a timeout error:

downloading...
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
/usr/lib/python3.6/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
   1317                 h.request(req.get_method(), req.selector, req.data, headers,
-> 1318                           encode_chunked=req.has_header('Transfer-encoding'))
   1319             except OSError as err: # timeout error

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.