-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
You can work locally using S3 data by setting the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables. You can also set the `AWS_REGION` environment variable to specify the region to use. If you are using a profile, you can set the `AWS_PROFILE` environment variable to specify the profile to use. | ||
|
||
```bash | ||
aws configure | ||
``` | ||
|
||
In order to store checkpoints and experiments data in S3, you need to modify `dacapo.yaml` to include the following: | ||
|
||
```yaml | ||
runs_base_dir: "s3://dacapotest" | ||
``` | ||
For configs and stats, you can save them locally or s3 by setting `type: files` or for mongodb by setting `type: mongo` in the `dacapo.yaml` file. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# %% | ||
import dacapo | ||
|
||
# from import create_config_store | ||
|
||
config_store = dacapo.store.create_store.create_config_store() | ||
|
||
# %% | ||
from dacapo import Options | ||
|
||
options = Options.instance() | ||
|
||
# %% | ||
options | ||
# %% | ||
from dacapo.experiments.tasks import DistanceTaskConfig | ||
|
||
task_config = DistanceTaskConfig( | ||
name="cosem_distance_task_4nm", | ||
channels=["mito"], | ||
clip_distance=40.0, | ||
tol_distance=40.0, | ||
scale_factor=80.0, | ||
) | ||
|
||
# %% | ||
|
||
config_store.store_task_config(task_config) | ||
|
||
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
train,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/em/fibsem-uint8,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/labels/groundtruth/crop155/[nuc] | ||
train,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/em/fibsem-uint8,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/labels/groundtruth/crop7/[nuc] | ||
val,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/em/fibsem-uint8,s3://janelia-cosem-datasets/jrc_hela-2/jrc_hela-2.zarr,recon-1/labels/groundtruth/crop6/[nuc] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
runs_base_dir: "s3://dacapotest" | ||
type: "files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# %% | ||
from dacapo.experiments.datasplits import DataSplitGenerator | ||
from funlib.geometry import Coordinate | ||
|
||
input_resolution = Coordinate(8, 8, 8) | ||
output_resolution = Coordinate(4, 4, 4) | ||
datasplit_config = DataSplitGenerator.generate_from_csv( | ||
"cloud_csv.csv", | ||
input_resolution, | ||
output_resolution, | ||
).compute() | ||
# %% | ||
datasplit = datasplit_config.datasplit_type(datasplit_config) | ||
# %% | ||
viewer = datasplit._neuroglancer() | ||
# %% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,8 @@ dependencies = [ | |
"click", | ||
"pyyaml", | ||
"scipy", | ||
"upath", | ||
"boto3", | ||
] | ||
|
||
# extras | ||
|