Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training dataset #1

Open
Yuannianzeng opened this issue Oct 28, 2021 · 10 comments
Open

Training dataset #1

Yuannianzeng opened this issue Oct 28, 2021 · 10 comments

Comments

@Yuannianzeng
Copy link

Could you provide training datasets?

@fkmajiji
Copy link
Owner

Okay, I will upload the dataset to the cloud disk in a few days.

@Yuannianzeng
Copy link
Author

Thank you!

@fkmajiji
Copy link
Owner

Now you can download the dataset from the website on Readme.

@Yuannianzeng
Copy link
Author

How is the data set generated, and why the following error will be reported when training with other .tif images:
UnboundLocalError: local variable 'd' referenced before assignment

@fkmajiji
Copy link
Owner

fkmajiji commented Oct 29, 2021

I used the libtiff package in python to generate the data.
The saving code:
from libtiff import TIFFfile, TIFFimage
to create a tiff structure from image data
the size of t is CHW
tiff = TIFFimage(t.astype(np.uint8), description='')
to write tiff structure to file
tiff.write_file((path + 'name.tif'), compression='none')
del tiff # flushes data to disk

Sorry, I don't know about this UnboundLocalError.

@yanshuyue
Copy link

@Yuannianzeng Have you solved this error yet? UnboundLocalError: local variable 'd' referenced before assignmen

@Yuannianzeng
Copy link
Author

@yanshuyue
Copy link

@Yuannianzeng Is it convenient to give personal emails? I still report an error when I input a 9-channel image.
arr[i:i + d.nbytes] = d
UnboundLocalError: local variable 'd' referenced before assignment

@yanshuyue
Copy link

@fkmajiji I would like to ask you how to get tif format images, I got 9 channels of tif images python does not recognize, you convenient to provide the source code?

@fkmajiji
Copy link
Owner

This seems to be a problem with the libtiff package. It may be that the version is wrong. In fact, once I configured a new environment, I seem to have encountered this problem, too. Can you send me one your 9 channels of tif image? Let me have a check. My email: 291776435@qq.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants