pytorch-lightning Questions

4

Solved

Logger in PyTorch-Lightning prints information about the model to be trained (or evaluated) and the progress during the training, However, in my case I would like to hide all messages from the logg...
Revisory asked 16/8, 2021 at 18:52

8

I have done the following: !pip install pytorch_lightning -qqq import pytorch_lightning But get the following error: ImportError Traceback (most recent call last) <ipython-input-7-d883b15aac58&...
Subhuman asked 8/3, 2021 at 22:53

6

I am using VQGAN+CLIP_(Zooming)_(z+quantize_method_with_addons).ipynb Google Repository and when I click the cell "Loading of libraries and definitions" It sent an error : ImportError Tra...

4

Solved

The official doc only states >>> from pytorch_lightning.metrics import ConfusionMatrix >>> target = torch.tensor([1, 1, 0, 0]) >>> preds = torch.tensor([0, 1, 0, 0]) >...
Enceladus asked 29/12, 2020 at 21:6

3

im trying to temporal fusion transformer from pytorch_forecasting module but im getting the error in trainer.fit method:model must be a LightningModule or torch._dynamo.OptimizedModule, got Tempora...
Ramer asked 13/4, 2023 at 7:51

3

Solved

How can the trainer.test method be used to get total accuracy over all batches? I know I can implement model.test_step but that is for a single batch only. I need the accuracy over the whole data s...
Adhere asked 1/8, 2022 at 10:38

4

Solved

I want to use an RNN with bilstm layers using pytorch on protein embeddings. It worked with Linear Layer but when i use Bilstm i have a Runtime error. Sorry if its not clear its my first publicatio...
Greenheart asked 12/7, 2021 at 16:46

2

Solved

I'm wanting to continue the training process for a model using new data. I understand that you can continue training a Pytorch Lightning model e.g. pl.Trainer(max_epochs=10, resume_from_checkpoint=...
Weixel asked 21/4, 2022 at 22:11

5

Solved

When I launch my main script on the cluster with ddp mode (2 GPU's), Pytorch Lightning duplicates whatever is executed in the main script, e.g. prints or other logic. I need some extended training ...
Fusil asked 18/2, 2021 at 14:13

3

I am using the emnist data set via the PyTorch datasets together with a neural network that expects a 3 Channel input. I would like to use PyTorch transforms to copy my 1D greyscale into 3D so I ca...
Endue asked 21/4, 2022 at 15:48

2

Solved

I am trying to specify a dynamic amount of layers, which I seem to be doing wrong. My issue is that when I define the 100 layers here, I will get an error in the forward step. But when I define the...
Huntsville asked 16/7, 2020 at 14:49

2

Solved

I have an existing model where I load some pre-trained weights and then do prediction (one image at a time) in pytorch. I am trying to basically convert it to a pytorch lightning module and am conf...
Jilleen asked 2/5, 2020 at 22:4

4

I am trying to execute a python file which has pytorch with lightning and torchvision modules. But after I downloaded and successfully installed whl file of pytorch in pi3 I am getting same error a...
Ganof asked 25/3, 2021 at 20:22

2

Solved

I have a generator that creates synthetic data. How can I convert this into a PyTorch dataloader?
Khanate asked 3/8, 2022 at 21:44

1

what is the standard way to detect if a model has converged? I was going to record 5 losses with 95 confidence intervals each loss and if they all agreed then I’d halt the script. I assume training...

1

Solved

In tensorflow keras, when I'm training a model, at each epoch it print the accuracy and the loss, I want to do the same thing using pythorch lightning. I already create my module but I don't know h...
Violaviolable asked 23/2, 2022 at 11:48

1

Solved

I have a map-stype dataset, which is used for instance segmentation tasks. The dataset is very imbalanced, in the sense that some images have only 10 objects while others have up to 1200. How can I...

2

Solved

With PyTorch Tensorboard I can log my train and valid loss in a single Tensorboard graph like this: writer = torch.utils.tensorboard.SummaryWriter() for i in range(1, 100): writer.add_scalars('lo...
Catechin asked 20/2, 2021 at 1:27

1

Solved

I have trained a PyTorch lightning model that looks like this: In [16]: MLP Out[16]: DecoderMLP( (loss): RMSE() (logging_metrics): ModuleList( (0): SMAPE() (1): MAE() (2): RMSE() (3): MAPE() ...
Stillbirth asked 8/2, 2022 at 19:30

1

When creating a new tensorboard logger in pytorch lightning, the two things that are logged by default are the current epoch and the hp_metric. I was able to disable the hp_metric logging by settin...
Satterlee asked 1/12, 2021 at 11:9

1

Is there any way I can execute validation_step method on single GPU while training_step with multiple GPU using DDP. The reason I want to do is because there are several metrics which I want to imp...
Waterish asked 25/11, 2020 at 23:14

1

I wanted to report 90, 95, 99, etc. confidence intervals on my data using PyTorch. But confidence intervals seems too important to leave my implementation untested or criticized so I wanted feedbac...
Director asked 14/12, 2021 at 23:51

2

Solved

I want to extract all data to make the plot, not with tensorboard. My understanding is all log with loss and accuracy is stored in a defined directory since tensorboard draw the line graph. %reload...
Drumm asked 22/9, 2021 at 0:44

4

Solved

This is potentially a very easy question. I just started with PyTorch lightning and can't figure out how to receive the output of my model after training. I am interested in both predictions of y_t...
Claudiaclaudian asked 20/1, 2021 at 10:24

0

I am using JupyterLab on AWS SageMaker. Kernel: conda_pytorch_latest_p36. I have successfully performed training. Now, I attempt to set up the model for predictions, i.e. testing. I suspect last.ck...

© 2022 - 2024 — McMap. All rights reserved.