Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Analyzing_Data/RasterFlow_Bring_Your_Own_Model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,11 @@
"outputs": [],
"source": [
"from dataclasses import asdict\n",
"from rasterflow_remote.data_models import InferenceConfig, InferenceActorEnum, MergeModeEnum, ResamplingMethod\n",
"from rasterflow_remote.data_models import InferenceConfig, MergeModeEnum, MosaicToMosaicActorEnum, ResamplingMethod\n",
"\n",
"custom_inference_config = InferenceConfig(\n",
" model_path = s3_model_path,\n",
" actor = InferenceActorEnum.REGRESSION_PYTORCH,\n",
" actor = MosaicToMosaicActorEnum.REGRESSION_PYTORCH,\n",
" patch_size = 224,\n",
" clip_size = 28,\n",
" device = \"cuda\",\n",
Expand Down
4 changes: 2 additions & 2 deletions Analyzing_Data/RasterFlow_Bring_Your_Own_Rasters_NAIP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
"source": [
"# # Uncomment to run road detection on the NAIP mosaic\n",
"# \n",
"# from rasterflow_remote import InferenceActorEnum\n",
"# from rasterflow_remote import MosaicToMosaicActorEnum\n",
"# from rasterflow_remote.data_models import MergeModeEnum\n",
"# \n",
"# # ChesapeakeRSC model - direct URL (no HuggingFace auth required)\n",
Expand All @@ -563,7 +563,7 @@
"# device=\"cuda\",\n",
"# features=[\"r\", \"g\", \"b\", \"ir\"], # Must match the bands in our mosaic\n",
"# labels=[\"background\", \"road\"],\n",
"# actor=InferenceActorEnum.SEMANTIC_SEGMENTATION_PYTORCH,\n",
"# actor=MosaicToMosaicActorEnum.SEMANTIC_SEGMENTATION_PYTORCH,\n",
"# max_batch_size=256,\n",
"# merge_mode=MergeModeEnum.WEIGHTED_AVERAGE,\n",
"# )\n",
Expand Down
6 changes: 3 additions & 3 deletions Analyzing_Data/RasterFlow_ChangeDetection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
" return logits # (N, Classes, H, W)\n",
"```\n",
"\n",
"We'll use a particular **Actor** to run change detection inference using Rasterflow: `InferenceActorEnum.SEMANTIC_SEGMENTATION_CHANGE_DETECTION_PYTORCH`."
"We'll use a particular **Actor** to run change detection inference using Rasterflow: `MosaicToMosaicActorEnum.SEMANTIC_SEGMENTATION_CHANGE_DETECTION_PYTORCH`."
]
},
{
Expand Down Expand Up @@ -97,7 +97,7 @@
"source": [
"from datetime import datetime\n",
"\n",
"from rasterflow_remote import RasterflowClient, DatasetEnum, InferenceActorEnum\n",
"from rasterflow_remote import RasterflowClient, DatasetEnum, MosaicToMosaicActorEnum\n",
"\n",
"from rasterflow_remote.data_models import (\n",
" VectorizeMethodEnum,\n",
Expand Down Expand Up @@ -250,7 +250,7 @@
" \"field\",\n",
" \"field_boundaries\",\n",
" ],\n",
" actor=InferenceActorEnum.SEMANTIC_SEGMENTATION_CHANGE_DETECTION_PYTORCH,\n",
" actor=MosaicToMosaicActorEnum.SEMANTIC_SEGMENTATION_CHANGE_DETECTION_PYTORCH,\n",
" max_batch_size=128,\n",
" merge_mode=MergeModeEnum.WEIGHTED_AVERAGE,\n",
" xy_block_multiplier=1\n",
Expand Down
Loading