<jupyter_start><jupyter_text>SetupPlease make sure to download the DomainNet Dataset into directory And also download the pre-calculated features from our model from https://drive.google.com/drive/folders/1OvowfDCNCxPCAgaOi0nVDEpiB3AF2Uut?usp=sharing into  directory<jupyter_code>%load_ext autoreload
%autoreload 2
import os
from utils.jupyter import demo

data_root = '<DATA_ROOT>/DomainNet' #TODO: change the paths to the local path of the DomainNet Dataset
feat_dir = '<demo_features>' #TODO: change the paths to the pre-calculated features

search_domains = {'real': os.path.join(feat_dir, f'src_real.pkl'),
               'painting': os.path.join(feat_dir, f'src_painting.pkl'),
               'clipart': os.path.join(feat_dir, f'src_clipart.pkl'),
               'sketch': os.path.join(feat_dir, f'src_sketch.pkl')}
query_domains = {'real': os.path.join(feat_dir, f'dst_real.pkl'),
               'painting': os.path.join(feat_dir, f'dst_painting.pkl'),
               'clipart': os.path.join(feat_dir, f'dst_clipart.pkl'),
               'sketch': os.path.join(feat_dir, f'dst_sketch.pkl')}<jupyter_output>The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload<jupyter_text>Demo<jupyter_code>demo(query_domains, search_domains, data_root)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11773700305810397, 'fraction_numerical': 0.00382262996941896, 'mean_word_length': 4.691304347826087, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '487905', 'license': 'Apache-2.0', 'n_tokens_mistral': 479, 'n_tokens_neox': 457, 'n_words': 95, 'path': 'demo.ipynb', 'repo_name': 'leokarlin/BrAD', 'size': '1308'}