fondress commited on
Commit
ef955b8
·
verified ·
1 Parent(s): ac55061

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -61,6 +61,10 @@ target_length = 33 # Target length for sequence padding
61
  mode = "BPS" # Mode setting (only configured in example.py)
62
  esm_ratio = 1 # Ratio for ESM embeddings
63
 
 
 
 
 
64
  # Initialize the PDeepPPProcessor
65
  processor = PDeepPPProcessor(pad_char=pad_char, target_length=target_length)
66
 
@@ -96,10 +100,6 @@ pretrained_features = pretrainer.create_embeddings(
96
  # Ensure pretrained features are on the same device
97
  inputs["input_embeds"] = pretrained_features.to(device)
98
 
99
- # Load the PDeepPP model
100
- model_name = "fondress/PDeepPP_ACE"
101
- model = AutoModel.from_pretrained(model_name, trust_remote_code=True) # Directly load the model
102
-
103
  # Perform prediction
104
  model.eval()
105
  outputs = model(input_embeds=inputs["input_embeds"]) # Use pretrained features as model input
 
61
  mode = "BPS" # Mode setting (only configured in example.py)
62
  esm_ratio = 1 # Ratio for ESM embeddings
63
 
64
+ # Load the PDeepPP model
65
+ model_name = "fondress/PDeepPP_DPPIV"
66
+ model = AutoModel.from_pretrained(model_name, trust_remote_code=True) # Directly load the model
67
+
68
  # Initialize the PDeepPPProcessor
69
  processor = PDeepPPProcessor(pad_char=pad_char, target_length=target_length)
70
 
 
100
  # Ensure pretrained features are on the same device
101
  inputs["input_embeds"] = pretrained_features.to(device)
102
 
 
 
 
 
103
  # Perform prediction
104
  model.eval()
105
  outputs = model(input_embeds=inputs["input_embeds"]) # Use pretrained features as model input