Closed rajavishah closed 4 months ago
The PR is updated with the following changes:
dockerfile
takes in the BASE_IMAGE
value dynamically via noxfile
noxfile
in the build_algorithm
session writes the docker_image_name
to a txt
file and following session, reads the txt
file to fetch the name
.--z_axis
parameter is added--save_dir
isn't passed since, we are receiving outputs
on gradio's
side. Users can directly download outputs
from there.
This PR helps us to run all the parameters for cellpose(v2) 2D in docker and locally too:
Steps to run:-
chmod +x build_docker.sh
sh build_docker.sh
docker run -d -p 8000:8000 --name gradio-container gradio-image
The changes done from last PR(https://github.com/bilayer-containers/bilayers/pull/18):
cli_tags
ininputs
andcli_args
inexec_function
to only mentioningcli_tags
inconfig.yaml
file. To deal with the arguments which by default we want to pass and not expose that to user atGradio Interface
level, we can now put those in exec_function.hidden_args`.Files
as inputs viagradio.Files
and puttingfile_count
asdirectory
.I feel, the following aspects require refactoring or improved edge case handling:
--dir
argument. I tried usingos.pathname.dirname(value[0])
but it was weirdly taking the first file instead of taking all the files. Is there a better way to do it? Current Logic link here--add_model
, right?FROM cellprofiler/runcellpose_no_pretrained:0.1
in dockerfile. I was wondering, how should I make it pass from CI/CD. My first instinct goes for using environment variables and storing the name of pulled docker and passing it.The problem:
--savedir
: If user passes the directory folder, which would be his local path, how the docker would identify the path and help save the output to that path?--z_axis
: I wasn't sure about the input type and after pushing the code got some links from Shata, to check-out.