-
Notifications
You must be signed in to change notification settings - Fork 630
simclr on medical dataset gives error #187
Comments
Hi, you can try to add labels from the dataset, that might fix the issue. You can refer to this from -
|
but I don't have any label, because I want to train unlabeled images as pretraining. |
creating a dummy label may suffice. label won't be used anyway for the pretraining of backbone network. |
Finally, I was able to run the code, but after completing the iteartions I couldn't get any hub file which has saved model like in your case, and code just cerated files like ;
and I don't know from above files which can be used as model for fine-tuning? Am I doing wrong while running and because of that the code doesn't create any hub file with saved model? |
These are checkpoints and you could specify
`FLAGS.checkpoint=/path/to/directory` to load the checkpoint for
fine-tuning.
…On Wed, Feb 9, 2022 at 11:16 AM fclb ***@***.***> wrote:
Finally, I was able to run the code, but after completing the iteartions I
couldn't get any hub file which has saved model like in your case, and code
just cerated files like ;
- checkpoint
- model.ckpt-8720.data-00000-of-00001
- model.ckpt-8720.index
- model.ckpt-8720.meta
and I don't know from above files which can be used as model for
fine-tuning? Am I doing wrong while running and because of that the code
doesn't create any hub file with saved model?
Can you help please?
—
Reply to this email directly, view it on GitHub
<#187 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKERUIU6MKY4Q5GV5YIHWDU2KHPPANCNFSM5MWISKZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
I need Resnet model pre-trained weights to use in another approach as initial weights and I need an .h5 file to load weights. Is is possible to get such a file? |
Now I want apply simclr on my custom dataset.Could you please tell me how to prepare datas format?Thank you very much! |
I just changed the line 65 in simclr/tf2/data.py ( dataset = builder.as_dataset() ) as
dataset= tf.data.Dataset.from_tensor_slices(train_images)
but I was not able to run the codes. Is there any document that you can share with me how to apply simclr on custom dataset which different than tensorflow dataset or can you say where I am doing wrong?
In my codes; train_images = list(paths.list_images(images_path))
images_path=folder path which contains unlabaled pretraining images
With this way I am getting error in mp_fn function with error "tf__map_fn() missing 1 required positional argument: 'label'"
The text was updated successfully, but these errors were encountered: