Closed priyapatel1 closed 3 months ago
Again, lets post in the other repo, these are definitely R related issues and not the underlying API. DeepForestR integration is a whole other challenge and there have 10x more python use. Repost there and we can help.
@priyapatel1 - I transferred this issue into the deepforestr repository since @bw4sz thought it was an R issue (@bw4sz - this is a good way to handle this in the future).
That said, it looks to me like it's actually an issue with the formatting of your raster not being supported by opencv (the core Python library that we use for visualization). For some reason your raster values are stored as uint32 (32 bit unsigned integers) when normally rasters are stored as byte (8 bit unsigned integers). If I convert your raster to byte then everything works fine.
I did this using gdal:
gdal_translate -ot Byte sample2.tif sample2_byte.tif
but there are certainly other ways to do it.
Closing due to inactivity. Feel free to reopen if you come back to this @priyapatel1
I'm trying to create a plot for my tif image with bounding boxes overlaid. I can run model$predict_tile and view the plot perfectly fine with I use the built in tif, like this:
This gives me a raster with bounding boxes overlaid. However, when I use my OWN raster (attached) - I run into issues. First, I tried running it with return_plot = FALSE.
From that code chunk I get the following output:
I also get a variable of bounding boxes, with xmin, xmax, etc. This is all fine, but I would like to see the raster with boxes overlaid. When I change the return_plot argument to TRUE, I get the following:
What am I doing wrong here? Why can't I see the plot, but I can get the bounding box extents?