Skip to content
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

how to github folder import #204

Closed
avernal1819 opened this issue Feb 9, 2023 · 1 comment
Closed

how to github folder import #204

avernal1819 opened this issue Feb 9, 2023 · 1 comment

Comments

@avernal1819
Copy link

I got the following error while writing the code.

loss = smp.utils.losses.DiceLoss()
AttributeError: module 'segmentation_models_pytorch' has no attribute 'utils'

To solve this, open anaconda prompt and do pip install segmentation_models_pytorch

Even though I did pip install git+https://github.com/qubvel/segmentation_models.pytorch I get an error.

So I downloaded the entire folder and added the segmentation_models_pytorch folder in the project folder, but I don't know what to do to write smp.utils.

@timesler
Copy link
Owner

This error seems to be related to a different python package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants