-
Notifications
You must be signed in to change notification settings - Fork 199
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
More documentation on using local (non-zoo) bundles with MONAILabel #1490
Comments
This is an important one I think for people developing bundles and wanting to experiment/visualise with their results. My solution to the problem was to download the bundle app and then soft link the bundle's directory into the directory where the app would normally download bundles from the zoo. This maybe wasn't correct but I could find documentation elsewhere about how to do things with local bundles. My script for doing this which assumes it's in the #! /bin/bash
eval "$(conda shell.bash hook)"
conda activate monailabel
homedir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUNDLE="$(cd "$homedir/.." && pwd)"
BUNDLE_NAME="$(basename $BUNDLE)"
LABELDIR="$BUNDLE/monailabel"
if [ ! -d "$LABELDIR" ]
then
mkdir "$LABELDIR"
mkdir "$LABELDIR/datasets"
cd "$LABELDIR"
monailabel apps --download --name monaibundle
mkdir "$LABELDIR/monaibundle/model"
cd "$LABELDIR/monaibundle/model"
ln -s "$BUNDLE" "$BUNDLE_NAME"
fi
cd "$LABELDIR"
monailabel start_server --app monaibundle --studies datasets --conf models "$BUNDLE_NAME" $* |
Correct. Importing your own bundle being supported couple of versions (may be from 0.5 onwards). Documentation on this is missing. We never highlighted this feature/flexibility. Possibly add a section: |
If possible it would be nice to have a command-line mechanism for making this work with |
bring your own bundle from local directories
The text was updated successfully, but these errors were encountered: