2023-10-20から1日間の記事一覧

eo-learnのProcessing APIを用いてSentinelのeopatchデータをダウンロードする

以下のコードが動いた。 eo-learn.readthedocs.io環境はdockerのsentinelhub/eolearn:latestを用いたeo-learnのバージョンは分からなかった。__version__属性がない?? from eolearn.core import __version__ print(__version__) ImportError: cannot impor…

Pytorchでモデルを読み込んでアーキテクチャをダンプする

import torch import torchvision device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') model=torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True) model.load_state_dict(torch.load("oms_rcnn_weight…