Coder Social home page Coder Social logo

Comments (6)

Borda avatar Borda commented on June 9, 2024 1

Upon installing with pip install lightning-flash in a clean environment, it shows me that pytorch-lightning==2.0.2

most likely this pin adjustment was not yet released, so pls install ut from source for now:
pip install https://github.com/Lightning-Universe/lightning-flash/archive/refs/heads/master.zip

from lightning-flash.

Borda avatar Borda commented on June 9, 2024 1

shall be fixed in https://github.com/Lightning-Universe/lightning-flash/releases/tag/0.8.2

from lightning-flash.

Borda avatar Borda commented on June 9, 2024

@lorinczszabolcs would you be interested in debugging it further and eventually sending a fix? 🦩

from lightning-flash.

lorinczszabolcs avatar lorinczszabolcs commented on June 9, 2024

I retried it now, and now a different error is given:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-2-430f4efffa8e>](https://localhost:8080/#) in <cell line: 1>()
----> 1 import flash
      2 from flash.core.data.utils import download_data
      3 from flash.image import ObjectDetectionData, ObjectDetector
      4 
      5 # 1. Create the DataModule

2 frames
[/usr/local/lib/python3.10/dist-packages/flash/core/data/utils.py](https://localhost:8080/#) in <module>
     20 import requests
     21 import urllib3
---> 22 from pytorch_lightning.utilities.apply_func import apply_to_collection
     23 from torch import nn
     24 from tqdm.auto import tqdm as tq

ModuleNotFoundError: No module named 'pytorch_lightning.utilities.apply_func'

Unfortunately I won't have the time to look into it in detail, but it still seems like it is some package version related issue (possibly caused by pytorch-lightning 2.0.0 (lightning 2.0.0) release.

from lightning-flash.

Borda avatar Borda commented on June 9, 2024

possibly caused by pytorch-lightning 2.0.0 (lightning 2.0.0) release

Flash has pin dependency bellow 2.0

from lightning-flash.

lorinczszabolcs avatar lorinczszabolcs commented on June 9, 2024

Upon installing with pip install lightning-flash in a clean environment, it shows me that pytorch-lightning==2.0.2 gets installed. The following message is shown meanwhile: Collecting pytorch-lightning>=1.3.6 (from lightning-flash), indicating that the pinned dependency is >=1.3.6. even though I can see that is not the case here:

pytorch-lightning >1.6.0, <1.9.0 # strict

Any idea why that's happening?

from lightning-flash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.