weecology / DeepForest-pytorch

Pytorch implementation of the deepforest model for tree crown RGB detection.
MIT License
16 stars 9 forks source link

Update README and docs #8

Open bw4sz opened 3 years ago

bw4sz commented 3 years ago

The README from DeepForest needs to be updated to represent any changes in the API.

Key steps

@dingyif, feel free to ignore any of these contributions, but i'll always add you if interested. My lab has a strong focus on inclusivity and making tools available to a wide audience. I speak English and Spanish, and so did a brief summary of the package at the top. Do you want/is it useful to add a mandarin explanation?

dingyif commented 3 years ago

I think I can add a mandarin explanation for the summary part.

bw4sz commented 3 years ago

if its not useful, don't worry about it. We always try to make these things are available as possible.

On Sat, Feb 6, 2021 at 8:39 AM Dingyi Fang notifications@github.com wrote:

I think I can add a mandarin explanation for the summary part.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/weecology/DeepForest-pytorch/issues/8#issuecomment-774504359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBLARFRAELNUAWLTUFUTS5VWDFANCNFSM4XGLY2ZQ .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

bw4sz commented 3 years ago

Docs were regenerated and being built https://deepforest-pytorch.readthedocs.io/en/latest/

dingyif commented 3 years ago

If it will help this to reach more audience, of course. Not a huge issue for me, I can write it up really quick.

bw4sz commented 3 years ago

first set of docs pass, need to be update for the port

https://deepforest-pytorch.readthedocs.io/en/latest/

bw4sz commented 3 years ago

Updated getting started page.

dingyif commented 3 years ago

Did you start to write the Google Colab tutorial yet? I can work on that one if you haven't started it.

bw4sz commented 3 years ago

nope go for it. Wait like twenty minutes to get the release model. I just finished it. It is virtually identical to the tensorflow. about 80% recall, 64% on the NeonTreeEvaluation benchmark we are publishing https://github.com/weecology/NeonTreeEvaluation [image: image.png]

There is very little left to do in terms of code before 0.2.0 milestone. Need to write a multi-class tutorial and make sure the labels aren't hard-coded in the dataloader. Also need to write a test to make sure the order of labels is the same on save and reload.

On Sun, Mar 14, 2021 at 1:59 PM Dingyi Fang @.***> wrote:

Did you start to write the Google Colab tutorial yet? I can work on that one if you haven't started it.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/weecology/DeepForest-pytorch/issues/8#issuecomment-798978671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBLCU3VHKUJT2GSYTEATTDUPSNANCNFSM4XGLY2ZQ .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

dingyif commented 3 years ago

Great! Glad to hear that!! Can't wait to try it on my dataset.

bw4sz commented 3 years ago

I see some very small extra boxes that need to be filtered. Probably the anchor box generator default sizes are too small. Very minor.

On Sun, Mar 14, 2021 at 2:17 PM Dingyi Fang @.***> wrote:

Great! Glad to hear that!! Can't wait to try it on my dataset.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/weecology/DeepForest-pytorch/issues/8#issuecomment-798981473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBLFH7T2ZAKNYJRF2NWTTDURXJANCNFSM4XGLY2ZQ .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

dwaipayan05 commented 3 years ago

Hello @dingyif @bw4sz If the work of making a Google Colab Tutorial for Training a Model DeepForest-Pytorch requires some contribution. I would like to help in this context. Please point me towards what has to be included in the tutorial, I'll send a PR for the same.

I have gone through the Training Model of DeepForest (keras-retinanet) implementation. They have the following modules -> Design Evaluation Data -> Gather Annotations -> Training Accuracy -> View the Training Plots

Should I make similar modules for the above issue based on the pytorch implementation ?

Thank You !

dingyif commented 3 years ago

I see some very small extra boxes that need to be filtered. Probably the anchor box generator default sizes are too small. Very minor. On Sun, Mar 14, 2021 at 2:17 PM Dingyi Fang @.***> wrote: Great! Glad to hear that!! Can't wait to try it on my dataset. — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#8 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBLFH7T2ZAKNYJRF2NWTTDURXJANCNFSM4XGLY2ZQ . -- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

While I was testing the pip install deepforest-pytorch, I found out the data folder not contains everything we have in the original Github repo, especially the example.csv and the tif files that used to retrain the model. Is there any way we can fix that?

bw4sz commented 3 years ago

I see those files here: https://github.com/weecology/DeepForest-pytorch/tree/master/deepforest/data

Is this happening only when we pip install?

bw4sz commented 3 years ago

Confirmed. Missing after pip install.

(deepforest_pytorch) benweinstein@Bens-MacBook-Pro deepforest % conda create --name test python=3.7
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/benweinstein/opt/miniconda3/envs/test

  added / updated specs:
    - python=3.7

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2021.1.19  |       hecd8cb5_1         118 KB
    openssl-1.1.1j             |       h9ed2024_0         2.2 MB
    pip-21.0.1                 |   py37hecd8cb5_0         1.8 MB
    python-3.7.10              |       h88f2d9e_0        18.2 MB
    sqlite-3.35.1              |       hce871da_0         1.1 MB
    ------------------------------------------------------------
                                           Total:        23.4 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2021.1.19-hecd8cb5_1
  certifi            pkgs/main/osx-64::certifi-2020.12.5-py37hecd8cb5_0
  libcxx             pkgs/main/osx-64::libcxx-10.0.0-1
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.2-h0a44026_1
  openssl            pkgs/main/osx-64::openssl-1.1.1j-h9ed2024_0
  pip                pkgs/main/osx-64::pip-21.0.1-py37hecd8cb5_0
  python             pkgs/main/osx-64::python-3.7.10-h88f2d9e_0
  readline           pkgs/main/osx-64::readline-8.1-h9ed2024_0
  setuptools         pkgs/main/osx-64::setuptools-52.0.0-py37hecd8cb5_0
  sqlite             pkgs/main/osx-64::sqlite-3.35.1-hce871da_0
  tk                 pkgs/main/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3

Proceed ([y]/n)? y

Downloading and Extracting Packages
openssl-1.1.1j       | 2.2 MB    | ############################################################################################################################################################################################################################## | 100%
sqlite-3.35.1        | 1.1 MB    | ############################################################################################################################################################################################################################## | 100%
ca-certificates-2021 | 118 KB    | ############################################################################################################################################################################################################################## | 100%
python-3.7.10        | 18.2 MB   | ############################################################################################################################################################################################################################## | 100%
pip-21.0.1           | 1.8 MB    | ############################################################################################################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate test
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(deepforest_pytorch) benweinstein@Bens-MacBook-Pro deepforest % conda activate test
(test) benweinstein@Bens-MacBook-Pro deepforest % pip install deepforest-pytorch
Collecting deepforest-pytorch
  Downloading deepforest_pytorch-0.1.20-py3-none-any.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 6.2 MB/s
Collecting scipy>1.5
  Downloading scipy-1.6.1-cp38-cp38-macosx_10_9_x86_64.whl (30.8 MB)
     |████████████████████████████████| 30.8 MB 155 kB/s
Collecting slidingwindow
  Using cached slidingwindow-0.0.14-py3-none-any.whl (9.0 kB)
Collecting scikit-image
  Using cached scikit_image-0.18.1-cp38-cp38-macosx_10_9_x86_64.whl (12.7 MB)
Requirement already satisfied: tqdm in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from deepforest-pytorch) (4.51.0)
Collecting torch
  Downloading torch-1.8.0-cp38-none-macosx_10_9_x86_64.whl (119.6 MB)
     |████████████████████████████████| 119.6 MB 21.1 MB/s
Collecting pytorch-lightning
  Downloading pytorch_lightning-1.2.4-py3-none-any.whl (829 kB)
     |████████████████████████████████| 829 kB 11.2 MB/s
Collecting xmltodict
  Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Requirement already satisfied: pandas in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from deepforest-pytorch) (1.2.2)
Collecting torchvision
  Downloading torchvision-0.9.0-cp38-cp38-macosx_10_9_x86_64.whl (13.2 MB)
     |████████████████████████████████| 13.2 MB 15.9 MB/s
Requirement already satisfied: numpy in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from deepforest-pytorch) (1.19.5)
Requirement already satisfied: six in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from deepforest-pytorch) (1.15.0)
Collecting matplotlib
  Downloading matplotlib-3.3.4-cp38-cp38-macosx_10_9_x86_64.whl (8.5 MB)
     |████████████████████████████████| 8.5 MB 15.0 MB/s
Collecting geopandas
  Downloading geopandas-0.9.0-py2.py3-none-any.whl (994 kB)
     |████████████████████████████████| 994 kB 19.8 MB/s
Collecting progressbar2
  Using cached progressbar2-3.53.1-py2.py3-none-any.whl (25 kB)
Collecting rtree
  Using cached Rtree-0.9.7-cp38-cp38-macosx_10_15_x86_64.whl (426 kB)
Collecting rasterio
  Downloading rasterio-1.2.1-cp38-cp38-macosx_10_9_x86_64.whl (20.5 MB)
     |████████████████████████████████| 20.5 MB 12.5 MB/s
Collecting Pillow>6.2.0
  Downloading Pillow-8.1.2-cp38-cp38-macosx_10_10_x86_64.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 14.7 MB/s
Collecting psutil
  Using cached psutil-5.8.0-cp38-cp38-macosx_10_9_x86_64.whl (236 kB)
Collecting imageio>=2.3.0
  Using cached imageio-2.9.0-py3-none-any.whl (3.3 MB)
Collecting tifffile>=2019.7.26
  Downloading tifffile-2021.3.16-py3-none-any.whl (164 kB)
     |████████████████████████████████| 164 kB 11.3 MB/s
Collecting networkx>=2.0
  Using cached networkx-2.5-py3-none-any.whl (1.6 MB)
Collecting PyWavelets>=1.1.1
  Using cached PyWavelets-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl (4.3 MB)
Collecting typing-extensions
  Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Processing /Users/benweinstein/Library/Caches/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c/PyYAML-5.3.1-cp38-cp38-macosx_10_9_x86_64.whl
Collecting tensorboard>=2.2.0
  Using cached tensorboard-2.4.1-py3-none-any.whl (10.6 MB)
Collecting future>=0.17.1
  Using cached future-0.18.2.tar.gz (829 kB)
Collecting fsspec[http]>=0.8.1
  Downloading fsspec-0.8.7-py3-none-any.whl (103 kB)
     |████████████████████████████████| 103 kB 15.2 MB/s
Requirement already satisfied: python-dateutil>=2.7.3 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from pandas->deepforest-pytorch) (2.8.1)
Requirement already satisfied: pytz>=2017.3 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from pandas->deepforest-pytorch) (2021.1)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.3.1-cp38-cp38-macosx_10_9_x86_64.whl (61 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting cycler>=0.10
  Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Requirement already satisfied: shapely>=1.6 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from geopandas->deepforest-pytorch) (1.7.1)
Requirement already satisfied: fiona>=1.8 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from geopandas->deepforest-pytorch) (1.8.18)
Requirement already satisfied: pyproj>=2.2.0 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from geopandas->deepforest-pytorch) (3.0.0.post1)
Collecting python-utils>=2.3.0
  Using cached python_utils-2.5.6-py2.py3-none-any.whl (12 kB)
Requirement already satisfied: click<8,>=4.0 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from rasterio->deepforest-pytorch) (7.1.2)
Collecting snuggs>=1.4.1
  Using cached snuggs-1.4.7-py3-none-any.whl (5.4 kB)
Requirement already satisfied: click-plugins in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from rasterio->deepforest-pytorch) (1.1.1)
Requirement already satisfied: certifi in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from rasterio->deepforest-pytorch) (2020.6.20)
Requirement already satisfied: attrs in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from rasterio->deepforest-pytorch) (20.3.0)
Requirement already satisfied: cligj>=0.5 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from rasterio->deepforest-pytorch) (0.7.1)
Collecting affine
  Using cached affine-2.3.0-py2.py3-none-any.whl (15 kB)
Collecting decorator>=4.3.0
  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Requirement already satisfied: setuptools>=41.0.0 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (50.3.1.post20201107)
Collecting google-auth-oauthlib<0.5,>=0.4.1
  Downloading google_auth_oauthlib-0.4.3-py2.py3-none-any.whl (18 kB)
Collecting absl-py>=0.4
  Downloading absl_py-0.12.0-py3-none-any.whl (129 kB)
     |████████████████████████████████| 129 kB 14.8 MB/s
Collecting tensorboard-plugin-wit>=1.6.0
  Using cached tensorboard_plugin_wit-1.8.0-py3-none-any.whl (781 kB)
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting protobuf>=3.6.0
  Downloading protobuf-3.15.6-cp38-cp38-macosx_10_9_x86_64.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 13.2 MB/s
Requirement already satisfied: wheel>=0.26; python_version >= "3" in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (0.35.1)
Collecting markdown>=2.6.8
  Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 9.8 MB/s
Collecting google-auth<2,>=1.6.3
  Downloading google_auth-1.28.0-py2.py3-none-any.whl (136 kB)
     |████████████████████████████████| 136 kB 9.6 MB/s
Collecting grpcio>=1.24.3
  Downloading grpcio-1.36.1-cp38-cp38-macosx_10_10_x86_64.whl (3.8 MB)
     |████████████████████████████████| 3.8 MB 16.5 MB/s
Requirement already satisfied: requests<3,>=2.21.0 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (2.24.0)
Collecting aiohttp; extra == "http"
  Downloading aiohttp-3.7.4.post0-cp38-cp38-macosx_10_14_x86_64.whl (648 kB)
     |████████████████████████████████| 648 kB 14.6 MB/s
Requirement already satisfied: munch in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from fiona>=1.8->geopandas->deepforest-pytorch) (2.5.0)
Collecting requests-oauthlib>=0.7.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting rsa<5,>=3.1.4; python_version >= "3.6"
  Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting cachetools<5.0,>=2.0.0
  Using cached cachetools-4.2.1-py3-none-any.whl (12 kB)
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Requirement already satisfied: idna<3,>=2.5 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (2.10)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (1.25.11)
Requirement already satisfied: chardet<4,>=3.0.2 in /Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages (from requests<3,>=2.21.0->tensorboard>=2.2.0->pytorch-lightning->deepforest-pytorch) (3.0.4)
Collecting async-timeout<4.0,>=3.0
  Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.6.3-cp38-cp38-macosx_10_14_x86_64.whl (124 kB)
     |████████████████████████████████| 124 kB 16.3 MB/s
Collecting multidict<7.0,>=4.5
  Downloading multidict-5.1.0-cp38-cp38-macosx_10_14_x86_64.whl (49 kB)
     |████████████████████████████████| 49 kB 11.6 MB/s
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting pyasn1>=0.1.3
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Building wheels for collected packages: future
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=e8826764ec7039b6584ab8df11e5ee2981cdb68c6e9ace5ac847e3ab74706838
  Stored in directory: /Users/benweinstein/Library/Caches/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built future
Installing collected packages: scipy, psutil, slidingwindow, kiwisolver, Pillow, pyparsing, cycler, matplotlib, imageio, tifffile, decorator, networkx, PyWavelets, scikit-image, typing-extensions, torch, PyYAML, pyasn1, rsa, cachetools, pyasn1-modules, google-auth, oauthlib, requests-oauthlib, google-auth-oauthlib, absl-py, tensorboard-plugin-wit, werkzeug, protobuf, markdown, grpcio, tensorboard, future, async-timeout, multidict, yarl, aiohttp, fsspec, pytorch-lightning, xmltodict, torchvision, geopandas, python-utils, progressbar2, rtree, snuggs, affine, rasterio, deepforest-pytorch
Successfully installed Pillow-8.1.2 PyWavelets-1.1.1 PyYAML-5.3.1 absl-py-0.12.0 affine-2.3.0 aiohttp-3.7.4.post0 async-timeout-3.0.1 cachetools-4.2.1 cycler-0.10.0 decorator-4.4.2 deepforest-pytorch-0.1.20 fsspec-0.8.7 future-0.18.2 geopandas-0.9.0 google-auth-1.28.0 google-auth-oauthlib-0.4.3 grpcio-1.36.1 imageio-2.9.0 kiwisolver-1.3.1 markdown-3.3.4 matplotlib-3.3.4 multidict-5.1.0 networkx-2.5 oauthlib-3.1.0 progressbar2-3.53.1 protobuf-3.15.6 psutil-5.8.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pyparsing-2.4.7 python-utils-2.5.6 pytorch-lightning-1.2.4 rasterio-1.2.1 requests-oauthlib-1.3.0 rsa-4.7.2 rtree-0.9.7 scikit-image-0.18.1 scipy-1.6.1 slidingwindow-0.0.14 snuggs-1.4.7 tensorboard-2.4.1 tensorboard-plugin-wit-1.8.0 tifffile-2021.3.16 torch-1.8.0 torchvision-0.9.0 typing-extensions-3.7.4.3 werkzeug-1.0.1 xmltodict-0.12.0 yarl-1.6.3
(test) benweinstein@Bens-MacBook-Pro deepforest % vf ~
zsh: command not found: vf
(test) benweinstein@Bens-MacBook-Pro deepforest % cd ~
(test) benweinstein@Bens-MacBook-Pro ~ % python
Python 3.8.5 (default, Sep  4 2020, 02:22:02)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from deepforest import get_data
>>> get_data("example.csv")
'/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/deepforest/data/example.csv'
>>> csv_file = get_data("example.csv")
>>> import pandas as pf

>>>
>>> import pandas as pd
>>> pd.read_csv(csv_file)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 610, in read_csv
    return _read(filepath_or_buffer, kwds)
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 462, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 819, in __init__
    self._engine = self._make_engine(self.engine)
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 1050, in _make_engine
    return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 1867, in __init__
    self._open_handles(src, kwds)
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/parsers.py", line 1362, in _open_handles
    self.handles = get_handle(
  File "/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/pandas/io/common.py", line 642, in get_handle
    handle = open(
FileNotFoundError: [Errno 2] No such file or directory: '/Users/benweinstein/opt/miniconda3/lib/python3.8/site-packages/deepforest/data/example.csv'
>>> csv_file = get_data("e.csv")
bw4sz commented 3 years ago

Its funny its only example.csv that is missing. Here is the contents of the pip install data folder.

Screen Shot 2021-03-17 at 9 31 45 AM
bw4sz commented 3 years ago

@dingyif good catch, this is actually a bug from the original repo, I just fixed it in both. Example.csv was missing from the manifest.in. I pushed a new version to pypi, if all other tests pass it will push. As a workaround till then you can download it from the repo.

dingyif commented 3 years ago

Great! That's what I'm doing right now but I think it will be useful for the users to replicate the tutorial result before implementing their datasets. Thanks for the update!

bw4sz commented 3 years ago

Add colab link to the front readme. I still need to add it to the readthedocs. @henrykironde can you confirm that if you click on this link the permissions are set right for you to see it.

https://colab.research.google.com/drive/1AJUcw5dEpXeDPHd0sotAz5lpWedFYSIL?usp=sharing

Thanks @dingyif! I'll make one for the benchmark score and prediction.

dwaipayan05 commented 3 years ago

Confirmation from @dwaipayan05 Colab Link is Working Permissions are Set Right

henrykironde commented 3 years ago

Looking at this now

henrykironde commented 3 years ago

LGTM, works like a charm .