refer to this page for more detail
: https://www.tensorflow.org/tfx/data_validation/get_started
..
..
Thank you.
refer to this page for more detail
: https://www.tensorflow.org/tfx/data_validation/get_started
..
..
Thank you.
Measure processing time
..
..
Thank you.
www.marearts.com
Converting float to avoid error, refer to code:
..
..
Another solution is:
..
..
But in this case, json is saved as string.
Thank you.
www.marearts.com
refer to mosaic function
..
..
Ex) result
Thank you.
www.marearts.com
refer to code:
..
..
Thank you.
www.marearts.com
refer to code:
..
..
Thank you
www.marearts.com
refer to code
..
..
> example output
{'batch_size': 1000, 'data_path': ['../npy/x_train_coin_eth.npy', '../npy/y_train_coin_eth.npy', '../npy/x_val_coin_eth.npy', '../npy/y_val_coin_eth.npy', '../npy/x_test_coin_eth.npy', '../npy/y_test_coin_eth.npy'], 'encoder_hidden_dims': [4, 2], 'input_dim': 5, 'input_seq': 128, 'learning_rate': 0.0001, 'num_LSTM': 2, 'num_layers': 1} <class 'dict'>
Thank you.
I tired to save sub model in seq-to-seq model which is encoder part.
What I used for save and load is like follow code and I failed with error like title.
* Failed case
..
..
* error message
..
My solution is to use 'state_dict()' to save model.
Refer to bellow code which was solution for me.
..
..
Thank you.
www.marearts.com
refer to code.
sample point is 100,100
firstly, I rotated image as 90 degree and point.
And compare origin image & pt where rotated point is placed in right position.
..
..
Thank you.
www.marearts.com
Code
...
...
Test class and show summary
..
..
output
..
Refer to my ugly drawing
Thank you.
www.marearts.com
refer to code:
..
..
Thank you.
www.marearts.com
Refer to code
..
..
>>
input :torch.Size([100, 140, 5]), repeat:torch.Size([100, 140, 5]) input :torch.Size([100, 140, 5]), repeat:torch.Size([100, 1400, 5]) input :torch.Size([100, 140, 5]), repeat:torch.Size([100, 140, 50]) input :torch.Size([100, 140, 5]), repeat:torch.Size([1000, 140, 5])
Thank you.
www.marearts.com
ex1)
..
ex2)
..
print module list
>
ModuleList( (0): Linear(in_features=10, out_features=10, bias=True) (1): Linear(in_features=10, out_features=10, bias=True) (2): Linear(in_features=10, out_features=10, bias=True) (3): Linear(in_features=10, out_features=10, bias=True) (4): Linear(in_features=10, out_features=10, bias=True) (5): Linear(in_features=10, out_features=10, bias=True) (6): Linear(in_features=10, out_features=10, bias=True) (7): Linear(in_features=10, out_features=10, bias=True) (8): Linear(in_features=10, out_features=10, bias=True) (9): Linear(in_features=10, out_features=10, bias=True) )
Try #1
..
Try #2
..
Thank you.
Use "save_dir", "name", "version" params in pl_loggers function.
more detail : https://pytorch-lightning.readthedocs.io/en/stable/extensions/generated/pytorch_lightning.loggers.TensorBoardLogger.html
..
..
And you can retrieve what is my logging path by:
tb_logger.log_dir or self.logger.log_dir (in class)
> logs/no_default/my_version_2
Thank you.
www.marearts.com
๐๐ป♂️
refer to sample code
..
..
Thank you.
www.marearts.com
Simply install package through pip
..
..
Thank you.
set trainer like this: