Show better errors on captioner
This commit is contained in:
1 parent
8b5bf25b13
commit
abba6b5845
1 file changed
+2
@@ -14,6 +14,7 @@ from toolkit.util.quantize import quantize, get_qtype
|
|||||||
from .BaseCaptioner import BaseCaptioner
|
from .BaseCaptioner import BaseCaptioner
|
||||||
import transformers
|
import transformers
|
||||||
import logging
|
import logging
|
||||||
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
|
|
||||||
@@ -119,4 +120,5 @@ class Qwen3VLCaptioner(BaseCaptioner):
|
|||||||
return output_text[0].strip()
|
return output_text[0].strip()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error processing {file_path}: {e}")
|
print(f"Error processing {file_path}: {e}")
|
||||||
|
traceback.print_exc()
|
||||||
return None
|
return None
|
||||||
Reference in new issue
Block a user