Comments (5)
problems solved in #24 (comment)
from transformers-tutorials.
same error when running this link
from transformers-tutorials.
It seems like the PR fixed the problem in most cases, but when the data is a list of lists (and not a np array), pyarrow is still incapable of dealing with it as is. A quick and ugly fix for the moment can be to cast the lists as a np array.
Ugly fix (waiting for a better option). Change datasets/arrow_writer.py
as such:
try:
if isinstance(type, _ArrayXDExtensionType):
self.data = np.array(self.data) # Here is the line to add
if isinstance(self.data, np.ndarray):
storage = numpy_to_pyarrow_listarray(self.data, type=type.value_type)
else:
storage = pa.array(self.data, type.storage_dtype)
out = pa.ExtensionArray.from_storage(type, storage)
from transformers-tutorials.
See #36
from transformers-tutorials.
The issue linked above should solve your problem. Therefore, closing this issue.
from transformers-tutorials.
Related Issues (20)
- Donut fine tuning using Huggingface accelerate
- UDOP Document Generation & Editing HOT 2
- fine-tune the model
- UDOP FUNSD , not able to perform Inference HOT 2
- LayoutLM prediction with confidence score? HOT 1
- Table transformer crop issue
- UDOP - How to change UdopToknizer to another tokenizer that supports CJK languages? HOT 1
- How can we Fine Tune Pix2StruCt for DocVQA task?
- UDOP - Is it possible to get several bboxes from one single input ?
- [Bug] Owlv2 Zero-shot object detection
- True Inference with Layoutlmv3 HOT 2
- Huge negative loss while fine-tuning SAM HOT 2
- Grounding Dino - Multiple Class HOT 3
- Fine tune TrOCR on IAM Handwriting Database using Seq2SeqTrainer HOT 13
- [Finetuning OneFormer] How to use multiple GPUs
- can't login to push hub model
- Mask2Former panoptic fine-tune HOT 3
- SAM Instance segmentation Finetuning output mask with instance lablel
- Table transformer demo not handling empty cells
- "Unused or unrecognized kwargs: padding" error when running notebook example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers-tutorials.