Closed aloboa closed 4 years ago
Actually, pytest run produces errors:
pytest . > pytestout.txt
Did you install git-lfs before cloning the repository? See e.g. https://github.com/micasense/imageprocessing#how-do-i-get-set-up https://github.com/micasense/imageprocessing/issues/100#issuecomment-572688850 https://github.com/micasense/imageprocessing/issues/68#issuecomment-524124873
No, I did not have git-lfs (installing this package should be noted in https://micasense.github.io/imageprocessing/MicaSense%20Image%20Processing%20Setup.html right after sudo apt install git)
I've installed it now, removed the micasense conda environment and directory and performed a fresh installation. pytest still produces the same errors
It's weird because
conda env create -f micasense_conda_env.yml
does not report any problem
It's likely necessary to wipe out the git cloned directory and re-clone the repository (not the conda environment, you can leave that alone, it's probably just fine). I haven't had luck with some of the workarounds if git-lfs was installed after the git clone
.
The problem isn't with the python (conda) environment, it's with the data files that the tests use which are stored in git-lfs. If git-lfs is installed after the clone, the data files don't get downloaded during the clone so you only have git-lfs file pointers. There is no image data or metadata in the file pointers, so the tests can't pass. I suspect there's a git lfs command to fix this, but I found it quicker to just re-clone the repository.
Solved by making a fresh installation with git-lfs on another machine. Thanks
Surprisingly, do not get it to work on the previous machine. This is what I do:
conda deactivate
conda remove --name micasense --all
sudo rm -r /home/npratf/micasense/imageprocessing
sudo rm -r /home/npratf/micasense
sudo apt remove git
sudo apt install git-lfs
mkdir micasense2
cd /home/npratf/micasense2
git clone https://github.com/micasense/imageprocessing.git
cd imageprocessing
conda env create -f micasense_conda_env.yml
conda activate micasense
pytest .
and still get the many errors Provided file path does not have a band name:
Had the same issue. Solved it with:
git lfs install
git lfs pull
The same problem has been encountered on the windows system, "ValueError: Provided file path does not have a band name: ./data/0000SET/000/IMG_0000_1.tif”,Have you solved the problem?
Frankly, do not quite remember as I finally could not accomplish what I wanted to do and gave up. I think I was able to solve this particular issue in one machine but not in another (see above), linux in both cases.
Git LFS was likely not installed prior to cloning the repository.
On Fri, Nov 27, 2020, 1:00 AM aloboa notifications@github.com wrote:
Frankly, do not quite remember as I finally could not accomplish what I wanted to do and gave up. I think I was able to solve this particular issue in one machine but not in another (see above), linux in both cases.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/micasense/imageprocessing/issues/107#issuecomment-734724342, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSNZU3G7PBNX3DUGI5U2MTSR5TCRANCNFSM4LEL5ELA .
Hi, what about trying to use this script with my own images collected with my altum camera? I was able to get it to work with the tutorial but I get the band name error trying to use my own data. Any advice?
I have gone through all the trouble shooting options for resolving this issue. I am running on Mac OS and I made sure to follow all the setup steps in order that was given in the set-up tutorial. I install gt-lfs before cloning but I get 74 fails and 44 errors from pytest. I then tried uninstalling and reinstalling all the set-up steps and I am running into the same errors and then get error from the first tutorial of "provided file path does not have a band name"
@julixax can you verify that the files in the data directory are there and have a reasonable size? Can you run exiftool ok one of them and get metadata printed? If not, it's likely a git lfs error.
Yes I fixed the error by running git-lfs pull only after the git clone command, not before. It seems to be working now
Awesome
On Thu, Sep 16, 2021, 8:44 AM julixax @.***> wrote:
Yes I fixed the error by running git-lfs pull only after the git clone command, not before. It seems to be working now
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/micasense/imageprocessing/issues/107#issuecomment-921017413, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSNZU7L52DLIEIT5BRKYSDUCIGERANCNFSM4LEL5ELA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I follow MicaSense Image Processing Setup, run and pass the 1st test ("Testing Installation"),
but get an error for the 2nd one ("Testing image reading and panel detection"). What can be wrong?