You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using distributed or parallel set-up in script?: No
Who can help?
I have not tested the TensorFlow version, only the PyTorch version.
So far, I have identified:
Missing pip install accelerate
Missing imports:
torch
torch.nn as nn
numpy as np
train_ds[0] will not display the image, you need to access the ['image'] within the dictionary structure.
ds[0]["image"] will run into an error. ds was overridden and will require you to call ds['test'][0]["image"] if you're looking for the test set, and ds['train'][0]["image"] if you wanted the training set.
train_transforms and val_transforms convert the ds images into pixel values. When trying to access image = ds[0]["image"] later on, it throws a KeyError since the images have been converted already.
ade_palette() is not defined. It's in the TensorFlow models library in a file called get_dataset_colormap, but I was unable to import it.
The trainer class requires an extra two parameters tokenizer and data_collator to generate the preprocesing_config.json file.
Upon reaching the cell that begins with training_args = TrainingArguments(, you will receive an import error:
`ImportError: Using the `Trainer` with `PyTorch` requires `accelerate>=0.21.0`: Please run `pipinstalltransformers[torch]` or `pipinstallaccelerate-U`
Under the inference section that reads image = ds[0]["image"], you will receive a KeyError due to ds being overwritten earlier, and the train_transforms and val_transforms functions converting the images to pixel values.
The very last cell attempts to call the ade_palette() function, which is not defined.
Expected behavior
Upon reaching the cell that reads train_ds[0], the output should be a viewable image. Fixable by changing to train_ds[0]['image']
Upon reaching the cell that begins with training_args = TrainingArguments(, the model should start its training process without issue. Should be resolved by the issue and PR mentioned earlier.
Calling image = ds[0]["image"] should display an image. I think it's easier to just reload the dataset, since converting the pixel values back into an image would take a lot of work.
The ade_palette() function should be imported properly or defined at some point. I'm not sure if this is an issue for everyone else, but I can't seem to import it via TensorFlow.
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.38.1Who can help?
I have not tested the TensorFlow version, only the PyTorch version.
So far, I have identified:
train_ds[0]
will not display the image, you need to access the ['image'] within the dictionary structure.ds[0]["image"]
will run into an error. ds was overridden and will require you to callds['test'][0]["image"]
if you're looking for the test set, andds['train'][0]["image"]
if you wanted the training set.train_transforms
andval_transforms
convert the ds images into pixel values. When trying to accessimage = ds[0]["image"]
later on, it throws a KeyError since the images have been converted already.ade_palette()
is not defined. It's in the TensorFlow models library in a file called get_dataset_colormap, but I was unable to import it.tokenizer
anddata_collator
to generate the preprocesing_config.json file.Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
train_ds[0]
, the output will betraining_args = TrainingArguments(
, you will receive an import error:image = ds[0]["image"]
, you will receive a KeyError due to ds being overwritten earlier, and thetrain_transforms
andval_transforms
functions converting the images to pixel values.ade_palette()
function, which is not defined.Expected behavior
Upon reaching the cell that reads
train_ds[0]
, the output should be a viewable image. Fixable by changing totrain_ds[0]['image']
Upon reaching the cell that begins with
training_args = TrainingArguments(
, the model should start its training process without issue. Should be resolved by the issue and PR mentioned earlier.Calling
image = ds[0]["image"]
should display an image. I think it's easier to just reload the dataset, since converting the pixel values back into an image would take a lot of work.The
ade_palette()
function should be imported properly or defined at some point. I'm not sure if this is an issue for everyone else, but I can't seem to import it via TensorFlow.The text was updated successfully, but these errors were encountered: