Coder Social home page Coder Social logo

pygreentea's People

Contributors

csinva avatar grisaitis avatar naibaf7 avatar srinituraga avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

pygreentea's Issues

Error when options.scale_error = False

File "/groups/saalfeld/home/bogovicj/unet-tut/caffe-janelia/PyGreentea/PyGreentea.py", line 562, in train
    print("[Iter %i] Loss: %f, frac_pos=%f, w_pos=%f" % (i,loss,frac_pos,w_pos))
UnboundLocalError: local variable 'frac_pos' referenced before assignment

frac_pos needs a value too, or maybe better, shouldn't be printed when scale_error is false.

Use less memory when opening hdf5 files

2 ideas...

  1. use a different driver when opening the files. e.g.

    h5py.File('myfile.hdf5', driver=<driver name>, <driver_kwds>).

  2. Set the cache settings to use less memory: E.g.,

    import h5py
    import contextlib
    
    filename = '/tmp/foo.hdf5'
    propfaid = h5py.h5p.create(h5py.h5p.FILE_ACCESS)
    settings = list(propfaid.get_cache())
    settings[2] /= 100  # this attribute is the size of the raw data cache in bytes
    propfaid.set_cache(*settings)
    with contextlib.closing(h5py.h5f.open(filename, fapl=propfaid)) as fid:
       f = h5py.File(fid)
    

    where propfaid is a "property file access identifier", documented here

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.