BUG: Inconsistent behaviour for `init_model` when the model is in the Trash
d13g0 opened this issue · comments
Describe the bug
I move my model to the trash
then I run this code:
mod = neptune.init_model(
key='MODEL',
project = 'PROJECT',
name = 'My Model'
)
The NeptuneModelKeyAlreadyExistsError
exception is raised
Expected behavior
Since the model is in the trash, I expect to be able to create it again. Otherwise, I suggest a more descriptive exception or to improve the documentation.
The current behaviour is problematic because though the exception is 'correct', when the user goes to Project>Models, the model is not there! Thus it could be confusing to see an exception saying that the model exists, and there is no model in the Models section.
I suggest a clearer exception or a warning.
Traceback
If applicable, add traceback or log output/screenshots to help explain your problem.
Environment
The output of pip list
:
neptune 1.4.1
neptune-notebooks 0.9.3
neptune-pytorch 1.0.1
The operating system you're using:
MacOS
The output of python --version
:
3.10.12
Additional context
Trying out the model registry