<jupyter_start><jupyter_text><jupyter_code>!pip install torch==1.7.1 torchvision==0.8.2 ninja
import torch
 
torch.cuda.get_device_name(device=None)
from google.colab import drive
drive.mount('/content/drive',force_remount=True)
# clone sg2
!git clone https://github.com/maschere/stylegan2-ada-pytorch.git
%cd stylegan2-ada-pytorch/
# download dataset for fine tuning
!python dataset_tool.py --source=path to images --dest=images.zip --channels=4 --width=1024 --height=1024
!python train.py --outdir="/content/drive/MyDrive/Colab Notebooks/run_data" --data=images.zip --mirror=1 --cfg="11gb-gpu" --augpipe=bg --snap=11 --kimg=1000 --workers=2 --cond=0 --nobench=True --metrics=none --resume="ffhq.pkl"<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16415868673050615, 'fraction_numerical': 0.03967168262653899, 'mean_word_length': 5.151260504201681, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '138456', 'license': 'BSD-Source-Code', 'n_tokens_mistral': 283, 'n_tokens_neox': 270, 'n_words': 49, 'path': 'Kopie_von_MS_StyleGAN2_ada_pytorch.ipynb', 'repo_name': 'maschere/stylegan2-ada-pytorch', 'size': '731'}