Comments (6)
I keep getting this bug. Is the training expecting already converted tensor data?
from vila.
this will train for a moment up to 13% then throws these errors
from vila.
Can u attach a full log here?
from vila.
Traceback (most recent call last):
File "/home/user/.lib/.lib/VILA/llava/train/train_mem.py", line 36, in <module>
train()
File "/home/user/.lib/.lib/VILA/llava/train/train.py", line 436, in train
trainer.train(resume_from_checkpoint=resume_from_checkpoint)
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 1537, in train
return inner_training_loop(
File "/usr/local/lib/python3.10/dist-packages/transformers/trainer.py", line 1821, in _inner_training_loop
for step, inputs in enumerate(epoch_iterator):
File "/usr/local/lib/python3.10/dist-packages/accelerate/data_loader.py", line 452, in __iter__
current_batch = next(dataloader_iter)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 633, in __next__
data = self._next_data()
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 1345, in _next_data
return self._process_data(data)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "/usr/local/lib/python3.10/dist-packages/torch/_utils.py", line 644, in reraise
raise exception
AttributeError: Caught AttributeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py", line 51, in <listcomp>
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataset.py", line 243, in __getitem__
return self.datasets[dataset_idx][sample_idx]
File "/home/swarms/.lib/.lib/VILA/llava/data/dataset.py", line 837, in __getitem__
if len(image.shape) == 4:
AttributeError: 'Image' object has no attribute 'shape'
I'm able to push it along further by adding logic to just convert this to tensor but ultimately this just leads to more issues further on in the training.
from vila.
my suggestion would be
- disable the training logic and simpley iterate through the dataset
- check every data and make sure the return value if tensor
This looks like some of your images are grayscale or corrupted.
from vila.
Will this work work with other tools such as xtuner I cannot for the life of me figure this out
from vila.
Related Issues (20)
- How to convert model to gguf HOT 3
- Deployment to SageMaker and/or HuggingFace Inference Endpoints Fails With Error HOT 5
- Whether the visual encoder participates in training HOT 1
- Support for multi-video captioning with multiple grid image inputs? HOT 1
- Multi-Image or Multi-Video Inference Example HOT 2
- question: what does 'repack_multimodal_data' function do? HOT 1
- release schedule for the "VILA1.5-34b-4bit-AWQ" model. HOT 1
- Is there any way to increase the context window? HOT 4
- Question re. LanguageModel vs LanguageModelForCausalLM functionalies HOT 2
- Llama2 or Llama3
- What is the conv_mode for VILA-1.5-3B ? HOT 1
- Support VILA with lmdeploy
- Image text retrieval support
- COYO-700M Dataset Download Script Error
- Issue with Flash Attention on V100 GPU for Llama-3-VILA1.5-8B Model HOT 3
- [Help] Using VILA1.5-40b model for Video Descriptions
- [HELP] Do we have any docker image for Jetson platform ?
- No training scripts in scripts/v1_5/paper/
- About sharegpt_video. How do you make video file from jpeg images?
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 vila.