Comments (3)
Right now code to convert data.npz
is in the ffda-poi repo. I can work on making a public example (once I've made more progress on other ffda-poi work) and link to label-maker's documentation, to move forward with option 1 presented above.
A few things to note:
-
Converting a ~1.8GB
data.npz
file takes about 3.5 hours to run. The corresponding.tfrecords
file will be ~1GB. -
kudos to @wronk for figuring out that the image array needs to be converted to a tensor, then run through
tf.image.encode_png
function to reduce the size before converting to atfrecord
without this step the data size is huge!
cc @Geoyi
from label-maker.
the implementation I'm currently working on does require tensorflow2, and tensorflow2 has some conflicts with label-maker's requirements.txt
, would it be okay if to upgrade these to work with tf2 or do we want to avoid having tensorflow as a dependency?
Happy to approach this a different way, if people have thoughts of something else to try.
from label-maker.
@martham93, thinking more about this, I'm not sure we want to add TF as a dependency. I think the options are:
- Code this functionality up separately and link to a public example in label-maker's documentation. However, don't explicitly support it in this codebase.
- Include the code in label-maker, make requirements updates (maybe in a separate PR), and make the TF functionality optional. We can do this by only importing TF imports within your data->TFRecord file and only include tf with the
requirements-dev.txt
file.
Feel free to continue coding this separately and we can drop in the functionality later depending on what we decide to do.
from label-maker.
Related Issues (20)
- Pycurl error HOT 2
- Add authentication to `GET` requests
- Not able to install label-maker on mac using the command pip install label-maker? HOT 5
- syntax error while running label-maker download --dest togo --config config.json? HOT 5
- Using this command "label-maker images" getting an error and not able to download the tiles! HOT 2
- Background tile ratio HOT 1
- Circle CI doesn't sync HOT 1
- Is there a way to download images of size greater than 256x256 and better clarity using label-maker? HOT 1
- Is there a way to join the small images tiles and make a bigger image? HOT 1
- `get_bounds` only works for polygons HOT 1
- Can i use to extract tiles from google ? HOT 5
- Can the training improve the detection ?
- Not all labels for border tiles are downloaded HOT 4
- Can we label already downloaded imagery with the custom labels ? HOT 14
- Running label-maker on google colab HOT 1
- No support for Tensorflow 2 HOT 1
- Generalize Final data.npz output HOT 1
- Remove or upgrade click dependency
- Use logging or drop log option
- Add codes in labelling to ensure tiles inside bbx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from label-maker.