import numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport osimport h5py as h5import torch as th
C:\Users\braun\AppData\Local\Temp\ipykernel_15432\3973438280.py:2: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466
import pandas as pd
import gdown# Google Drive file ID from the shareable linkfile_id1 ="1rQZwNN9HC_3uyd3JRpBB2cY10vEYVM2H"# Replace with actual file IDoutput_path2 ="./03_denoising_SrTiO3_High_mag_Low_dose.npy"file_id2 ="12yZqhx6yxLrty9seXL8V5yueQ5YPUr-1"# Replace with actual file IDoutput_path1 ="./03_denoising_SrTiO3_High_mag_High_dose.npy"# Create directory if it doesn't existos.makedirs(os.path.dirname(output_path1), exist_ok=True)os.makedirs(os.path.dirname(output_path2), exist_ok=True)# Download file from Google Driveurl =f'https://drive.google.com/uc?id={file_id1}'gdown.download(url, output_path1, quiet=False)url =f'https://drive.google.com/uc?id={file_id2}'gdown.download(url, output_path2, quiet=False)
Downloading...
From (original): https://drive.google.com/uc?id=1rQZwNN9HC_3uyd3JRpBB2cY10vEYVM2H
From (redirected): https://drive.google.com/uc?id=1rQZwNN9HC_3uyd3JRpBB2cY10vEYVM2H&confirm=t&uuid=e8f4023f-b417-46c9-802c-c595f95fb89b
To: c:\Users\braun\OneDrive\Documents\GitHub\DataScienceForElectronMicroscopy\notebooks\03_denoising_SrTiO3_High_mag_High_dose.npy
100%|██████████| 604M/604M [00:05<00:00, 109MB/s]
Downloading...
From (original): https://drive.google.com/uc?id=12yZqhx6yxLrty9seXL8V5yueQ5YPUr-1
From (redirected): https://drive.google.com/uc?id=12yZqhx6yxLrty9seXL8V5yueQ5YPUr-1&confirm=t&uuid=782a9f65-65cc-4701-a9f9-826b36469454
To: c:\Users\braun\OneDrive\Documents\GitHub\DataScienceForElectronMicroscopy\notebooks\03_denoising_SrTiO3_High_mag_Low_dose.npy
100%|██████████| 604M/604M [00:07<00:00, 81.4MB/s]