InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

[Bug] tcsloader is None in video finetune

Open tcexeexe opened this issue 1 year ago • 0 comments

Checklist

  • [X] 1. I have searched related issues but cannot get the expected help.
  • [X] 2. The bug has not been fixed in the latest version.
  • [X] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

When I try to finetune video dataset in internVL2, an NoneType error occurred. I find that it is because petrel_client is not in the code.How can I solve it?

tcs_loader = TCSLoader('~/petreloss.conf') if has_tcs_loader else None

try:
    from petrel_client.client import Client
    from petrel_client.common.config import Config
    has_tcs_loader = True
except ImportError as E:
    print('petrel_client is not installed. Using PIL to load images.')
    has_tcs_loader = False

tcexeexe avatar Oct 04 '24 05:10 tcexeexe