Skip to content

Commit

Permalink
Added bash scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Chanakya <[email protected]>
  • Loading branch information
Chanakya committed Jun 22, 2023
1 parent a57f9fe commit fa29cb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/download_datasets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import gdown

data_url = "https://drive.google.com/drive/folders/1ku9rHvuCIFM_PVzJALcOMgEfgauhkV_f"
data_url = "https://drive.google.com/drive/folders/1JExEAVW8FIJrD7eKUSSXTzrmyzH0EYkG"
gdown.download_folder(data_url)
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,12 @@ def set_seed(seed):

args = parser.parse_args()

args.feat_dims = 2048 # Where is this used?
args.feat_dims = 2048
args.beta = float(args.beta)
args.alphas = list(map(float, args.alphas.split(","))) if args.alphas else None
device = torch.device(f"cuda:{args.cuda}" if torch.cuda.is_available() else "cpu")

set_seed(args.seed)
model = get_model(args.net)
dataset = Dataset(
dataset_name=args.dataset,
Expand Down

0 comments on commit fa29cb2

Please sign in to comment.