uncertainty-baselines icon indicating copy to clipboard operation
uncertainty-baselines copied to clipboard

a bug

Open ross-Hr opened this issue 3 years ago • 2 comments

when i run "from uncertainty_baselines.baselines.cifar import utils" , there is an error occured like +1 from uncertainty_baselines.baselines.cifar import utils ModuleNotFoundError: No module named 'uncertainty_baselines.baselines'

ross-Hr avatar Oct 03 '21 13:10 ross-Hr

Thanks for raising this, @xiaoxiong007! The issue here is that the baselines directory is not part of the uncertainty_baselines library API. Instead, the baselines directory is meant to contain standalone subdirectories of scripts that import and use the uncertainty_baselines library (such as this).

Some of the baselines directories contain other utility files. Those are intended to be used locally. Here's an example of how we import uncertainty_baselines/baselines/cifar/utils.py within uncertainty_baselines/baselines/cifar/deterministic.py.

Please let me know if that helps!

dusenberrymw avatar Oct 06 '21 21:10 dusenberrymw

Thank you very much. It has been solved!

ross-Hr avatar Jan 10 '22 01:01 ross-Hr