Skip to content

Commit

Permalink
update generate files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiemirza committed Mar 19, 2024
1 parent 4ac2859 commit 697b34a
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 27 deletions.
2 changes: 1 addition & 1 deletion generate/OxfordFlowers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/caltech.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
root_folder = 'gpt'
Expand Down
12 changes: 2 additions & 10 deletions generate/cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,17 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "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" # only for eccv
openai.api_key = ""

all_json_dict = {}
# all_responses = {}
root_folder = 'tap'
if not Path(root_folder).is_dir():
raise ValueError("Folder does not exist")



vowel_list = ['A', 'E', 'I', 'O', 'U']
# category_list_all = {
# 'CUBS200': cubs}
# with open('tap/CUBS200.json') as f:
# data = json.load(f)
#
# classes_already_done = list(data.keys())
#
# cubs = [x for x in cubs if x not in classes_already_done]


category_list_all = {
'CIFAR10_local': cifar10_classes}
Expand Down
2 changes: 1 addition & 1 deletion generate/cifar100.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
root_folder = 'gpt'
Expand Down
2 changes: 1 addition & 1 deletion generate/cubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
root_folder = 'gpt'
Expand Down
2 changes: 1 addition & 1 deletion generate/eurosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/food101.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/imagenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
root_folder = 'mpvr'
Expand Down
2 changes: 1 addition & 1 deletion generate/imagenetv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
root_folder = 'mpvr'
Expand Down
2 changes: 1 addition & 1 deletion generate/in_rendition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/k400.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
3 changes: 1 addition & 2 deletions generate/oxford_pets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv

openai.api_key = ""
all_json_dict = {}
root_folder = 'mpvr'
if not Path(root_folder).is_dir():
Expand Down
2 changes: 1 addition & 1 deletion generate/places_365.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

places365 = [x.replace('_', ' ') for x in places365]

Expand Down
2 changes: 1 addition & 1 deletion generate/resisc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "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" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/stanford_cars.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/sun397.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down
2 changes: 1 addition & 1 deletion generate/ucf101.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
from pathlib import Path

openai.api_key = "" # only for eccv
openai.api_key = ""

all_json_dict = {}
all_responses = {}
Expand Down

0 comments on commit 697b34a

Please sign in to comment.