Skip to content

Regina#13

Open
ZimaCode007 wants to merge 30 commits into
vis-nlp:mainfrom
ZimaCode007:Regina
Open

Regina#13
ZimaCode007 wants to merge 30 commits into
vis-nlp:mainfrom
ZimaCode007:Regina

Conversation

@ZimaCode007

Copy link
Copy Markdown

No description provided.

ZimaCode007 and others added 29 commits June 22, 2026 13:59
…scripts

- Fix ViTFeatureExtractor -> ViTImageProcessor
- Fix init_weights() -> post_init() for new PreTrainedModel API
- Add @DataClass to ModelOutput subclasses
- Replace torch_scatter with pure PyTorch scatter implementation
- Add _split_thousands() for number parsing
- Fix evaluation_strategy -> eval_strategy
- Fix file encoding issues (UTF-8)
- Add data conversion scripts (prepare_data.py, prepare_qa_data.py)
- Add classification training script (run_training.py)
- Add QA training script with two-phase training (run_qa_training.py)
- Add converted data and fixed vocabulary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix tokenizer for transformers 5.x (VLT5TokenizerFast)
- Fix modeling_t5/bart: T5Stack API, past_key_values, init_weights
- Fix trainer_base: remove wandb import, use torch AdamW
- Fix vqa_data: Windows path separators, enable topk, fix regex
- Fix dist_utils: deprecated torch.ByteStorage
- Add train.py: single-GPU Windows launcher
- Add prepare_data.py: build data.csv from ChartQA dataset
- Add extract_features.py: ResNet50 grid visual features
- Add plot_metrics.py: training curve visualization
- Add predict_single.py: single image inference
- Add .gitignore for large files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add run_qa_training.py with two-phase training (frozen -> unfreeze top layers)
- Add demo.py for evaluation (H/M split) and visualization
- Add prepare_qa_data.py for ChartQA to QA format conversion
- Fix LxmertXLayer import for transformers 4.51+
- Fix pandas 2.x Arrow backend compatibility in dataset loaders
- Fix numeric match logic (2 vs 2.0 now counts as exact match)
- Add demo_output/ to .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add train_local.py for single-GPU T5 fine-tuning on ChartQA
- Add demo.py for model evaluation and visualization
- Fix modeling_bart.py: provide _make_causal_mask and _expand_mask removed in new transformers
- Fix tokenization.py: init sp_model before PreTrainedTokenizer.__init__
- Fix trainer_base.py: use torch.optim.AdamW instead of removed transformers.AdamW
- Add .gitignore for model weights, outputs, and caches

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- train_v4.py: standalone training script for redesigned dataset
- demo.py: evaluate and visualize predictions on test set
- output_v4/metrics.json: training history (44.32% val, 45.64% test)
- output_v4/tb_logs: TensorBoard logs
- .pth model files excluded (too large for GitHub)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- train_local.py: single-GPU T5 fine-tuning on ChartQA (text-only)
- preprocess.py: flatten table CSVs into Input column for T5 training
- demo.py: evaluate model on ChartQA test set with accuracy stats and visualizations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Point run_qa_training.py to datasets/ folder
- Update demo.py to use datasets/test/ with H/M split via ChartQA originals
- Add fixed_vocab.pkl for datasets
- Results: ChartQA-H 15.50%, ChartQA-M 71.50%, Overall 43.50% (relaxed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts:
#	Models/VL-T5/demo.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants