0a683f79d74ac0c3aa2f1551d0b7123f06c49735,docs/examples/run_keras_model.py,,deploy_keras_model,#Any#Any#Any#,22
Before Change
metadata_client = dl.Metadata()
// NOTE substitute your own trained model here.
model = tf.keras.applications.resnet50.ResNet50()
scene = metadata_client .search(
src_product_id, geom=raster_client.dltile(dltile), limit=1
)["features" ][0]["id"]
tile, meta = raster_client.ndarray(
scene,
bands=["red", "green", "blue"],
After Change
// create a new raster of the tile area with one channel of the prediction from the model.
image_ndarray = np.full(tile.shape[:-1], class_, dtype=np.uint16)
// upload a tile of this "prediction" to catalog
image_name = "-".join([src_product_id.replace(":", "_") , dltile.replace(":", "_")])
image = Image(name=image_name, product_id=dest_product_id, acquired=scene.acquired)
image.upload_ndarray(image_ndarray, raster_meta=meta)
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances Project Name: descarteslabs/descarteslabs-python
Commit Name: 0a683f79d74ac0c3aa2f1551d0b7123f06c49735
Time: 2019-10-30
Author: nik@descarteslabs.com
File Name: docs/examples/run_keras_model.py
Class Name:
Method Name: deploy_keras_model
Project Name: MolSSI/QCEngine
Commit Name: 96b8a3ff6eebb2c6c230df4fddd3adb003568b69
Time: 2019-11-04
Author: malorian@me.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: execute
Project Name: evilsocket/pwnagotchi
Commit Name: 90b0e10e81a5a0e03753715ec1034278bdd5f600
Time: 2019-10-07
Author: evilsocket@gmail.com
File Name: pwnagotchi/plugins/default/api.py
Class Name:
Method Name: parse_pcap
Project Name: AlexEMG/DeepLabCut
Commit Name: 96da2cacf837a9b84ecdeafb50dfb4a93b402f33
Time: 2021-01-06
Author: tr.biasi@gmail.com
File Name: deeplabcut/pose_estimation_tensorflow/train.py
Class Name:
Method Name: train
Project Name: interactiveaudiolab/nussl
Commit Name: 1da518468eddc31d93470b07cd8ae8a0bba616c7
Time: 2019-04-05
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/scaper_dataset.py
Class Name: Scaper
Method Name: load_audio_files