importlib error caused by module name with dot

#44
by rongjhan - opened

AutoModelForImageSegmentation.from_pretrained("briaai/RMBG-1.4",trust_remote_code=True) , error happend when execute from_pretrained
image.png

full module path is "transformers_modules.briaai.RMBG-1.4.22532afbdabdc36b2d30a334076720ac72a06f83.MyConfig"
this error is shown in transformers 4.38.2 , i'm not sure whether it occur in older or newer edition , but i don't see anyone point it out

i think the possible way to fix this error is clone whole repository and rename package to make it work
like this discussion do
or is possible remove edition number from repository name ?

Sign up or log in to comment