Muhammad Naufal Rizqullah commited on
Commit
df3f4c0
·
1 Parent(s): b82544b

feat: :art: applying solutoion 2

Browse files
Files changed (1) hide show
  1. utils/model.py +5 -0
utils/model.py CHANGED
@@ -20,6 +20,11 @@ def create_effnetb2_model(num_class: int):
20
 
21
  """
22
 
 
 
 
 
 
23
  # Get weights of ResNet50
24
  weights_effnetb2 = torchvision.models.EfficientNet_B2_Weights.IMAGENET1K_V1
25
 
 
20
 
21
  """
22
 
23
+ # Change path for storing cache.
24
+ path_dir_cache = Path(".cache")
25
+ torch.hub.set_dir(path_dir_cache)
26
+ print(f"[DEBUG] Change Storing Cache in directory: {path_dir_cache}")
27
+
28
  # Get weights of ResNet50
29
  weights_effnetb2 = torchvision.models.EfficientNet_B2_Weights.IMAGENET1K_V1
30