beelabhmc / flower_map

Automated flower species classification for generating honey-bee foraging maps
MIT License
4 stars 2 forks source link

typeerror in transform.py #9

Closed aryarm closed 3 years ago

aryarm commented 3 years ago
Traceback (most recent call last):
  File "scripts/transform.py", line 91, in <module>
    [
  File "scripts/transform.py", line 92, in <listcomp>
    list(transform(chunk, camera, seg))
  File "scripts/transform.py", line 46, in transform
    pt = chunk.model.pickPoint(camera.center, camera.unproject(Metashape.Vector(point)))
TypeError: object is not a sequence

see the code

aryarm commented 3 years ago

seems like this is related to this

aryarm commented 3 years ago

I originally thought this error might be happening because transform() isn't yielding any elements.

But I actually don't think that makes sense, anymore. The error is coming from a Metashape function: either pickPoint, unproject, or Metashape.Vector

aryarm commented 3 years ago

@elissahou if you're not still getting this error, feel free to close this issue

aryarm commented 3 years ago

reopening this issue because it seems like this error is still happening, after all

tommyfuu commented 3 years ago

Yes, I am still getting this error haha when trying to run on the dataset 52217East.

aryarm commented 3 years ago

for posterity: further debugging of this issue led us to the conclusion that the images in the particular dataset that was used in this situation led to a fragmented orthomosaic so the orthomosaic was the underlying problem I'm going to close this issue for now, but if anyone encounters this issue again, please reopen it!