{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/ossgan-open-set-semi-supervised-image","title":"OSSGAN: Open-Set Semi-Supervised Image Generation","arxiv_id":"2204.14249","date":"2022-04-29","proceeding":"CVPR 2022 1","authors":["Kai Katsumata","Duc Minh Vo","Hideki Nakayama"],"abstract":"We introduce a challenging training scheme of conditional GANs, called open-set semi-supervised image generation, where the training dataset consists of two parts: (i) labeled data and (ii) unlabeled data with samples belonging to one of the labeled data classes, namely, a closed-set, and samples not belonging to any of the labeled data classes, namely, an open-set. Unlike the existing semi-supervised image generation task, where unlabeled data only contain closed-set samples, our task is more general and lowers the data collection cost in practice by allowing open-set samples to appear. Thanks to entropy regularization, the classifier that is trained on labeled data is able to quantify sample-wise importance to the training of cGAN as confidence, allowing us to use all samples in unlabeled data. We design OSSGAN, which provides decision clues to the discriminator on the basis of whether an unlabeled image belongs to one or none of the classes of interest, smoothly integrating labeled and unlabeled data during training. The results of experiments on Tiny ImageNet and ImageNet show notable improvements over supervised BigGAN and semi-supervised methods. Our code is available at https://github.com/raven38/OSSGAN.","url_abs":"https://arxiv.org/abs/2204.14249v1","url_pdf":"https://arxiv.org/pdf/2204.14249v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"ossgan-open-set-semi-supervised-image","repo_url":"https://github.com/raven38/ossgan","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"1x1-convolution","method_name":"1x1 Convolution"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"conditional-batch-normalization","method_name":"Conditional Batch Normalization"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"early-stopping","method_name":"Early Stopping"},{"method_slug":"feedforward-network","method_name":"Feedforward Network"},{"method_slug":"gan-hinge-loss","method_name":"GAN Hinge Loss"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"non-local-block","method_name":"Non-Local Block"},{"method_slug":"non-local-operation","method_name":"Non-Local Operation"},{"method_slug":"off-diagonal-orthogonal-regularization","method_name":"Off-Diagonal Orthogonal Regularization"},{"method_slug":"projection-discriminator","method_name":"Projection Discriminator"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"residual-block","method_name":"Residual Block"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sagan","method_name":"SAGAN"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"spectral-normalization","method_name":"Spectral Normalization"},{"method_slug":"ttur","method_name":"TTUR"},{"method_slug":"truncation-trick","method_name":"Truncation Trick"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.14249","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.14249"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/raven38/ossgan","reach":null}],"summary":{"ran":3,"ran_draft_wrong":7,"unverified":2},"by_repo_kind":{"official":{"samples":12,"ran":10,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":12,"samples":[{"code_sha256_prefix":"b59e701bac7d267b","entry":"ConditionalBatchNorm2d_for_skip_and_shared","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b59e701bac7d267b"}},{"code_sha256_prefix":"b48a4f0c70963822","entry":"GenBlock","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b48a4f0c70963822"}},{"code_sha256_prefix":"288c263925c39658","entry":"Self_Attn","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"288c263925c39658"}},{"code_sha256_prefix":"c303b630a56b901b","entry":"batchnorm_2d","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c303b630a56b901b"}},{"code_sha256_prefix":"5018ca19fc090bf7","entry":"conv2d","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5018ca19fc090bf7"}},{"code_sha256_prefix":"be05a1678c169426","entry":"embedding","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"be05a1678c169426"}},{"code_sha256_prefix":"8945689abdf62ec1","entry":"get_activation_fn","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8945689abdf62ec1"}},{"code_sha256_prefix":"b7a199fa25f011fc","entry":"linear","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b7a199fa25f011fc"}},{"code_sha256_prefix":"c2c446106e8251fd","entry":"snconv2d","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c2c446106e8251fd"}},{"code_sha256_prefix":"d98a3d3f92a0fd23","entry":"snlinear","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d98a3d3f92a0fd23"}},{"code_sha256_prefix":"25122c77427f1d7a","entry":"Generator","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"25122c77427f1d7a"}},{"code_sha256_prefix":"7b2fee4c818b5840","entry":"init_weights","repo":"raven38/ossgan","repo_kind":"official","path":"src/models/big_resnet.py","file_url":"https://github.com/raven38/ossgan/blob/HEAD/src/models/big_resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7b2fee4c818b5840"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}