question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'mantisshrimp.tfms' has no attribute 'A'

See original GitHub issue

Code:

from mantisshrimp.all import *

presize = 512
size = 384

train_tfms = tfms.A.Adapter([*tfms.A.aug_tfms(size=size, presize=presize), tfms.A.Normalize()])
valid_tfms = tfms.A.Adapter([*tfms.A.resize_and_pad(size=size), tfms.A.Normalize()])

Throws: AttributeError: module 'mantisshrimp.tfms' has no attribute 'A'.

It is based on the example from docs, is it changed somehow now?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
lgvazcommented, Aug 15, 2020

This should be fixed with #321.

It was a very stupid mistake I did in a commit from yesterday, I also updated the tests to pick errors like these from the future, hopefully, you didn’t lose much time 😅

For updating, you just need to do:

pip install git+git://github.com/airctic/mantisshrimp.git#egg=mantisshrimp[all] --upgrade

On a side note, we’re already working on a Pypi release, that will give users more stability compared to working directly from the master branch, keep an eye on our community for updates 😄

1reaction
lgvazcommented, Aug 15, 2020

I think I might have broken something in the latest commit… I’ll check it out and let you know 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'mantisshrimp.tfms' has no attribute 'A ...
Throws: AttributeError: module 'mantisshrimp.tfms' has no attribute 'A'. It is based on the example from docs, is it changed somehow now?
Read more >
AttributeError: 'module' object has no attribute - Stack Overflow
E.g. I had a module called commands which is also a Python library module. This proved to be difficult to track down as...
Read more >
AttributeError: 'module' object has no attribute and ImportError
This video covers the AttributeError : ' module ' object has no attribute and ImportError: No module name errors in Python.
Read more >
'module' object has no attribute in 3minutes - YouTube
" AttributeError : object has no attribute "Understand how to trouble shoot the error message. Examples used in the video:When you append a ......
Read more >
tf AttributeError: 'module' object has no attribute 'transformations'
I'm using roscopter package to get the imu data from my quadcopter. It worked well but I got error when running it today....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found