Closed kobrafarshidi closed 2 years ago
HI @kobrafarshidi, can you let me know the error message you get, while running the code?
yes sure .
TypeError Traceback (most recent call last)
4 frames
TypeError: create_features() got an unexpected keyword argument 'image_path'
TypeError Traceback (most recent call last)
4 frames
TypeError: create_features() got an unexpected keyword argument 'image_path'
I think, the code should be img, boxes, tokenized_words = create_features(img_path = tif_path, tokenizer = self.tokenizer, target_size = (1000, 1000), use_ocr = False, bounding_box = coordinates, words = words )
, I think, I changed the name of the parameter after releasing the example. Do, let me know, if it works or not
The reference is taken from here
Regards, Akarsh
yes I changed it and worked Many thanks for your assistant.
I am trying to run your project .First I start run with pre-training step by step until eighth block but in the ninth block you mention ## There can be error, if the Image file does not exist, so I request you to make changes in the dataset object, such that those address are removed ## and I have error but I cant understand where I should change in script dataset in src folder and what is image file? I would be grateful if you guided me through this.