ChangyaoTian / VL-LTR

VL-LTR: Learning Class-wise Visual-Linguistic Representation for Long-Tailed Visual Recognition
61 stars 8 forks source link

ValueError: split() requires a non-empty pattern match. #4

Closed zhuba-Ahhh closed 5 months ago

zhuba-Ahhh commented 2 years ago

image

As shown in the figure。Can you help me?

zhuba-Ahhh commented 2 years ago

ValueError: split() requires a non-empty pattern match. (VL) root@constu2:/home/data/yanwenjun/Paddle/15/VL-LTR# bash eval.sh configs/placeslt/pretrain/places_pretrain_vit16.py 1 --eval-pretrain

ChangyaoTian commented 2 years ago

Could you provide the specific content of param text in split_text = pat.split(text) ?

flytocc commented 2 years ago

Could you provide the specific content of param text in split_text = pat.split(text) ?

'a bad photo of a tench .\na photo of many tench .\na sculpture of a tench .\na photo of the hard to see tench .\na low resolution photo of the tench .\na rendering of a tench .\ngraffiti of a tench .\na bad photo of the tench .\na cropped photo of the tench .\na tattoo of a tench .\nthe embroidered tench .\na photo of a hard to see tench .\na bright photo of a tench .\na photo of a clean tench .\na photo of a dirty tench .\na dark photo of the tench .\na drawing of a tench .\na photo of my tench .\nthe plastic tench .\na photo of the cool tench .\na close-up photo of a tench .\na black and white photo of the tench .\na painting of the tench .\na painting of a tench .\na pixelated photo of the tench .\na sculpture of the tench .\na bright photo of the tench .\na cropped photo of a tench .\na plastic tench .\na photo of the dirty tench .\na jpeg corrupted photo of a tench .\na blurry photo of the tench .\na photo of the tench .\na good photo of the tench .\na rendering of the tench .\na tench  in a video game.\na photo of one tench .\na doodle of a tench .\na close-up photo of the tench .\na photo of a tench .\nthe origami tench .\nthe tench  in a video game.\na sketch of a tench .\na doodle of the tench .\na origami tench .\na low resolution photo of a tench .\nthe toy tench .\na rendition of the tench .\na photo of the clean tench .\na photo of a large tench .\na rendition of a tench .\na photo of a nice tench .\na photo of a weird tench .\na blurry photo of a tench .\na cartoon tench .\nart of a tench .\na sketch of the tench .\na embroidered tench .\na pixelated photo of a tench .\nitap of the tench .\na jpeg corrupted photo of the tench .\na good photo of a tench .\na plushie tench .\na photo of the nice tench .\na photo of the small tench .\na photo of the weird tench .\nthe cartoon tench .\nart of the tench .\na drawing of the tench .\na photo of the large tench .\na black and white photo of a tench .\nthe plushie tench .\na dark photo of a tench .\nitap of a tench .\ngraffiti of the tench .\na toy tench .\nitap of my tench .\na photo of a cool tench .\na photo of a small tench .\na tattoo of the tench .The tench or doctor fish (Tinca tinca) is a fresh- and brackish-water fish of the order Cypriniformes found throughout Eurasia from Western Europe including the British Isles east into Asia as far as the Ob and Yenisei Rivers. It is also found in Lake Baikal. It normally inhabits slow-moving freshwater habitats, particularly lakes and lowland rivers.\nThe tench was formerly classified in the subfamily Leuciscinae with other Eurasian minnows, but more recent phylogenetic studies have supported it belonging to its own family Tincidae.\nThe tench is most often found in still waters with a clay or muddy substrate and abundant vegetation. This species is rare in clear waters across stony substrate, and is absent altogether from fast-flowing streams. It tolerates water with a low oxygen concentration, being found in waters where even the carp cannot survive.\nTench feed mostly at night with a preference for animals, such as chironomids, on the bottom of eutrophic waters and snails and pea clams in well-vegetated waters.Breeding takes place in shallow water usually among aquatic plants where the sticky green eggs can be deposited. Spawning usually occurs in summer, and as many as 300,000 eggs may be produced. Growth is rapid, and fish may reach a weight of 0.11 kg (0.25 lb) within the first year.\nTench have a stocky, carp-like shape and olive-green skin, darker above and almost golden below. The tail fin is square in shape. The other fins are distinctly rounded in shape. The mouth is rather narrow and provided at each corner with a very small barbel. Maximum size is 70 cm, though most specimens are much smaller. A record fish caught in 2001 in England had a weight of 15 lb 3 oz (6.89 kg). The eyes are small and red-orange in colour. Sexual dimorphism is absent or weak, limited to the adult females having a more convex ventral profile when compared with males.Males may also possess a very thick and flattened outer ray to the ventral fins. Males are generally smaller than females, but can be recognised by having more curved lower fins and noticeable muscles around the base of the fins generally absent in female.The tench has very small scales, which are deeply embedded in a thick skin, making it as slippery as an eel. Folklore has it that this slime cured any sick fish that rubbed against it, and from this belief arose the name doctor fish.\nAn artificially bred variety of tench called the golden tench  is a popular ornamental fish for ponds. This form varies in colour from pale gold through to dark red, and some fish have black or red spots on the flanks and fins. Though somewhat similar to the goldfish, because these fish have such small scales, their quality is rather different.\nTench are edible, working well in recipes that would otherwise call for carp, but are rarely eaten these days. They are shoaling fish that are popular quarries for coarse angling in rivers, lakes and canals. Tench, particularly golden tench, are also kept as ornamental fish in ponds as they are bottom feeders that help to keep the waterways clean and healthy.\nLarge tench may be found in gravel pits or deep, slow-moving waters with a clayey or silty bottom and copious aquatic vegetation. The best methods and bait to catch tench are float fishing and ledgering with a swim feeder using maggots, sweetcorn, pellets, bread, and worms. Fish over 1 kg (2 lb) in weight are very strong fighters when caught on a rod.'
rahulvigneswaran commented 1 year ago

@ChangyaoTian @flytocc @zhuba-Ahhh Any fixes for this?

flytocc commented 1 year ago

@ChangyaoTian @flytocc @zhuba-Ahhh Any fixes for this?

caused by python version

flytocc commented 1 year ago

maybe you can try 3.8+

rahulvigneswaran commented 1 year ago

maybe you can try 3.8+

I can confirm that this fixes this issue! Thanks a lot!