seoulsky-field / CXRAIL-dev

CXRAIL-dev
MIT License
7 stars 0 forks source link

Hotfix: Error when trying to use Ray Tune #88

Closed chrstnkgn closed 1 year ago

chrstnkgn commented 1 year ago

What

My command was: python main.py Dataset.train_size=3000 Dataset.root_path='/home/' hparams_search=raytune

Then the following error message arises from custom_metrics.py file image with long and boring and uninterpretable hydra errors then finally image

Why

I've actually seen this error several times, it seems to be a conflict error when using hydra and ray simultaneously when we try to get the time information using hydra and apply it into the ray system. I have not found the appropriate solution though, I've just been avoiding using it in such way.

How

I think we need to seek for ways to resolve this error instead of simply avoiding it so that we know what to do when the same thing happens.

seoulsky-field commented 1 year ago

I'm checking this error. Please wait a second!

kdg1993 commented 1 year ago

Thanks, @chrstnkgn for reporting this error. FYI, I also encountered the same error with the command

python main.py hparams_search=raytune Dataset.root_path='/home/'

image

seoulsky-field commented 1 year ago

@chrstnkgn Thanks to check and wait! I checked the problem and solve this. I'll update code develop branch directly.