turagalab / pygreentea Goto Github PK
View Code? Open in Web Editor NEWThis project forked from naibaf7/pygreentea
License: BSD 2-Clause "Simplified" License
This project forked from naibaf7/pygreentea
License: BSD 2-Clause "Simplified" License
If train() is called with a dataset with in-memory arrays, and the dataset includes a 'mask' attribute, then an error occurs because mask_slice
is not defined.
Currently train() logs the overall iteration time. This would be the time just for solver.step(1)
.
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.
2 ideas...
use a different driver when opening the files. e.g.
h5py.File('myfile.hdf5', driver=<driver name>, <driver_kwds>)
.
'sec2'
is one of the available drivers. It's "unbuffered"... Not sure exactly what that means, but maybe it means it uses less memory.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
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.