-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while trying to import deepforest from deepforest #192
Comments
Thanks for the report. I'll have a look. I don't think any new pushes were
changed in this repo. Most of the active development is happening in pytorch
https://github.com/weecology/DeepForest-pytorch
Github detectbot has been trying to bump to tensorflow 2.0 for months,
maybe someone accidentally merged that.
…On Wed, May 26, 2021 at 9:27 AM Berki20 ***@***.***> wrote:
*Describe the bug*
I have been using DeepForest for the past couple of months and everything
went fine. However, today I tried to open the Google Notebook where I
usually work in but i cant import deepforest from deepforest. The
outputshows the following error: "module
'tensorflow._api.v1.compat.v2.compat' has no attribute 'v1'"
*To Reproduce*
Steps to reproduce the behavior:
!pip install DeepForest
!pip uninstall numpy
!pip install numpy
from deepforest import deepforest
*Expected behavior*
Import the module
*Screenshots*
[image: image]
<https://user-images.githubusercontent.com/84865192/119696723-c616aa00-be4f-11eb-953b-cf57a5e1cb39.png>
*Desktop (please complete the following information):*
- OS: [GoogleColab]
- Browser [chrome]
- Version [90]
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#192>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJHBLBMUUB5ZNWM3CWBSHLTPUONPANCNFSM45SNR4XA>
.
--
Ben Weinstein, Ph.D.
Postdoctoral Fellow
University of Florida
http://benweinstein.weebly.com/
|
It looks like this well upstream of us, @henrykironde do you have time to look around as well. I'm seeing
Keras-resnet has a dependency kapre, which has a tensorflow > 2.0 dependency.It looks like one of keras side libraries, totally unneeded for our work has a tensorflow pinned version. I'm looking for a workaround now.
|
@Berki20 i'm going to talk to upstream repos, but nothing immediately jumps out at me, you would have only minor code changes moving to https://deepforest-pytorch.readthedocs.io/en/latest/. I'd be interested in hearing if you see any performance differences, the release models are within 0.1% on our benchmark. |
@bw4sz hi Ben, thanks for reading the report so fast. I think im going to move to the pytorch version as it installs and runs perfectly in Colab and also because of keras is deprecated and i suppose they are not going to update it any more. I will keep you posted if I see any differences between both versions. |
|
Sure, I see that, I guess I meant what we can do to try to go beyond the requirements of upstream packages. We could fork Keras-resnet, remove the reference to Kapre and place it as a module in the repo. We don’t need its functionality. |
Closing since we've moved over to PyTorch. |
Describe the bug
I have been using DeepForest for the past couple of months and everything went fine. However, today I tried to open the Google Notebook where I usually work in but i cant import deepforest from deepforest. The outputshows the following error: "module 'tensorflow._api.v1.compat.v2.compat' has no attribute 'v1'"
To Reproduce
Steps to reproduce the behavior:
!pip install DeepForest
!pip uninstall numpy
!pip install numpy
from deepforest import deepforest
Expected behavior
Import the module
Screenshots

Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: