-
Notifications
You must be signed in to change notification settings - Fork 10
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
Request to export bioimage zoo format and transfer into image J #25
Comments
HenriquesLab/ZeroCostDL4Mic#288 I try to use colab but also meet same issue, the issue page link is there |
Hi @jinxsfe
|
Hi, after training. I save that he model on Google Drive, can I go through quality control steps and get LOU for final model from 5.1 to 5.4. |
Whether you were trying to export the model directly after training, from your error message, I can see that you are trying to load "pvol-224-25-0.7-50-0.25.hdf5" which is not the type of checkpoint exported neither in ZeroCostDL4Mic nor in DL4MicEverywhere, did you add any code to the notebook? I don't add anything in the book, the pool-224-25-0.7-50-0.25 just like name for folder, instead of any real means |
The notebook you are using to train, test and export the model. I had trained for long times ago, and I keeped model in my google drive, and I just want to move they into bioimage.IO and go to image J or icy. Whether you were trying to export the model directly after training. From your error message, I can see that you are trying to load "pvol-224-25-0.7-50-0.25.hdf5" which is not the type of checkpoint exported neither in ZeroCostDL4Mic nor in DL4MicEverywhere, did you add any code to the notebook? after finish training, the model will be save the folder, the name is "pvol-224-25-0.7-50-0.25" is name for folder, hdf5 is training record I guess If not, please, try uploading the model following the steps in section 5. Does it compute directly the steps 5.1, 5.2 and 5.3? If not, can you please provide screenshots of all the errors in order? I can run smoothly for 5.1-5.3, but 5.4 |
Can you please indicate what is the notebook and send us screenshots of what you wrote in section 5.1? The notebook is taking the folder name as the name of the model, rather the path to the model (e.g., weights_best.hdf5). It may be that something is missing in the parameters |
notebook is UNET3D, below is 5.0 and 5.1 |
![]() 9 frames /usr/lib/python3.10/enum.py in new(cls, value) ValueError: 1.25 is not a valid RESUNIT During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last)
AttributeError: 'float' object has no attribute 'upper' The above exception was the direct cause of the following exception: ValueError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/bioimageio/core/build_spec/build_model.py in build_model(weight_uri, test_inputs, test_outputs, input_axes, output_axes, name, description, authors, tags, documentation, cite, output_path, architecture, model_kwargs, weight_type, sample_inputs, sample_outputs, input_names, input_step, input_min_shape, input_data_range, output_names, output_reference, output_scale, output_offset, output_data_range, halo, preprocessing, postprocessing, pixel_sizes, maintainers, license, covers, git_repo, attachments, packaged_by, run_mode, parent, config, dependencies, links, training_data, root, add_deepimagej_config, tensorflow_version, opset_version, pytorch_version, weight_attachments) /usr/local/lib/python3.10/dist-packages/bioimageio/core/build_spec/build_model.py in write_sample_data(input_paths, output_paths, input_axes, output_axes, pixel_sizes, export_folder) /usr/local/lib/python3.10/dist-packages/bioimageio/core/build_spec/build_model.py in write_im(path, im, axes, pixel_size) /usr/local/lib/python3.10/dist-packages/tifffile/tifffile.py in imwrite(file, data, mode, bigtiff, byteorder, imagej, ome, shaped, append, shape, dtype, photometric, planarconfig, extrasamples, volumetric, tile, rowsperstrip, bitspersample, compression, compressionargs, predictor, subsampling, jpegtables, colormap, description, datetime, resolution, resolutionunit, subfiletype, software, metadata, extratags, contiguous, truncate, align, maxworkers, buffersize, returnoffset) /usr/local/lib/python3.10/dist-packages/tifffile/tifffile.py in write(failed resolving arguments) /usr/local/lib/python3.10/dist-packages/tifffile/tifffile.py in enumarg(enum, arg)
ValueError: invalid argument 1.25 |
hi, please, indicate the name of the model in the To export the model, try first exporting the model with the parameters by default, especially for the pixel size. You can leave all the optional parameters such as URL to training data, blanck. |
Hi there! We assume that the issue was solved. Please reopen the issue if you still re-encounter any problem |
Hi, I had trained several models and I want to export the trained model in bioimage zoo format, but I am not clear some parameter, even I fill it, but show the error report , for example,
![Screenshot 2023-11-29 at 12 34 16 PM](https://private-user-images.githubusercontent.com/121477741/286691956-8542bac6-5476-4425-b60d-16e029be7177.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleS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lcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMTExNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hY2FmMjBkMDAxMjAyNjVjMDI4ZmZlYzM3N2ZmYmZiOGU4YjRmM2NmMmMzZmJiMGYyNWRhYmE5MDE5NmEwOWJmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.q0wF4PaTHxjW16fWeO6PxmMTnXBYnq9diYOZ8osq7OY)
It's necessary to provide training data ID? what ID is and what training data source I should to be provided? I’m
![Screenshot 2023-11-29 at 12 35 49 PM](https://private-user-images.githubusercontent.com/121477741/286692360-16a97112-c29d-46f1-8a91-4956bbbd3bda.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTgyMTEsIm5iZiI6MTczOTYxNzkxMSwicGF0aCI6Ii8xMjE0Nzc3NDEvMjg2NjkyMzYwLTE2YTk3MTEyLWMyOWQtNDZmMS04YTkxLTQ5NTZiYmJkM2JkYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMTExNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02Njc4MWI5NjM1MjJkOTNkZTBiY2I2ODBhMDE0ZTg4NjAxODdkOGFlMTIxNmFjNzY2YTEyYzliZWIyNzVmYmVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.O6nEkid_NXj3N4nKvh75JYWoOUtsSZ42r0Ng0vCBzp4)
what is file'ID, can you help me export model in bio image zoo? I I want to transfer the model into image J via bio image Zoo.
But the model that I had trained is zerocost4mic unet 3D, so I just want put old model in that part, but failed with DL4mic and zerocost4mic at same time
That's why I need that. can you give me some ideas for what blank should I fill? my email is [email protected]. Appreciate your help
The text was updated successfully, but these errors were encountered: