gfmei / GeoZe

13 stars 0 forks source link

FileNotFoundError when trying to run partseg script #1

Closed mrclovvn closed 5 months ago

mrclovvn commented 5 months ago

Hi,

I am currently trying to run the partseg script in this project, but I encountered a FileNotFoundError. Here are the details:

Error Message:

Traceback (most recent call last): File "/home/GeoZe-master/partseg/part_run.py", line 17, in from partmodel.post_search import search_prompt, search_vweight File "/home/GeoZe-master/partseg/partmodel/post_search.py", line 14, in from partseg.partclip import clip File "/home/GeoZe-master/partseg/partclip/clip.py", line 24, in _tokenizer = _Tokenizer() File "/home/GeoZe-master/partseg/partclip/simple_tokenizer.py", line 66, in init merges = gzip.open(bpe_path).read().decode("utf-8").split('\n') File "/anaconda3/envs/GeoZe/lib/python3.9/gzip.py", line 58, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/anaconda3/envs/GeoZe/lib/python3.9/gzip.py", line 173, in init fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/home/GeoZe-master/partseg/partclip/bpe_simple_vocab_16e6.txt.gz'

I have checked the repository and did not find the mentioned file. Could you please help me verify if the file bpe_simple_vocab_16e6.txt.gz is supposed to be included in the repository, or if I am missing a step to generate or download this file?

Thank you for your assistance!

Best regards, Shawn

gfmei commented 5 months ago

Hi Shawn, You can download it from https://github.com/openai/CLIP/blob/main/clip/bpe_simple_vocab_16e6.txt.gz and then put it into the folder.

Best,

mrclovvn commented 5 months ago

Thank you very much for your assistance!

I am also eager to know when the classification and semantic segmentation code will be available.

Best regards, Shawn

gfmei commented 5 months ago

I will release all code before september. Thank you for your interesting.