Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize maple workflow #13

Open
tcnichol opened this issue Jan 29, 2024 · 2 comments
Open

Dockerize maple workflow #13

tcnichol opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@tcnichol
Copy link
Contributor

Create a Dockerfile and run maple workflow using that Docker image. Make sure that dependencies are handled correctly, paths set from environment variables, and path to data (input and output) mounted.

@tcnichol tcnichol self-assigned this Jan 29, 2024
@tcnichol
Copy link
Contributor Author

The Docker container now builds and has all required dependencies. However, I am getting an error:

arguments provided
Namespace(gpus_per_core=1, image='test_image_01.tif', root_dir='', weight_file='hyp_best_train_weights_final.h5')
1.start caculating wartermask
2. start tiling image
/data/divided_img/test_image_01
/data/input_img_local/test_image_01.tif
Traceback (most recent call last):
  File "maple_workflow.py", line 324, in <module>
    tile_image(config, image_name)
  File "maple_workflow.py", line 78, in tile_image
    divide.divide_image(config, input_img_path, crop_size, file1, file2)
  File "/mpl_divideimg_234_water_new.py", line 181, in divide_image
    dbfile = open(db_file_path, "wb")
FileNotFoundError: [Errno 2] No such file or directory: '/data/neighbors/test_image_01_ij_dict.pkl'

Could use some suggestions on what might be going wrong.

@tcnichol
Copy link
Contributor Author

Above is fixed in another pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant